Rollback custom actions are written to the script and if there is a failure in script execution the Windows Installer will walk the script backwards and execute any rollback CA's that have been written to the script. So make sure you schedule it early enough ( possibly well before InstallFiles ) that it will be before whatever action failed. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me
----- Original Message ---- From: Joe Osman <[email protected]> To: General discussion for Windows Installer XML toolset. <[email protected]> Sent: Mon, August 16, 2010 8:11:42 PM Subject: [WiX-users] How to run custom action on install rollback I want to execute a custom action when the installation fails and a rollback is executed by the MSI, but my custom action doesn't run although I set it to execute on a rollback. Here is my code: <InstallExecuteSequence> <Custom Action ="DeleteDbBackupFileOnRollback" After ="InstallFiles"></Custom> </InstallExecuteSequence> <CustomAction Id="DeleteDbBackupFileOnRollback" BinaryKey ="K1CustomActions.dll" DllEntry ="DeleteDbBackupFile" Return ="check" Execute="rollback" /> -- Joe Osman ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. ======================================================================= ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

