This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Need help forcing a rollback in basic MSI
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Apr 25, 2012
01:24 PM
Need help forcing a rollback in basic MSI
I'm working on a Basic MSI install and I'm using some installscript custom actions at the end to process our files. Right now if that process has an error it is trapped by the script and an error message is displayed. The install then aborts. When it aborts there is no rollback. What do I need to do to force the MSI to do a normal rollback?
Brandon
Brandon
(1) Reply
Apr 25, 2012
05:11 PM
This InstallTalk blog post discusses rollback actions: http://blogs.flexerasoftware.com/installtalk/2011/10/i-take-it-all-back-using-windows-installer-msi-rollback-actions.html.
In short, in order to be able to be rolled back, your action needs to be a deferred action (between InstallInitialize and InstallFinalize), with the rollback action occurring before it in the sequences, and generally returns ERROR_INSTALL_FAILURE when you need to trigger rollback.
In short, in order to be able to be rolled back, your action needs to be a deferred action (between InstallInitialize and InstallFinalize), with the rollback action occurring before it in the sequences, and generally returns ERROR_INSTALL_FAILURE when you need to trigger rollback.