I am facing issues when migrating the managed code from x86 to x64 platform. I have a WiX project to create an MSI which will be executed through Bootstrapper.
On an x86 platform, files get copied in “Program Files” as per the Project.wxs file. But if the same MSI is installed on an x64 platform through Bootstrapper, all the installation files get copied by default in “Program Files (x86)” and the application’s functionality failed as it could not find the necessary files in the 12-hive hierarchy of Program Files (for 64-bit it is “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG”).
I have tried using preprocessor variables like <?if $(var.ProcessorArchitecture)=x64 ?>, but I need to hardcode this variable in the project property to either x86 or x64. Finally I end up with two different MSIs for two different platforms which is not a desirable solution for me.
So, through WiX, is it possible to identify the platform to ensure installation at the desired location?
-arch
switch for candle instead. wix.sourceforge.net/manual-wix3/wix_xsd_package.htm – Headless