Disable the 32-bit installation package from running on the 64-bit Operating System

Source: Internet
Author: User

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:

  • Windows Installer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.