[wix-users] Detecting 32-bit System

Benny Bürger buerger at simba.de
Wed Jul 15 01:11:46 PDT 2020


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/







More information about the wix-users mailing list