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: Using SQL Scripts with BasicMSI 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
‎Apr 16, 2012
12:41 PM
Using SQL Scripts with BasicMSI install
Hello all,
here is my dumb question of the day. I have been using installshield for years but always doing installscript installations. I have now been working on a large BasicMSI install. Mys current problem is this.
In installscript we had some SQL Scripts in the SQLscripts panel and I would call them using SQLRTConnect.
Now with the Basic MSI install I cannot do this. I tried to create an Installscript custom action that used it but that would not compile.
So how do I call a SQL script during the install when I want it to run and how do I test it for success or failure?
I have a few scripts but one for example needs to run when the user clicks next on the SQLLogin dialog.
Thank you
Brandon
here is my dumb question of the day. I have been using installshield for years but always doing installscript installations. I have now been working on a large BasicMSI install. Mys current problem is this.
In installscript we had some SQL Scripts in the SQLscripts panel and I would call them using SQLRTConnect.
Now with the Basic MSI install I cannot do this. I tried to create an Installscript custom action that used it but that would not compile.
So how do I call a SQL script during the install when I want it to run and how do I test it for success or failure?
I have a few scripts but one for example needs to run when the user clicks next on the SQLLogin dialog.
Thank you
Brandon
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 25, 2012
02:38 PM
The SQLRTConnect InstallScript function is not available in Basic MSI projects. When you add a SQL connection in the SQL Scripts view, InstallShield automatically adds the SQLLogin dialog and the underlying custom actions for the SQL support to your project. To run a SQL script when the end user clicks the Next button on the SQLLogin dialog, you need to select the "Run Script during Login" check box in the Runtime tab in the SQL Scripts view for the SQL script.
Hope that helps.
Hope that helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 25, 2012
04:28 PM
Well that helps somewhat. How about this question.
After the login dialog the install does validate the login info but if it is bad it displays a login validation failure message but instead of going back to the sql login dialog it goes forward to the next dialog. How can I check the results and go back to the login dialog?
After the login dialog the install does validate the login info but if it is bad it displays a login validation failure message but instead of going back to the sql login dialog it goes forward to the next dialog. How can I check the results and go back to the login dialog?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 25, 2012
05:27 PM
Make sure that you have the condition for your NewDialog event of the Next push button control on the SQLLogin dialog as the attached screenshot. The IS_SQLSERVER_STATUS Windows Installer property is set to 0 by the ISSQLServerValidate action when a login validation is successful.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 26, 2012
08:42 AM
Thank you for the help.
Is there a way to check if the user entered on the login screen is a member of the sql admin group?
I know how to do it with the sqlscript and I now now I can run that sql script right after the login dialog but how do I get the info back to the installer if the user is not a member of the admin group and then display a message and go back to the login dialog?
Can I change a property valuse from a SQL script?
Is there a way to check if the user entered on the login screen is a member of the sql admin group?
I know how to do it with the sqlscript and I now now I can run that sql script right after the login dialog but how do I get the info back to the installer if the user is not a member of the admin group and then display a message and go back to the login dialog?
Can I change a property valuse from a SQL script?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 27, 2012
10:28 AM
Unfortunately, InstallShield does not provide the ability that allows you get SQL query information back to the installer at this time. I wonder if you could write a SQL script that raises an error if the specified user is not a member of the admin group.