标签: launch-condition

启动条件以确保在64位系统上使用64位安装程序

我的发射条件怎么样?它应该阻止x86安装程序在64位系统上运行,但似乎没有任何效果.

<!-- Launch Condition to check that x64 installer is used on x64 systems -->
<Condition Message="64-bit operating system was detected, please use the 64-bit installer.">
  <![CDATA[VersionNT64 AND ($(var.Win64) = "no")]]>
</Condition>
Run Code Online (Sandbox Code Playgroud)

var.Win64 是从MSBuild变量派生的,如下所示:

  <!-- Define platform-specific names and locations -->
  <?if $(var.Platform) = x64 ?>
  <?define ProductName = "$(var.InstallName) (x64)" ?>
  <?define Win64 = "yes" ?>
  <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
  <?define PlatformCommonFilesFolder = "CommonFiles64Folder" ?>
  <?else ?>
  <?define ProductName = "$(var.InstallName) (x86)" ?>
  <?define Win64 = "no" ?> …
Run Code Online (Sandbox Code Playgroud)

wix launch-condition wix3.5

7
推荐指数
1
解决办法
4824
查看次数

标签 统计

launch-condition ×1

wix ×1

wix3.5 ×1