[wix-users] Detecting 32-bit System
Parkes, Kevin
kevin.parkes at wacom.com
Wed Jul 15 01:56:58 PDT 2020
$(var.Platform) is the platform you are building for, not the platform being installed on to.
Actually, if you build your MSI for 64-bit, you don't need to do anything - Windows Installer won't install a 64-bit MSI on a 32-bit system, it will display the message "This installation package is not supported by this processor type"
Regards,
Kev
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Benny Bürger via wix-users
Sent: 15 July 2020 09:12
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Benny Bürger <buerger at simba.de>
Subject: Re: [wix-users] Detecting 32-bit System
[EXTERNAL]
The best way to detect the platform is:
<?if $(var.Platform) = x64 ?>
<?define Win64 = "yes" ?>
<?else ?>
<?define Win64 = "no" ?>
<?endif ?>
And then use Win64 in your condition
Best regards,
Benny
-----Ursprüngliche Nachricht-----
Von: wix-users <wix-users-bounces at lists.wixtoolset.org> Im Auftrag von Todd Hoatson via wix-users
Gesendet: Dienstag, 14. Juli 2020 22:09
An: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Todd Hoatson <todd.hoatson at gmail.com>
Betreff: [wix-users] Detecting 32-bit System
Our product has been a 32-bit app for many years, but now we have switched to 64-bit. One requirement for our installer is that we do something reasonable if someone tries to install our new product on a 32-bit system.
In the WiX code for building our bundle, we currently have:
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
...
<Bundle
...
<bal:Condition Message="XP is no longer supported."> (VersionNT >=
v6.0) </bal:Condition>
Is it enough to change the last line to:
<bal:Condition Message="32-bit Windows is no longer supported.">
(VersionNT64 >= v6.0) </bal:Condition>
Is this a reliable approach? Or is there a better way to ensure the installer will not proceed on a 32-bit system?
thanks,
Todd Hoatson
Mobile: 763-291-3312
Email: todd.hoatson at gmail.com
www.linkedin.com/in/toddhoatson
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list