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
- :
- Stop Custom Action from firing on 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
‎Nov 02, 2010
03:40 PM
Stop Custom Action from firing on Uninstall
I have a custom action that fires on the uninstallation, and of course fails since the file is removed.
I don't want to address this via the custom action script (to check for the file first before changing it). I want my custom action script to run only on installation.
How can I accomplish what should be an easy task, thank you.
I don't want to address this via the custom action script (to check for the file first before changing it). I want my custom action script to run only on installation.
How can I accomplish what should be an easy task, thank you.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2010
12:07 PM
I would add a condition to the custom action that simply says NOT Installed
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2010
03:52 PM
or rather REMOVE <> "ALL" ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2010
09:57 AM
Thanx! I also added to my vbScript is no file don't attempt ....
You have to love the documentation on this (and just about everything else), it could be a little clearer and more accurate.
I.e. is says I can place in any sequence my action is vbcsript in action, well it only runs after InstallFinalize even though all I'm doing is parsing out some XML and replacing nodes on a file that I'm deploying, and by then is on the target machine. I've tried after InstallFiles, all the way up to InstallFinalize but all else errors.
You have to love the documentation on this (and just about everything else), it could be a little clearer and more accurate.
I.e. is says I can place in any sequence my action is vbcsript in action, well it only runs after InstallFinalize even though all I'm doing is parsing out some XML and replacing nodes on a file that I'm deploying, and by then is on the target machine. I've tried after InstallFiles, all the way up to InstallFinalize but all else errors.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)