RegistrySearch Element

WiX Help

RegistrySearch Element

Description

Searches for file, directory or registry key and assigns to value of parent Property

Windows Installer references
RegLocator Table, Signature Table
Parents
ComplianceCheck, Property
Inner Text
None
Children
Choice of elements (min: 0, max: 1)
Attributes
Name Type Description Required
Id String Signature to be used for the file, directory or registry key being search for. Yes
Key String Key for the registry value. Yes
Name String Registry value name.  
Root Enumeration Root key for the registry value. This attribute's value should be one of the following:
HKCR
HKCU
HKLM
HKU
Yes
Type Enumeration The value must be 'file' if the last child is a FileSearch element and must be 'directory' if last child is a DirectorySearch element. This attribute's value should be one of the following:
directory
Sets a directory path from the registry value.
file
Sets a file path from the registry value.
raw
Sets the raw value from the registry value. Please note that this value will contain a prefix as follows:
DWORD: Starts with '#' optionally followed by '+' or '-'.
REG_BINARY: Starts with '#x' and the installer converts and saves each hexadecimal digit (nibble) as an ASCII character prefixed by '#x'.
REG_EXPAND_SZ: Starts with '#%'.
REG_MULTI_SZ: Starts with '[~]' and ends with '[~]'.
REG_SZ: No prefix, but if the first character of the registry value is '#', the installer escapes the character by prefixing it with another '#'.
Yes
Win64 YesNoType Instructs the search to look in the 64-bit registry when the value is 'yes'. Default is 'no' and search looks in the 32-bit registry.  
See Also
Wix Schema, ComponentSearch, IniFileSearch