In the View List under System Configuration, click Text File Changes.Īdd and configure a change set item, which identifies the file for which you want the installation to search: To let end users specify the IP address: 1. Step 4 of the procedure is slightly different, depending on the project type, since Windows Installer controls the user interface of Basic MSI installations, and the InstallScript engine controls the user interface of InstallScript MSI installations. The property that you specify in any of these settings must be enclosed within square brackets, and the property name must be all uppercase for example. In addition, you can use a property for the following change item settings in the Text File Changes view: Note that you can substitute a hard-coded value with a property for the following change set settings in the Text File Changes view: The default value in bold must be replaced by the IP address that an end user enters. The web.config file is installed with the product to INSTALLDIR, and it contains XML such as the following: The following procedure demonstrates how to let end users specify during installation an IP address that must be written to an XML-based web.config file at run time. 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. You can also use a property to specify the text files that you are including or excluding in your search.Īt run time, Windows Installer uses MsiFormatRecord to resolve the property value, and it uses that value to modify your text file. You can use a Windows Installer property to specify text strings for which you are searching or modifying. You can use these functions in InstallScript projects. This information does not apply to InstallScript projects however, the InstallScript language includes string functions for finding and modifying string variables and literals.
Project: This information applies to the following project types: Open topic with navigation Using Windows Installer Properties to Dynamically Modify Text Files Using Windows Installer Properties to Dynamically Modify Text Files