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/blackberry 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.  
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
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/blackberry
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to