I have a Wix xml for creating a msi setup.
I want a curtain component to be installed from a location based on the current Windows version - x86 or x64, and not based on the current $(var.Platform)
, i.e. setup configuration.
How Can I do it? The best way I can think about is defining a variable, based on the Windows version:
<?if %PROCESSOR_ARCHITECTURE~="amd64" OR %PROCESSOR_ARCHITEW6432~="amd64"?>
<?define InstallationFolder = "x86" ?>
<?else ?>
<?define InstallationFolder = "x64" ?>
<?endif ?>
And using it by the source path for the required component files.
The issue is that the boolean expression above has problems and doesn't detect the OS, it detects the proccess.
I though about using the VersionNT64
, but I didn't see a way of how to use it in the <?if>
boolean expression.