Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Custom action condition to NOT run on uninstall

Hi,

Can anybody help me with a custom action condition that should not run while uninstall/remove. The custom action checks if there is a Patch folder and then executes the install. But i want this custom action to be skipped during 'Remove'. I tried giving *ISPATCHEXISTS=1 And NOT REMOVE*.

Thanks in advance,
Jis
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Custom action condition to NOT run on uninstall

Hi,

If you do not want your custom action to run on removal of the package, you should uncheck the "Uninstall" checkbox in the Execution Stage Condition section.
The Patch condition is correct and you can add it in the "Condition" field.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: Custom action condition to NOT run on uninstall

Hi Irina,

I just noticed that i want a solution for Installshield and not for Advanced Installer. Can you please suggest a solution for Installshield.

Thanks in advance,
Jis
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: Custom action condition to NOT run on uninstall

Thank you,

I got the solution for this.
The correct command is : NOT Installed OR MaintenanceMode="Modify"

Thank you.

Return to “Building Installers”