How to downgrade application with WIX Bundle?

为君一笑 提交于 2020-01-04 14:02:07

问题


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:


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.



来源:https://stackoverflow.com/questions/27226313/how-to-downgrade-application-with-wix-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!