Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installshield Run EXE only during install

I have another question regarding exe's and custom actions within Installshield.

I currently have a set of custom actions which launch executables in silent mode..

In the return process, it is set for Synchronous(Check exit code) mode, and it is set for a Deferred Execution in System Context.

My question is the following:

When I install my application, it is fine. It runs through the installers and installs the prerequisites. My problem is when I want to uninstall the application from the machine, because it runs through the same installers again (and trys to install them again, even though we are uninstalling).

I looked all around, and cannot find a good work-around for this.

Anyone have experience with this and know of a method of getting the installs to only run when the installer runs and not when uninstalling?

Much Appreciated...

Thanks -Kyle

like image 232
Kyle Avatar asked Mar 03 '26 21:03

Kyle


2 Answers

You have to condition your CustomAction to "Not Installed". The condition "Not Installed" ensures the action runs only during a first-time installation, and not during maintenance mode or uninstallation.

Check this link from Flexera: http://www.flexerasoftware.com/webdocuments/PDF/IS_Tip_Executable-Custom-Actions-for-MSIs.pdf

like image 113
Vibz Avatar answered Mar 05 '26 21:03

Vibz


How about a custom action condition like "Not Installed". This means it will only run on a first-time installation, not "maintenance" or "uninstall".

like image 28
William Leara Avatar answered Mar 05 '26 21:03

William Leara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!