The INI File to Registry section moves lines or sections from an INI file to the registry, creating or replacing a registry entry under the specified key in the registry. The section name ini-to-registry-section must appear in an Ini2Reg item in an Install section of the INF file.
[ini-to-registry-section]
ini-file, ini-section, [ini-key],reg-root-string,subkey[,flags]
.
.
.
HKCR | Same as HKEY_CLASSES_ROOT. |
HKCU | Same as HKEY_CURRENT_USER. |
HKLM | Same as HKEY_LOCAL_MACHINE. |
HKU | Same as HKEY_USERS. |
HKR | Relative from the key passed into SetupInstallFromInfSection. |
Bit | Value | Meaning |
---|---|---|
0 | 0 | (Default) Do not delete the INI entry from the INI file after moving the information in the entry to the registry. |
0 | 1 | Delete the INI entry from the INI file after moving the information in the entry to the registry. |
1 | 0 | (Default) If the registry subkey exists, do not replace its current value. |
1 | 1 | If the registry subkey exists, replace its current value with the value from the INI file entry. |
Overview, INF File Format Reference