registrysearch

WiX registry search returns C:\ instead of expected path

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...