Edit INI File Dialog

Windows uses INI files to configure application settings. With the help of Advanced Installer’s dedicated Dialog, you can edit an INI file by adding, removing and modifying file sections and entries.

Edit INI File Dialog

Add a section

Use the [ New Section... ], the “New...” tree context menu item or press the Insert key while the focus is in the “Sections” panel.

Warning!Windows Installer only takes into considerations INI entries (not sections). Empty sections will be discarded when this dialog is closed.

Add an entry to an INI file

Use the [ New Entry... ], the “New...” list context menu item or press the Insert key while the focus is in the entries panel (right panel). The new entry will be added to the selected section. If there are no sections, a default one will be created for you.

Modify a section or an entry

Use the [ Modify... ], the “Modify...” tree/list context menu item or press the Space key while the item you want to edit is selected. The Edit INI Entry Dialog will be displayed for editing entries.

TipThe section names are Formatted Type fields, so you will be able to edit them using the Edit Formatted Type Dialog.

Delete a section or an entry

Use the [ Delete ], the “Delete” tree/list context menu item or press the Delete key while the item you want to remove is selected.

Set to a component

Use the “Set Component” context menu item to set a section or the entire file to a specific component.

Edit INI Entry Dialog

In this dialog, you can change the Key, Value, and attributes of a single INI entry. The "Key" and "Value" fields' contents can be localized.

Edit INI Entry Dialog

TipThe key and value are Formatted Type fields, so you will be able to edit them using Smart Edit Control.

Value

Key

This field contains the name of the key you want to create or add in the INI file.

Value

This field contains the name of the value you want to set for or add to the specified key.

Action

This combo box allows you to specify the action taken during the installation of this INI entry. The available options are:

  • Create or update - the entry will be created if it doesn't exist or it will overwrite the existing entry.
  • Create only if it doesn't exist - the entry will be created only if it doesn't already exist.
  • Create or append comma separated - the entry will be created if it doesn't exist or the specified value will be appended to the specified key.
  • Remove entry - removes the key specified in the Key field.
  • Remove tag from entry - removes the value specified in the Value field from the key specified in the Key field.

For example, let's consider this INI:

[Example]
        Key0=Value0
        Key1=Value1;Value2;Value3

After you use the "Remove entry" option for Key0, the INI will look like this:

[Example]
        Key1=Value1;Value2;Value3

For this new INI, using the "Remove tag from entry" option for Value2 in Key1 will result in this:

[Example]
        Key1=Value1;Value3

General

Component

This combo box allows you to select the component which will contain the INI entry.