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
- :
- Run a custom action when the install fails
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 02, 2010
03:33 PM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 03, 2010
10:38 PM
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
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