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
- :
- SQL Scripts to run only on first time install
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
Feb 25, 2008
10:28 AM
SQL Scripts to run only on first time install
I have an InstallScript MSI project with some SQL scripts under the Server Configuration->Sql Scripts view.
Some of these scripts should only be called on the first install. I checked on these scripts the "Run Script During Install", but it gets also called on repair or update.
Is there any way to make them execute only on first install?
I tried to set a property OnFirstUIBefore:
MsiSetProperty(ISMSI_HANDLE, "MYPROJECT_FIRST_INSTALL", "first");
and use it under "Specify a Conditional Statement", but this statement does not seem to be evalutated properly.
Any idea?
Some of these scripts should only be called on the first install. I checked on these scripts the "Run Script During Install", but it gets also called on repair or update.
Is there any way to make them execute only on first install?
I tried to set a property OnFirstUIBefore:
MsiSetProperty(ISMSI_HANDLE, "MYPROJECT_FIRST_INSTALL", "first");
and use it under "Specify a Conditional Statement", but this statement does not seem to be evalutated properly.
Any idea?
(10) Replies