Automatic account creation is now enabled. Captcha authentication required for account creation and editing unless you are trusted here.

RegistrySearch

From WiX Wiki at MindCapers

Jump to: navigation, search

Example

    <Property Id="SEARCHFORNET20">
         <RegistrySearch Id="RegistrySearch2" Root="HKLM" Type="raw"
             Name="Install" Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727"/>
    </Property>


WiX v2 Deprecation

>   I'm trying to maintain an old .wxs file generated a while ago by 
> decompiling a Visual Studio-generated .msi. It contains a 
> <RegistrySearch ?type=?Registry?> node which doesn?t appear to be 
> supported any more. (2.0.4611 doesn?t like it; 2.0.2613 does). Could 
> anyone tell me what it did, and what I should update it to? The full 
> context is as follows:

Type='registry' is not supported (it was deprecated for a long time...)

You should replace it with Type='raw' probably.

Here is actual help for Type attribute:

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 '#'.
Personal tools