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
- :
- Text substitution not working
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
Apr 28, 2009
01:03 PM
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?
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("
TextSubSetValue("
//}}IS_SCRIPT_TAG(Dlg_SdCustomerInformation)
if (nResult = BACK) goto Dlg_SdWelcome;
I have put
I have put
When I build and run the installer neither text substitution occurs? What am I missing?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 29, 2009
11:16 AM
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.