Delete Registry Section


DelReg

[del-registry-section]
reg-root-string, subkey, (value-name)
2nd-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:

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.