问题描述
我创建了一个 WIX 刻录设置.Bundle 链接了多个 .MSI 文件用于全局安装(所有 MSI 都支持降级).
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 ?
提前致谢
推荐答案
Burn 不允许降级 MSI 软件包.如果已经安装了较新的软件包,Burn 会继续将该软件包标记为适用,然后安装失败,因为 MSI 会阻止降级,除非 SuppressDowngradeFailure
设置为是".
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".
有关详细信息,请参阅 WixStandardBootstrapperApplication 元素.
See WixStandardBootstrapperApplication Element for more details.
这篇关于如何使用 WIX Bundle 降级应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!