Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix 3.7安装条件不工作_Wix_Wix3.7 - Fatal编程技术网

Wix 3.7安装条件不工作

Wix 3.7安装条件不工作,wix,wix3.7,Wix,Wix3.7,我正在尝试构建一个安装程序,在运行时将决定运行x64或x86的msi。代码的相关部分是: <Chain> <ExePackage Id='PreInst' Vital='no' Name='bsutil.exe' SourceFile='$(var.BASourceDir)\bsutil.exe' SuppressSignatureVerification='no' InstallCommand='-install -sequence PreInst

我正在尝试构建一个安装程序,在运行时将决定运行x64或x86的msi。代码的相关部分是:

<Chain>
  <ExePackage
  Id='PreInst'
  Vital='no'
  Name='bsutil.exe'
  SourceFile='$(var.BASourceDir)\bsutil.exe'
  SuppressSignatureVerification='no'
  InstallCommand='-install -sequence PreInstall -config [BSUtilConfigPath]'
  UninstallCommand='-uninstall -sequence PreInstall -config [BSUtilConfigPath]'
  RepairCommand='-repair -sequence PreInstall -config [BSUtilConfigPath]'
  DetectCondition='WixBundleInstalled'
  InstallSize='10'
  PerMachine='yes'
  Compressed='yes'
    >
    <Payload
      Id='bsutil_Microsoft.Deployment.WindowsInstaller.dll'
      SourceFile='$(var.BASourceDir)\Microsoft.Deployment.WindowsInstaller.dll'
      Compressed='yes'/>
    <Payload
      Id='PreInstBSUtil'
      Name='bsutil.exe.config'
      SourceFile='$(var.BASourceDir)\bsutil.exe.config'
      Compressed='yes'
      />
  </ExePackage>

  <MsiPackage
Id='WiGigStack_x86'
Vital='yes'
Name='Win32\Install\Data\WiGigInstaller_x86.msi'
SourceFile='$(var.WiGigPackageSourceDir)\WiGigInstaller_x86.msi'
SuppressSignatureVerification='yes'
Cache='yes'
InstallCondition='NOT VersionNT64'
ForcePerMachine='yes'
CacheId='{804C8E4E-A874-4A48-B0CE-2E34D614D894}v$(var.ProductVersion)'
    >
    <MsiProperty Name='INSTALLDIR' Value='[MWGRootInstallPath]' />
    <MsiProperty Name='ICHAIN' Value='1' />
    <MsiProperty Name='FCODE' Value='1' />
    <MsiProperty Name='WIXMSIPROP' Value='[WixMsiProperties_Driver]' />
  </MsiPackage>


  <MsiPackage

  Id='WiGigStack_x64'
  Vital='yes'
  Name='Win64\Install\Data\WiGigInstaller_x64.msi'
  SourceFile='$(var.WiGigPackageSourceDir)\WiGigInstaller_x64.msi'
  SuppressSignatureVerification='yes'
  Cache='yes'
  ForcePerMachine='yes'
  InstallCondition='VersionNT64'
  CacheId='{804C8E4E-A874-4A48-B0CE-2E34D614D894}v$(var.ProductVersion)'
    >
    <MsiProperty Name='INSTALLDIR' Value='[MWGRootInstallPath]' />
    <MsiProperty Name='ICHAIN' Value='1' />
    <MsiProperty Name='FCODE' Value='1' />
    <MsiProperty Name='WIXMSIPROP' Value='[WixMsiProperties_Driver]' />
  </MsiPackage>

  <ExePackage
   Id='PostInst'
   Vital='no'
   Name='bsutil.exe'
   SourceFile='$(var.BASourceDir)\bsutil.exe'
   SuppressSignatureVerification='no'
   InstallCommand='-install -sequence PostInstall -config [BSUtilConfigPath]'
   UninstallCommand='-uninstall -sequence PostInstall -config [BSUtilConfigPath]'
   RepairCommand='-repair -sequence PostInstall -config [BSUtilConfigPath]'
   DetectCondition='WixBundleInstalled'
   InstallSize='10'
   PerMachine='yes'
   Compressed='yes'
    >
    <Payload
      Id='PostInstBSUtil'
      Name='bsutil.exe.config'
      SourceFile='$(var.BASourceDir)\bsutil.exe.config'
      Compressed='yes'
      />
  </ExePackage>
</Chain>

但当我在x64机器上运行安装程序时,他也尝试执行x86 msi,但失败了。在日志中,我可以看到他正确地评估了条件(x64或x86),但仍然坚持安装这两个msi

我做错了什么