How to downgrade application with WIX Bundle?

2019-07-18 00:58发布

I created a WIX Burn setup. The Bundle chained multiple .MSI files for global installation (all MSI support downgrading).

<Bundle Name="APP 4.3.0" 
    Version="4.3.0" 
    Manufacturer="Manu" 
    UpgradeCode="$(var.UpgradeCode)">

<Chain>
  <PackageGroupRef Id="VCppRedistPackage"/>
  <PackageGroupRef Id="DotNet4Package"/>

  <MsiPackage Id="CrystalReportPackage"
              SourceFile="$(var.SolutionDir)_CommonFiles\CRRuntime_32bit_13_0_9.msi"
              DownloadUrl="http://MyAppRuntime/CrystalReport_NET40/CRRuntime_32bit_13_0_9.msi"
              InstallCondition="NOT CR32VersionInstalled OR IsInstalledCRVersionOlder"
              Compressed="no"
              Permanent="yes"
              DisplayInternalUI="no" 
              Visible="yes" />

  <MsiPackage SourceFile="$(var.SolutionDir)..\OthersSetup\Setup.msi" Permanent="yes" DisplayInternalUI="no" Visible="yes" />

  <MsiPackage SourceFile="$(var.AppInstall.TargetDir)AppInstall.msi" Permanent="no" DisplayInternalUI="yes" Visible="no" />
</Chain>

I really have to allow downgrading for testing reasons. Any solution or proposal ?

Thanks in advance

1条回答
聊天终结者
2楼-- · 2019-07-18 01:44

Burn does not allow downgrade for MSI packages. When a newer package is already installed, Burn proceeds to mark the package as applicable and the install then fails since the MSI blocks the downgrade unless SuppressDowngradeFailure is set to "yes".

See WixStandardBootstrapperApplication Element for more details.

查看更多
登录 后发表回答