WiX Burn Bootstrapper - Can't detect registry key

64-bit, registry, windows, wix, wix3.6

Solution

I think you want your search to look like this:

<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\VC\Runtimes\x64"
                     Value="Installed" Variable="vcredist"/>

You're current code is searching for a key named `HKEY_LOCAL_MACHINE` under HKLM. I doubt that exists. ;)

Problem

I'm installing a product that requires the Visual C++ redistributables (x64). First my bootstrapper attempts to detect if vcredist (x64) is already installed... ``` <util:RegistrySearch Root="HKLM" Key="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\11.0\VC\Runtimes\x64" Value="Installed" Variable="vcredist"/> ``` The key is 'virtualized' (I think), in regedit it appears under... ``` HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\VC\Runtimes\x64 ``` Notice I don't put the 'Wow6432Node' bit in my search because I think that's meant to be hidden by the OS?. This search ALWAYS fails.... ``` [131C:0BC0][2013-03-18T12:42:17]: Registry key not found. Key = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\11.0\VC\Runtimes\x64' ``` I tried adding `Win64="yes"` to my registry search, no success. Any suggestions?

Original source

Related problems