I'm using the following registry search in WiX
<Property Id="VISUALSTUDIODIR">
<RegistrySearch Id="VISUALSTUDIODIRCMD" Type="raw" Root="HKLM"
Key="Software\Microsoft\VisualStudio\10.0" Name="InstallDir" Win64="yes" />
</Property>
Unfortunately, the path resolves to C:\
instead of the required path. Can someone help me understand why? (The registry path exists - I checked.)