Update INI Fields Sections

[<update-inifields-section-name>]
<ini-file>, <ini-section>, <profile-name>, [<old-field>], [<new-field>],[<flags>]
    .
    .
    .

Replaces, adds, and deletes fields in the value of a given INI entry. Unlike the Update INI File section type, this type of section replaces, adds, or deletes portions of a value in an INI file entry rather than the whole value. The section name, update-inifields-section-name, must appear in the UpdateIniFields item in an Install section of the INF file.

ini-file
Name of the INI file containing the entry to change. For more information about specifying the INI filename, see the topic that describes the Update INI File section type.
ini-section
Name of the INI file section containing the entry to change.
profile-name
Name of the entry to change.
old-field
Field value to delete.
new-field
Field value to add, if not already there.
flags
Specifies whether to treat the old-field and new-field parameters as if they have a wild card character or not and/or what separator character to use when appending a new field to an INI file entry. Can be any of these values:
Bit Value Meaning
0 0 (Default) Treat "*" character literally when matching fields, and not as a wild card character.
0 1 Treat "*" character as a wild card character when matching fields.
1 0 (Default) Use blank (" ") as a separator when adding a new field to an entry.
1 1 Use comma (",") as a separator when adding a new field to an entry.

Any comments in the INI file line are removed as they might not be applicable after changes. When looking for fields in the line in the INI file, spaces, tabs and commas are used as field delimiters. However, a space is used as the separator when the new field is appended to the line.

See also ,