How do I create or edit an .ini file on the destination computer?
To create or edit an .ini file on the destination computer:
- On the INI Files page in Installation Expert, select a feature from the Feature drop-down list that you want to add an .ini file change.
- If necessary, use the New Folder button to create the path to the .ini file. This can be a new path if you're creating a new .ini file, or the path to an .ini file that already exists on the destination computer. If you want to edit or place an .ini file inside a pre-defined Windows directory, just select the directory under the Windows tree in the left list box.
Note: Add the .ini file immediately after creating the directory structure, because if you create the structure, but fail to put an .ini file entry inside it, the structure is deleted from this installation the next time you save it.
- In the left list box, click on the folder that will contain the .ini file, and click the New File button. The INI File Settings dialog box appears.
- In the INI Filename field, type a name for the new .ini file. On the destination computer, this file will be created if it does not already exist. If if does already exist, the .ini contents you enter will be used to edit the existing .ini file.
- In the INI Settings field, enter the information you want added or changed in the .ini file. You must enter at least one section heading and one variable=value line in the INI Settings list box for the file to be created. You can copy and paste the contents into this dialog from an existing file.
- Click OK to save the new .ini file.
To edit an .ini entry that you created previously, double-click it and make the necessary modifications.
Note: When you change an .ini file and then view its contents on the INI Files page, the lines within the changed section might not be in the same order as before the change. This is not a problem because the entries in an .ini file are not order dependent.
Tips for creating and editing .ini files
The name you enter for an .ini file cannot be edited later; to do so you must delete the .ini entry and create a new one.
If the .ini file already exists, new .ini file settings are merged into the existing .ini file during installation. Any duplicate lines
will be overwritten with the values you enter here. If you enter a section name and a parameter assignment line, and the section name already exists in the .ini file you are updating, the new parameter assignment line is added to the section.
The text you enter into the INI Settings field must be in the correct syntax; section names must be in brackets and contents in the form variable=value. If not, any attempts to create or edit an .ini file on this page fails. Following is an example of correct .ini file syntax:
You can write the value of a property to an .ini file. Type the property name, surrounded by brackets, in the INI Settings field. For instance, the following example shows how to set a variable named MyAppLocation to the installation directory and add it to the APPLICATIONPATH section:
Rate this Article