gpt4 book ai didi

WiX3 主要升级不起作用

转载 作者:行者123 更新时间:2023-12-04 14:27:37 24 4
gpt4 key购买 nike

我正在尝试进行重大升级,但它不起作用。它只是将新程序安装在旧程序旁边。它们位于不同的目录中(因为我用新版本更改了目录结构)所以没有冲突,但旧的需要删除才能让我的产品正常运行。

<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" />

那是我的升级元素(当然删除了 GUID)。如果有人能找到问题所在,我将不胜感激。

最佳答案

some general rules升级工作:

  1. Old and new products must have identical UpgradeCode values and different ProductCode values.

  2. 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.]

  3. New product's setup Version (the setup project, nothing to do with file versions) must be higher.

  4. All setup versions (again, not file versions) must be 1.0 or greater.



可以在此线程中找到如何使用 WiX 正确实现升级的更多详细信息:

How to implement WiX installer upgrade?

关于WiX3 主要升级不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3863171/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com