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 [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
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 <[hidden email]> To: General discussion for Windows Installer XML toolset. <[hidden email]> 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 [hidden email] 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
This post has NOT been accepted by the mailing list yet.
In reply to this post by Joe Osman-2
I am running into this same issue. The suggested fix did not work for me. The custom action scheduled for a rollback is written to the first installer in my burn string. The 5th installer fails, but the 1st installer's custom action for rollback is not being triggered when everything is finished rolling back.
|
Free forum by Nabble | Edit this page |