Search code examples
modulemergewixanycpu

Including 32- and 64-bit merge modules in one WiX installer


I'm writing merge modules for a project I'm working on.

I build two merge modules, one for 32-bit and one for 64-bit. I want to include them in a WiX installer but it tells me I can't: error LGHT0345: 'installer\bin\x64\Release\en-us\myproject.msm' is a 64-bit merge module but the product consuming it is 32-bit. 32-bit products can consume only 32-bit merge modules.

Is there a way to make a dual CPU project so I can include both?

WiX version is 3.6.


Solution

  • Windows Installer doesn't support multi-platform packages. If you need to write to the 64-bit portion of the file system or registry, you need a 64-bit package.