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: How do I get values from SQLConnection?
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 18, 2014
12:51 PM
How do I get values from SQLConnection?
I am trying to create a Installer from a Windows Service. During that installation, I need to collect values from the database values from the Installer to form a connection string used in the Windows Service. I was creating my own custom dialog when my Support Specialist informed me about the built-in SQL Server dialog under SQL Scripts. There are default properties like IS_SQLSERVER_USERNAME used. When I informed my specialist that I needed access to those values from my Windows Service, he said that these were only during Install time, and to run SQL Scripts.
Is there any way to get these values?
If not, is there another way to go here where I can collect this information and access it from the Windows Service? Custom dialog and properties - write to registry and read from service? How?
Thanks,
Sam
Is there any way to get these values?
If not, is there another way to go here where I can collect this information and access it from the Windows Service? Custom dialog and properties - write to registry and read from service? How?
Thanks,
Sam
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 19, 2014
07:58 AM
Sam,
Your support specialist should be able to help you. How is your Windows Service using the SQL Connection? Is it using registry or app.config values? You should be able to read either of those (registry and XML-style config files) via InstallScript and your support specialist should be able to tell you when and how to do that.
HTH
Your support specialist should be able to help you. How is your Windows Service using the SQL Connection? Is it using registry or app.config values? You should be able to read either of those (registry and XML-style config files) via InstallScript and your support specialist should be able to tell you when and how to do that.
HTH
![](/skins/images/7674467D6278680F3FD526C8217C9173/responsive_peak/images/icon_anonymous_message.png)