cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
abridean
Level 2

Text substitution not working

I've ben trying to get Text substitution to work without success 😞

I have added the following script code to the OnFirstUIBefore event, as per the help examples, to an InstallScript MSI Project to try the text substitution in XML and IIS and neither is working.

Dlg_SdCustomerInformation:
szTitle = "";
svName = "";
svCompany = "";
//{{IS_SCRIPT_TAG(Dlg_SdCustomerInformation)
nResult = SdCustomerInformation(szTitle, svName, svCompany, nUser);
TextSubSetValue("", svName, TRUE);
TextSubSetValue("", "NewServerName", TRUE);
//}}IS_SCRIPT_TAG(Dlg_SdCustomerInformation)
if (nResult = BACK) goto Dlg_SdWelcome;

I have put string in the Anonymous Access "User name:" text box on the Virtual Directory's - Directory Security tab (see attached WebUserName.bmp).

I have put string in the value column on the general tab for the Server element in the XML file (see atached ServerName.bmp).

When I build and run the installer neither text substitution occurs? What am I missing?
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

InstallScript MSI projects use MSI Property substitution instead. Try setting the WEBUSERNAME and SERVERNAME properties with MsiSetProperty(), and referencing them with square brackets as [WEBUSERNAME] and [SERVERNAME] in the XML File Changes view.
0 Kudos