使用burn/WiX 3.6时如何进行重大升级 [英] How to do major upgrades when using burn / WiX 3.6

查看:31
本文介绍了使用burn/WiX 3.6时如何进行重大升级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个像这样的 MSI 设置:

I have one MSI setup like this:

<Product Id="*" ... UpgradeCode="4207FF3B-5E0D-4311-9DFC-B41AA8DE2965" />
    <MajorUpgrade DowngradeErrorMessage="Can't downgrade" />

它按预期工作:

  1. 安装产品
  2. 重新编译(有效地生成一个新的 Id)
  3. 启动新的 msi 文件会显示更改视图,我可以修复或卸载产品.

好.但随之而来的是燃烧.

Good. But then comes burn.

我已经创建了最简单的捆绑包.我使用标准引导程序,只添加一个 MsiPackage:

I have created the most simplistic Bundle one can thing of. I use the standard bootrapper and just add one single MsiPackage:

<MsiPackage SourceFile="$(var.Setup.TargetPath)" />

问题是每次重新编译后我可以在已经安装的产品旁边再次安装该产品,而无需更改任何东西!这会导致重复的 ARP 条目!

The problem is that after each recompile I can install the product once again beside the already installed product, without changing anything! This results in duplicate ARP entries!

如果我不重新编译并运行捆绑 exe 文件两次,我会按预期获得修改设置屏幕.我该怎么做才能让刻录行为与仅使用 MSI 时的行为相同?

If I don't recompile and run the bundle exe-file twice, I get the modify setup screen as expected. What can I do to have the same behaviour with burn as I had with just an MSI?

推荐答案

增加 bundle 版本号,Burn 将升级之前的版本并将其删除.

Increment the bundle version number and Burn will upgrade the previous version and remove it.

这篇关于使用burn/WiX 3.6时如何进行重大升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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