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
- :
- How to modify SQL Script
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 04, 2012
08:01 AM
How to modify SQL Script
Hello,
I need to understand how modify sql script during my istallation.
My problem is the following: during the installation I must create and populate a database. I can do it by sql scripts but for the first one I need to change a variable using the network name of the computer where the installation is done. How can I do this?
Thank you in advance for your reply.
I need to understand how modify sql script during my istallation.
My problem is the following: during the installation I must create and populate a database. I can do it by sql scripts but for the first one I need to change a variable using the network name of the computer where the installation is done. How can I do this?
Thank you in advance for your reply.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 11, 2012
08:44 AM
I use the Text Replacement in the SQL Script View: In the SQL Skript I have some predefined strings which are replaced with the actual values during the installation (e.G. DATABASENAME as given by the user, COMPUTERNAME, SERVERNAME and so on.)
Barbara
Barbara
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 12, 2012
07:06 AM
Thank you very much for your reply.
I solved my problem using an InstallScript custom action and running the scrip by cmd.
In this way I could use .Net dll for the calculation of the parameters (eg: local network account) that I needed.
I solved my problem using an InstallScript custom action and running the scrip by cmd.
In this way I could use .Net dll for the calculation of the parameters (eg: local network account) that I needed.