WiX3 主要升级不起作用 [英] WiX3 major upgrade not working

查看:18
本文介绍了WiX3 主要升级不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

<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).如果有人能找到问题所在,我将不胜感激.

解决方案

一些一般规则 使升级正常工作:

<块引用>

  1. 新旧产品必须具有相同的 UpgradeCode 值和不同的 ProductCode 值.

  2. 新旧产品必须具有相同的值InstallAllUsers [即每台机器安装无法升级每个用户安装,反之亦然.]

  3. 新产品的安装Version(安装工程,与文件无关版本)必须更高.

  4. 所有安装版本(同样,不是文件版本)必须是 1.0 或更高版本.

有关如何使用 WiX 正确实施升级的更多详细信息,请参阅此线程:

<块引用>

如何实现 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:

  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.

Further details how to correctly implement an upgrade using WiX can be found in this thread:

How to implement WiX installer upgrade?

这篇关于WiX3 主要升级不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆