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
- :
- Custom Action executable running both install and 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
‎Jul 09, 2008
10:48 AM
Custom Action executable running both install and uninstall?
Hello,
I have an executable that I want to run on install "Only". When the package is uninstalled it runs again. I have the following:
In-Script Execution: Deferred Execution
Install Exec Sequence: After Publish product
If somebody could tell me how I can to run just on just on installation I would sure appreciate it. Not sure which action I should follow to run the executable.
Thanks,
Garyc
I have an executable that I want to run on install "Only". When the package is uninstalled it runs again. I have the following:
In-Script Execution: Deferred Execution
Install Exec Sequence: After Publish product
If somebody could tell me how I can to run just on just on installation I would sure appreciate it. Not sure which action I should follow to run the executable.
Thanks,
Garyc
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2008
10:51 AM
Please see, for example, this newsletter tip (PDF warning): http://www.acresso.com/webdocuments/PDF/msiconditions.pdf; you can generally use the condition Not Installed to ensure an action runs only during the initial installation.
P.S. Better yet, please see the help topic "Detecting First-Time Installations".
P.S. Better yet, please see the help topic "Detecting First-Time Installations".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2008
11:26 AM
Much appreciated Robert I wish that condition "Not Installed" was in the list of conditions when scrolling through the condition list. I had to manually type that it in. But it appears to work which I'm relieved and happy about. Again thanks Robert for the link and quick response.
Garyc
Garyc
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2008
12:37 PM
As an aside, you also want to consider how you want it to behave during repairs, major upgrades, minor upgrades and patching.
Personally I tend to tie my custom actions to Component Action states ( ! evaluator in Conditional Expressions help topic ) rather then feature or product actions.
Personally I tend to tie my custom actions to Component Action states ( ! evaluator in Conditional Expressions help topic ) rather then feature or product actions.