Specifying Search-and-Replace Criteria for a Text File Change

InstallShield 2012 Spring

Project: This information applies to the following project types:

Basic MSI
InstallScript MSI
Merge Module
MSI Database

This information does not apply to InstallScript projects; however, the InstallScript language includes string functions for finding and modifying string variables and literals. You can use these functions in InstallScript projects.

Once you have specified the text file that you would like to edit, you can move onto the next step of configuring text file changes: specifying the search-and-replace criteria. Each set of criteria is known as a replacement item.

To specify the search-and-replace criteria for a text file change:

1. In the View List under System Configuration, click Text File Changes.
2. In the Text File Changes explorer, right-click the replacement set item whose search-and-replace criteria you want to define, and then click Add Replacement.

InstallShield adds a new replacement item with a default name.

3. Enter a new name, or right-click it later and click Rename to give it a new name.

The name is not displayed at run time; it is an internal name that is used to differentiate between various replacement items in your project.

4. In the right pane, configure the settings for the replacement. For details about each setting, see Replacement Set Settings.

To modify additional strings in the text file, add additional replacement items to the replacement set in this view—one for each string change.

Tip: You can use Windows Installer public properties to specify the search strings and the replacement strings. This enables you to use data that end users enter in dialogs, or other configuration information that is determined at run time, when your product's text files are modified at run time. To learn more, see Using Windows Installer Properties to Dynamically Modify Text Files.

See Also