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
- :
- Re: Running InstallScript only during INSTALLs
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
‎Oct 02, 2007
02:57 PM
Running InstallScript only during INSTALLs
Forgive me if this has already been answered, but I have searched both the internet and here, and haven't found something that works.
I have a basic MSI project, and have an InstallScript that I have run after the InstallFinalize event. This works fine. However, my problem is that this script runs both during installs and uninstalls. What is the if(..) statement to only have it run during installs? I've tried REMOVEALLMODE=0, but that did not seem to work.
Thanks!
I have a basic MSI project, and have an InstallScript that I have run after the InstallFinalize event. This works fine. However, my problem is that this script runs both during installs and uninstalls. What is the if(..) statement to only have it run during installs? I've tried REMOVEALLMODE=0, but that did not seem to work.
Thanks!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2007
03:06 PM
Don't use an if statement in that case. Set the condition on the Custom Action that's running the InstallScript function. If you only want it to run on first install, set it to "NOT Installed" (the word 'Installed' is case-sensitive)
Hope that helps.
Hope that helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2007
03:36 PM
Thanks for the help! That worked (of course)!
Thanks again.
Thanks again.