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
- :
- How to configure CA to only run during install, not during uninstall
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 05, 2008
03:25 PM
How to configure CA to only run during install, not during uninstall
I have an InstallScript MSI Project that contains a custom action that executes an exe after all of the files are installed for the selected feature. I only want the CA to run during an installation, not during an uninstall, how do I configure the settings iwithin the Custom Action. I have attached a bitmap of the CA. I know that the Execution needs to be changed, but not sure how to get exactly what I want
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 05, 2008
04:05 PM
Please see, for example, this newsletter tip (PDF warning): http://www.acresso.com/webdocuments/PDF/msiconditions.pdf.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 06, 2008
08:15 AM
If I use the conditions "(Not Installed) AND (UILevel=5)", if an update is triggered, will this Custom Action run? I need this CA to run for New Install and Updates, but not during an Uninstall
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 06, 2008
11:30 AM
If its JUST the Uninstall where you do not want your CA to run, you can use the condition:
NOT REMOVE
NOT REMOVE
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 06, 2008
11:32 AM
It partly depends on what you want to do with maintenance mode, minor upgrades vs. major upgrades, etc. Ignoring major upgrades, perhaps something like REMOVE<>"ALL" to detect anything but uninstallation (but allowing maintenance mode with partial uninstallation, for example)? With major upgrades there's UPGRADINGPRODUCTCODE, but that's another story.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 06, 2008
02:04 PM
Thanks for the suggestion Happy Days. The condition NOT REMOVE did the trick!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 06, 2008
04:12 PM
You are welcome 😄