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 SQL scripts in an InstallScript MSI project
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
‎Jan 30, 2014
10:44 AM
Running SQL scripts in an InstallScript MSI project
I believe, in an InstallScript project you can use SQLRTComponentInstall and SQLRTComponentUninstall to run component associated scripts.
Can these be called within an InstallScript MSI project ?
Or is there an alternative script function to do something similar ?
I want to run an SQL script from InstallScript during an installation, either one associated with a component or a custom made string.
Does anyone know how to do this and does anyone have an exmpe ?
Can these be called within an InstallScript MSI project ?
Or is there an alternative script function to do something similar ?
I want to run an SQL script from InstallScript during an installation, either one associated with a component or a custom made string.
Does anyone know how to do this and does anyone have an exmpe ?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2014
12:58 PM
The SQLRTComponentInstall and SQLRTComponentUninstall functions are not available in InstallScript MSI projects. You may want to consider using the SQL Scripts view under the Server Configuration section which will tie your SQL scripts to an individual component and execute them by the ISSQLServerInstall and ISSQLServerUninstall actions. See the SQL Scripts view help topic for more details.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 05, 2014
09:24 AM
I wish to run the scripts earlier in the install. I see no mechanism to control the time the scripts are run using the 'Server Configuration\ SQL scripts\ connections mechanism.
I'm trying to avoid the 'applications to be stopped' dialog because SQL Server is listed and we can NOT stop this during our install/uninstall.
We have dlls loaded into SQL server (extended stored procedures) but we can un-load them with an sql script. I have tested and confirmed that if this script is executed after the UI sequence and early enough in the execute sequence, the request to stop SQL server is not presented and our install goes through OK.
I'm trying to avoid the 'applications to be stopped' dialog because SQL Server is listed and we can NOT stop this during our install/uninstall.
We have dlls loaded into SQL server (extended stored procedures) but we can un-load them with an sql script. I have tested and confirmed that if this script is executed after the UI sequence and early enough in the execute sequence, the request to stop SQL server is not presented and our install goes through OK.