RegistryKey Element

Windows Installer XML (WiX) v3.0

RegistryKey Element

Description
Used for organization of child RegistryValue elements or to create a registry key (and optionally remove it during uninstallation).
Windows Installer references
Registry Table
Parents
Component, RegistryKey
Inner Text
None
Children
Choice of elements (min: 0, max: unbounded)
Attributes
Name Type Description Required
Action Enumeration This is the action that will be taken for this registry value. This attribute's value must be one of the following:
create
Creates the key, if absent, when the parent component is installed.
createAndRemoveOnUninstall
Creates the key, if absent, when the parent component is installed then remove the key with all its values and subkeys when the parent component is uninstalled.
none
Does nothing; this element is used merely in WiX authoring for organization and does nothing to the final output. This is the default value.
 
Id String Primary key used to identify this particular entry. If this attribute is not specified, an identifier will be generated by hashing the parent Component identifier, Root, Key, and Name.  
Key String The localizable key for the registry value. If the parent element is a RegistryKey, this value may be omitted to use the path of the parent, or if its specified it will be appended to the path of the parent.  
Root RegistryRootType The predefined root key for the registry value.  
How Tos and Examples
See Also
Wix Schema