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
- :
- execute custom action only if setup failes
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 17, 2009
03:30 AM
execute custom action only if setup failes
In an Basic MSI project I want to execute a custom action only if the setup failes. How can I do this?
Is there a property which I can use in the condition of the custom action?
And where must the action be sequenced?
Is there a property which I can use in the condition of the custom action?
And where must the action be sequenced?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2009
08:59 AM
You might look into using a "rollback action".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2009
11:03 AM
Timo Zimmermann wrote:
In an Basic MSI project I want to execute a custom action only if the setup failes. How can I do this?
Is there a property which I can use in the condition of the custom action?
And where must the action be sequenced?
Generally, you'd sequence a rollback custom action immediately prior to the custom action that you're cleaning up.
Rollback custom actions are a type of deferred custom action, and need to be sequenced between the InstallInitialize and InstallFinalize actions.
Here's some light reading on the subject: http://msdn.microsoft.com/en-us/library/aa371369(VS.85).aspx
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2009
12:46 AM
Thanks for the hints. That helped me.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)