<Property Id="VC2015_X86">
<RegistrySearch Id="VC2015_X86"
Root="HKLM"
Key="SOFTWARE\Wow6432Node\Microsoft\DevDiv\vc\Servicing\14.0\RuntimeAdditional"
Name="Version"
Type="raw"
/>
</Property>
The property is set by this search. But it fails on 32 bit because Wow6432Node search.
But RegistrySearch Element in Wix Doc says Win64 YesNoType Instructs the search to look in the 64-bit registry when the value is 'yes'. When the value is 'no', the search looks in the 32-bit registry. The default value is based on the platform set by the -arch switch to candle.exe or the InstallerPlatform property in a .wixproj MSBuild project: For x86 and ARM, the default value is 'no'. For x64 and IA64, the default value is 'yes'.
If i change this as below will this work on both 32 and 64 bit?
<Property Id="VC2015_X86">
<RegistrySearch Id="VC2015_X86"
Root="HKLM"
Key="SOFTWARE\Microsoft\DevDiv\vc\Servicing\14.0\RuntimeAdditional"
Name="Version"
Type="raw"
/>
</Property>