I can’t get VS2010 to build a WIX project for x64 – meaning I can add the platform, but it doesn’t build it.
Steps to reproduce:
- New Project > Windows Installer XML > Setup Project (Use default name, location, etc)
- Build > Configuration Manager > Active Solution Platform >
- New Platform: x64
- Copy settings from: x86
- Create new project platforms: Checked (I tried unchecked as well, no better)
- OK to close the New Solution Platform dialog
- Back in Configuration Manager, select x64 for the Platform
- Close the Configuration Manager
- Re-open the Configuration Manager
Results: Platform has reverted to x86.
Expected Results: Platform is still set to x64.
Am I missing something? I can’t be the only person running into this?
WiX definitely supports x64! I got the same issue and that seems to be somehow a crazy issue as I also got it working for another solution for x86 and x64. So I compared the two solution files and figured out what was going wrong with the one not working.
This is a generated nonworking one. To make it work, I replaced the first four strings behind the “=” and played a bit with doing an x86 and x64 build. That worked for me.
Here is the same but working code:
Hope that works for you as well