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
- :
- Moving the SQL Dialog
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
Dec 05, 2008
12:57 PM
Moving the SQL Dialog
My project allows users to selectively install SQL Express if a network database is not available. The problem is SQL login dialog shows before the features are selected. How can I move the SQL login screen under one of my features? Any help is appreciated.
Todd
Todd
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 05, 2008
01:45 PM
The SQLLogin dialog is displayed after the Customer Information dialog by default. You can change the dialog sequence by modifying the control events using the Dialogs | Behavior view. Please see Displaying Dialogs During Basic MSI Installations help topic for more information..
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 05, 2008
02:58 PM
Thank you for the reply. I have read this before. I'm new to Installshield. What I can't seem to grasp is how to place the dialog in just one feature. I tried to change the behavior but I don't see anything relating to when it appears in the sequence.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 05, 2008
03:41 PM
You would need to use a condition in order to conditionally launch the SQLLogin dialog based on the selection of a feature. For a quick test, I changed the behavior of Next button control on the CustomSetup dialog as follows, and the SQLLogin dialog is only displayed when the MyFeature feature is selected to be installed:
"NewDialog" "OutOfSpace" "OutOfNoRbDiskSpace = 1"
"NewDialog" "ReadyToInstall" "OutOfNoRbDiskSpace <> 1 AND &MyFeature <> 3"
"NewDialog" "SQLLogin" "OutOfNoRbDiskSpace <> 1 AND &MyFeature = 3"
"[_IsSetupTypeMin]" "Custom" "1"
"NewDialog" "OutOfSpace" "OutOfNoRbDiskSpace = 1"
"NewDialog" "ReadyToInstall" "OutOfNoRbDiskSpace <> 1 AND &MyFeature <> 3"
"NewDialog" "SQLLogin" "OutOfNoRbDiskSpace <> 1 AND &MyFeature = 3"
"[_IsSetupTypeMin]" "Custom" "1"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 17, 2008
04:31 PM
Hi, i have the same issue
Did you associate your feature with any property? i see that you used "&Myfeature" and you set the value of 3. how and where you set that value of 3 to be used in this condition?
Thanks in advance.
Did you associate your feature with any property? i see that you used "&Myfeature" and you set the value of 3. how and where you set that value of 3 to be used in this condition?
Thanks in advance.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 17, 2008
04:53 PM
3 is a feature state value which is set by Windows Installer. Please see the Feature and Component State Values section in the Conditional Statement Syntax help topic for more information.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 17, 2008
05:21 PM
Thanks! that helped. but even though i'm not displaying the sqllogin dialog, it still tries to connect to the database and i get an error almost at the end of the install "specified sql server not found or logon denied".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 17, 2008
05:32 PM
Please make sure that the underlying components of your SQL scripts are associated with the feature that determines whether to launch the SQLLogin dialog or not. If you still have the problem, I would suggest that you generate a Windows Installer verbose log for the installation to find out why those components are getting installed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 17, 2008
08:01 PM
Thanks for the help. I accidentally associated one of the script file to the main feature. It's working as expected.
![](/skins/images/089A6DFE1F4989CB8CCC689A38D62C96/responsive_peak/images/icon_anonymous_message.png)