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 script and ini file
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
Sep 19, 2008
04:44 AM
SQL script and ini file
Hi!
I've got an Installshield Basic MSI project.
In that project, I want to insert some records into an SQL Server database.
Since the setup is published to several customers, i need to get set Server and Database from a customer ini file.
The ini-file is found in the same folder as setup.exe.
I''ve tried the System Search to store the values in IS_SQLSERVER_SERVER and IS_SQLSERVER_DATABASE properties. Is it possible to use those properties in the connectionstring to the database? The user and password are the same for all our customers, only the server and database is different.
Is there any other way to acheive this task?
I've got an Installshield Basic MSI project.
In that project, I want to insert some records into an SQL Server database.
Since the setup is published to several customers, i need to get set Server and Database from a customer ini file.
The ini-file is found in the same folder as setup.exe.
I''ve tried the System Search to store the values in IS_SQLSERVER_SERVER and IS_SQLSERVER_DATABASE properties. Is it possible to use those properties in the connectionstring to the database? The user and password are the same for all our customers, only the server and database is different.
Is there any other way to acheive this task?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 23, 2008
10:01 AM
The build-in INI file system search has a limitation that INI files must exist in the Windows folder. Therefore, you need to write your own custom action that will read the information from an INI file and set them to the Windows Installer properties.