cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ThisIsEd
Level 4

Run a custom action when the install fails

Hoping someone can help me out in adding some functionality to our installer. Our desired behavior would be to run a custom action (which logs some information on the system, provided parameters, etc) when the install fails. I know I could do a custom action launched off the Finish button of the SetupCompleteError dialog, but we need this to also run during failed silent installs. It doesn't look like I can schedule it after SetupCompleteError.

In short, is there any way to hook into the way MSI handles failed installs reliably so we can schedule a custom action?

I've been trying to track down advice on this, but searching for things like "custom action when install fails" obviously leads me to a lot of posts about failed custom actions. So any pointers would be most appreciated!

Thanks
Labels (1)
0 Kudos
(1) Reply
Alpesh
Flexera Alumni

Hi Ed,

You should look into Rollback Custom Actions. They run when Installer fails and rollback is in progress. Refer here for msdn article --> http://msdn.microsoft.com/en-us/library/aa371369(VS.85).aspx.

Thanks,
Alpesh
0 Kudos