[DDInstall] |
[DDInstall.CoInstallers] |
[ClassInstall32] |
[ClassInstall32.ntx86] |
[ClassInstall32.ntia64]
UpdateIniFields=update-inifields-section[, update-inifields-section] ...
An UpdateIniFields directive references one or more named sections in which fine-grained modifications within the lines of an INI file can be specified.
This directive is almost never specified in INF files for installations on NT-based systems, due to the lack of necessity for INI files on their distribution media. However, the UpdateIniFields directive is valid in any of the sections shown in the formal syntax statement, as well as in INF-writer-defined sections referenced by an AddInterface directive or referenced in an InterfaceInstall32 section.
A given update-inifields-section name must be unique to the INF file. Each INF-writer-created section name must be unique within the INF and must follow the general rules for defining section names. These rules are described in General Syntax Rules for INF Files. For information about how to use the system-defined .nt, .ntx86, and .ntia64 extensions, see Creating INF Files for Multiple Platforms and Operating Systems.
Each named section referenced by an UpdateIniFields directive has the following form:
[update-inifields-section]
ini-file,ini-section,profile-name[,old-field][,new-field][,flags]
...
An update-inifields-section can have any INF-writer-determined number of entries, each on a separate line.
By contrast with a section referenced by the UpdateInis directive, a section referenced by UpdateIniFields replaces, adds, or deletes portions of a line in an existing INI file line rather than affecting the whole value of a particular line. At least one of the old-field and/or new-field values must be specified in each section entry.
Any comments in a to-be-modified INI file line are removed because they might not be applicable after changes made according to this section. When looking for fields in the line in the INI files, spaces, tabs, and commas are interpreted as field delimiters. However, a space character is used as the default separator when a new field is appended to a line.
The INF provides the full path to the given ini-file on the distribution media in one of the following ways:
AddInterface, ClassInstall32, DDInstall, DDInstall.CoInstallers, Ini2Reg, InterfaceInstall32, SourceDisksFiles, SourceDisksNames, Strings, UpdateInis, Version