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

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

问题描述

I have one MSI setup like this:

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

It works as expected:

  1. Install product
  2. Recompile (effectively generating a new Id)
  3. Starting the new msi file brings up the change view and I can repair or uninstall the product.

Good. But then comes burn.

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

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!

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?

解决方案

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

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

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