How to deploy 64-bit and a 32-bit Windows Installer package as a single setup?

前端 未结 2 2125
Happy的楠姐
Happy的楠姐 2020-12-15 07:06

I need to deploy a software setup targeting both, Windows 64bit and 32bit. I have two separate Windows Installer databases (created with WiX) for each platform, and I am usi

相关标签:
2条回答
  • 2020-12-15 07:20

    I would definitely use Burn in this scenario. Something akin to the following:

    <Wix>
      <Bundle...>
        <BootstrapperApplicationRef Id='WixStandardBootstrapperApplication.HyperlinkLicense' />
    
        <Chain>
          <MsiPackage InstallCondition='NOT VersionNT64' SourceFile='path\to\x86.msi' />
          <MsiPackage InstallCondition='VersionNT64' SourceFile='path\to\x64.msi' />
        </Chain>
      </Bundle>
     </Wix>
    

    This is exactly one of the scenarios Burn was designed to handle.

    0 讨论(0)
  • 2020-12-15 07:40

    You can do it in a single Wix via Conditions and Features.

    <Feature Id='X86' Level='1'>
      <ComponentRef Id='X86Feature1' />
      <Condition Level="1">NOT VersionNT64</Condition>
    </Feature>
    
    0 讨论(0)
提交回复
热议问题