Hi Peter,

thanks for the explanation. Unfortunately, I need to access the
installed files during the custom actions - as far as I have found
out, this is not possible during the transaction.

So, is there any way to schedule an uninstallation? Maybe even via
setting a mark in a defined file, scheduling a reboot and then look
for that mark?

Thanks,

Dirk Räder

2009/7/7 Peter Shirtcliffe <pshirtcli...@sdl.com>:
> Rollback doesnt get run for errors occurring after InstallFinalize. You need 
> to schedule your custom action earlier.
>
> This older post might help to explain.
> http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg10546.html
>
>
> -----Original Message-----
> From: Dirk Räder [mailto:d...@raeder.cc]
> Sent: 07 July 2009 14:55
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Automatic uninstallation after failure of installation.
>
> Hi,
>
> my installer currently fails during some custom actions that execute after 
> most of the installation is done:
>  <Custom Action="MakeIniFile" After="InstallFinalize" >
>    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR (Installed AND 
> NOT RESUME AND NOT REMOVE )]]>
>  </Custom>
>  <Custom Action="RegisterAssemblies" After="InstallFinalize" >
>    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR (Installed AND 
> NOT RESUME AND NOT REMOVE )]]>
>  </Custom>
>  <Custom Action="InstallComApplications" After="InstallFinalize" >
>    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR (Installed AND 
> NOT RESUME AND NOT REMOVE )]]>
>  </Custom>
>
>
> When one of those custom action fails, an error message is shown to the user 
> - but a rollback is not initiated.
>
> How can I make WiX / MSI initiate the uninstallation?
>
> Thanks in advance,
>
> Dirk Raeder

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to