PDA

View Full Version : SQL Text Replacement



gspaldin
07-15-2004, 12:37 PM
Does anyone know what can be used as a replacement variable for SQL Text replacement in a InstallScript Project. When using MSI you can use the MSI properties but I can't seem to find something similar with InstallScript projects.

Thanks,

Greg

MotoJason
02-13-2006, 05:31 PM
You have to use the TextSubSetValue function in the script. I placed it in OnFirstUIBefore.
TextSubSetValue ( "<REPLACEMENT_TEXT>", szValue, TRUE);

You also have to go to the Files and Folders view, locate the "Script-defined Folders" and add a folder named <REPLACEMENT_TEXT>

This works for an Install Shield Script, but I cannot get a text replacement in SQL to work for a Basic MSI.