Windows Installer provides a "msix64" attribute to help us detect whether the current system is 32-bit or 64-bit.
TheMsix64Property is defined only if running on an x64 processor.
When a 64-bit system is detected, the installation package cannot be run. In Wix, we can add a condition:
<Condition message = "This insatller shoshould be run on a 32-bit operation system. 64-bit operating system is not supported.">
<! [CDATA [not msix64]>
</Condition>
However, note that this attribute must be supported by Windows Installer 3.1 or later, that is, the Windows Installer version of the operating system must be at least 3.1. In the installation package, we can specify the minimum version of Windows Installer required by the installation package:
<Package installerversion = "310" compressed = "yes"/>
* Installerversion = Windows Installer version * 100, so 310 indicates 3.1.
Related links: