Delete Registry Sections


[<del-registry-section>]
<reg-root-string>, <subkey>, [<value-name>]
[<reg-root-string>, <subkey>, [<value-name>]]
    .
    .
     .

Deletes a subkey or value name from the registry. The del-registry-section name must appear in an DelReg item in an Install section.

reg-root-string

Registry root name. Can be one of these values:

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


subkey

Identifies the subkey to delete. Has the form key1\key2\key3... This parameter can be expressed as a replaceable string. For example, you could use %Subkey1% where the string to replace %Subkey1% is defined in the Strings section of the INF file.

value-name

Optional. Identifies the value name for the subkey. Note that the value-name parameter can be expressed as a replaceable string. For example, you could use %Valname1% where the string to replace %Valname1% is defined in the Strings section of the INF file.

This type of section can contain any number of items. Each item deletes one subkey or value name from the registry.