cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Brandon_Lowe
Level 6

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
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

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.
0 Kudos