WiX3 主要升级不起作用 [英] WiX3 major upgrade not working
问题描述
我正在尝试进行重大升级,但它不起作用.它只是在旧程序旁边安装新程序.它们位于不同的目录中(因为我用新版本更改了目录结构)所以没有冲突,但是旧的需要删除才能使我的产品正常运行.
<Property Id="SAME_OR_NEWER_VERSION" Secure="yes"/><安装执行序列><RemoveExistingProducts After="InstallFinalize"/></InstallExecuteSequence><升级 ID="{PUT-YOUR-GUID-HERE}"><UpgradeVersion Minimum="5.1.3" OnlyDetect="yes" IncludeMinimum="yes" Property="SAME_OR_NEWER_VERSION"/><UpgradeVersion Minimum="5.1" Maximum="5.1.3" Language="1033" Property="UPGRADE_NEEDED" MigrateFeatures="yes" IncludeMinimum="yes"/>
那是我的升级元素(当然删除了 GUID).如果有人能找到问题所在,我将不胜感激.
有一些一般规则 使升级正常工作:
<块引用>新旧产品必须具有相同的
UpgradeCode
值和不同的ProductCode
值.新旧产品必须具有相同的值
InstallAllUsers
[即每台机器安装无法升级每个用户安装,反之亦然.]新产品的安装
Version
(安装工程,与文件无关版本)必须更高.所有安装版本(同样,不是文件版本)必须是 1.0 或更高版本.
有关如何使用 WiX 正确实施升级的更多详细信息,请参阅此线程:
<块引用>I have a major upgrade that I am trying to do, but it just doesn't work. It simply installs the new program along side the old one. They are in different directories (as I changed the directory structure with the new version) so there are no conflicts, but the old one NEEDS to be erased in order for my product to function properly.
<Property Id="UPGRADE_NEEDED" Secure="yes" />
<Property Id="SAME_OR_NEWER_VERSION" Secure="yes" />
<InstallExecuteSequence>
<RemoveExistingProducts After="InstallFinalize" />
</InstallExecuteSequence>
<Upgrade Id="{PUT-YOUR-GUID-HERE}">
<UpgradeVersion Minimum="5.1.3" OnlyDetect="yes" IncludeMinimum="yes" Property="SAME_OR_NEWER_VERSION" />
<UpgradeVersion Minimum="5.1" Maximum="5.1.3" Language="1033" Property="UPGRADE_NEEDED" MigrateFeatures="yes" IncludeMinimum="yes" />
That is my upgrade elements (with GUID removed of course). If anyone can find where the problem lies I would greatly appreciate it.
There are some general rules for an upgrade to be working:
Old and new products must have identical
UpgradeCode
values and differentProductCode
values.Old and new products must have identical values for
InstallAllUsers
[i.e. a per-machine installation cannot upgrade a per-user installation and vice-versa.]New product's setup
Version
(the setup project, nothing to do with file versions) must be higher.All setup versions (again, not file versions) must be 1.0 or greater.
Further details how to correctly implement an upgrade using WiX can be found in this thread:
这篇关于WiX3 主要升级不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!