Hi Stefan,
I noticed the [Script replacements] in SQL Scripts section. Can this be used to replace strings in my SQL files while installing?
Please note that the Script Replacement feature allows you to replace strings in you SQL script. These modifications will be performed when you build the project (not at runtime).
I want to run a SQL script to create a (MSSQL) database with specific file- and foldernames. The folder should be the Install-Folder that the user selected earlier.
For this you can use the APPDIR property in your script. Since the "Replace with" field in the "SQL Script Replace" dialog is formatted, you can replace the folder in your script with the [APPDIR] property.
In this case, the folder in the script will be replaced with APPDIR when you build the project. Also, when the script is run APPDIR will be replaced by the value set by the user during the installation process.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging