[<ini-to-registry-section>]
<ini-file>, <ini-section>, [<ini-key>], <reg-root-string>, <subkey>[,<flags>]
.
.
.
Moves lines or sections from an INI file to the registry, creating or replacing a registry entry under the given 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.
HKCR | Same as HKEY_CLASSES_ROOT |
HKCU | Same as HKEY_CURRENT_USER |
HKLM | Same as HKEY_LOCAL_MACHINE |
HKU | Same as HKEY_USERS. |
HKR | Means relative from the Key passed into GenInstallEx |
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 already exists, do not replace its current value. |
1 | 1 | If the registry subkey already exists, replace its current value with the value from the INI file entry. |
For example, suppose the following entry exists in the WIN.INI file:
[Windows]
CursorBlinkRate=15
If a CursorBlinkRate subkey does not exist under the Control Panel\Desktop, then the following item in an Ini File to Registry section creates the subkey, sets the value of the subkey to 15, and leaves the original line in WIN.INI unchanged:
win.ini,Windows,CursorBlinkRate,HKCU,"Control Panel\Desktop"
If the subkey already exists, the INF file item sets the value of the subkey to 15, and leaves the original line in WIN.INI unchanged.