cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
TimoZimmermann
Level 5

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

You might look into using a "rollback action".
0 Kudos
virtualbry
Level 4

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
0 Kudos
TimoZimmermann
Level 5

Thanks for the hints. That helped me.
0 Kudos