[DDInstall] |
[DDInstall.CoInstallers] |
[ClassInstall32] |
[ClassInstall32.ntx86] |
[ClassInstall32.ntia64]
Ini2Reg=ini-to-registry-section[, ini-to-registry-section] ...
An Ini2Reg directive references one or more named sections in which lines or sections from a supplied INI file are moved into the registry, thereby creating or replacing one or more value entries under a specified key.
The Ini2Reg 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.
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. If an INF file is to be used for installing devices on Windows XP and later versions of the operating system, the INF file should not contain Ini2Reg directives. INF files containing Ini2Reg directives will not pass "Designed For Windows" logo testing, will not receive a digital signature, and thus will be untrusted by Setup (see How Setup Selects Drivers).
A given ini-to-registry-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 Ini2Reg directive has the following form:
[ini-to-registry-section]
ini-file,ini-section,[ini-key],reg-root,subkey[,flags]
...
An ini-to-registry-section can have any INF-writer-determined number of entries, each on a separate line.
The INF provides the full path to the given ini-file on the distribution media in one of the following ways:
AddInterface, AddReg, ClassInstall32, DDInstall, DDInstall.CoInstallers, InterfaceInstall32, SourceDisksFiles, SourceDisksNames, Strings, UpdateIniFields, UpdateInis, Version