How to do major upgrades when using burn / WiX 3.6

人盡茶涼 提交于 2019-12-18 19:03:17

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/11572508/how-to-do-major-upgrades-when-using-burn-wix-3-6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!