简体   繁体   English

WIX安装程序:如何保持安装的同一应用程序的先前版本

[英]WIX Installer: How to keep previous revisions of same application installed

I installed a revision 1.0 on my system and after some time I make some changes and change the revision to 1.1; 我在系统上安装了修订版1.0,一段时间后,我进行了一些更改并将修订版更改为1.1。 Now when I install the revision 1.1 of the application it asks me to remove the previous revision of the application. 现在,当我安装该应用程序的修订版1.1时,它要求我删除该应用程序的先前修订版。

How I can instruct WIX that it should keep my old revision installed and install the latest revision without any error? 我该如何指示WIX它应保持我的旧修订版本安装并安装最新修订版本而不会出现任何错误?

As long as you are using simple Upgrade logic, (eg the MajorUpgrade element is great), you only need to do two things: 只要您使用简单的Upgrade逻辑(例如, MajorUpgrade元素很棒),您只需要做两件事:

  1. Change your Product/@Id guid. 更改您的Product/@Id指南。 That will tell the Windows Installer that you have a new issue of your product. 这将告诉Windows Installer您有新发行的产品。
  2. Change your Product/@UpgradeCode guid. 更改您的Product/@UpgradeCode指南。 That will tell the Windows Installer that this product is in a new "family". 这将告诉Windows Installer该产品在新的“系列”中。

Now when you install v1.1 it will leave v1.0 alone and you should end up with both entries in the Add/Remove Programs. 现在,当您安装v1.1时,它将保留v1.0,您应该在“添加/删除程序”中都包含两个条目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Wix:如何卸载使用其他安装程序安装的以前安装的应用程序 - Wix: how to uninstall previously installed application that is installed using different installer WiX安装程序-如何删除已安装的应用程序并在同一运行时重新安装 - WiX installer - how can I remove installed application and re-install it at the same run 如果安装了以前的版本,WIX安装程序将卸载但不安装 - WIX installer uninstalls but not installs if previous version is installed 如何避免安装相同的应用程序实例 wix 安装程序 MSI 和 EXE? - How to avoid install same instance of application wix installer MSI & EXE? WIX安装程序 - 升级应用程序并不总是删除以前安装的应用程序 - WIX Installer - Upgrading application does not always remove prior installed application 如何使Wix安装程序的命令提示符保持打开状态 - How to keep command prompt open for Wix installer 无法卸载使用 wix 安装程序安装的应用程序 - Unable to uninstall the application which is installed using wix installer 如何在WiX安装程序中将应用程序添加为防火墙例外 - How to add an application as Firewall exception in WiX installer Wix安装程序“已安装”条件失败 - Wix installer “Installed” condition fails 如果未安装 Wix 安装程序安装 .net - Wix installer install .net if not installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM