RemoveRegistryValues Action

[This is preliminary documentation and subject to change.]

The RemoveRegistryValues action removes an application's registry information from the registry. A registry value is deleted from the registry if the corresponding component has been set to be installed locally or to run from source.

Database Tables Queried

Registry Table

RemoveRegistry Table

Component Table

RemoveRegistry.Root Root key under which the registry value is written.
RemoveRegistry.Key Key under the root.
RemoveRegistry.Name Name of the value.
Component.Action Action field from the Component table for the component record corresponding to Registry.Component_. Must be either:

iisLocal = 1: Item is to be installed locally (item is currently uninstalled or installed from run from source).

iisSource = 2: Item is to be installed from run from source (item is currently uninstalled or installed locally).


The RemoveRegistryValues action also removes the registry information that the application writes to the registry with the WriteRegistryValues action. A registry value is deleted from the registry if the corresponding component has been set to be uninstalled.

Registry Table

Component Table

Registry.Root Root key under which the registry value is written.
Registry.Key Key under the root.
Registry.Value The registry value to be removed. If the WriteRegistryValues action had attached REG_MULTI_SZ strings to the value in the Registry table, then the RemoveRegistryValues action removes only those strings from the registry value.
Registry.Name Name of the value.
Component.Action Action field from the Component table for the component record corresponding to Registry.Component_. Must be:

iisAbsent = 0: item is not installed.


Properties Used

None

Sequencing Restrictions

The InstallValidate action must be called before calling RemoveRegistryValues. If a WriteRegistryValues action is used, it must appear after RemoveRegistryValues.