Hi,
I'm facing issues while fetching the Installation Path of a 64-bit component through its Registry Entry on 64-bit Platform. Through WIX, when I'm searching for a particular registry key, because of registry redirection it is redirected to WOW6432node where registry keys doesn't exist. So, through WIX, is there any way to look into the 64-bit Registry View with only Single MSI creation?
Here are some of my findings about the same :
1. A component must be marked as Win64="yes" in order to cause registry entries to be written under the 64-bit registry hive instead of the WOW64 registry hive.
2. Refer
stackoverflow.com/questions/1838009/plat...ification-in-wix-3-0 , telling that we can use the Condition statement (documentation here<
wix.sourceforge.net/manual-wix2/wix%5Fxsd%5Fcondition.htm>) which will detect at install time which platform the installer is running on. This allows you to create just one installer which will work on all platforms.
The test for 64bit platform is VersionNT64 and conversely the test for non 64bit platforms is NOT VersionNT64
For example:
<Component Id="SomeComponentId" Guid="SomeGuid">
<Condition>
<![CDATA[NOT(VersionNT64)]]>
<Condition>
<File Id="SomeFile" Name="Somefile.exe" Source="$(var.UI.TargetDir)\ProjectOutput.exe" />
</Component>