WiX Installer:如果已经安装,如何切换到修复模式?
我是 WiX 3.0 的新手,正在编写我的第一个基于 WiX 的安装程序(来自 Wise)。
如果产品已安装(在当前版本中),我希望安装程序自动切换到“修复”模式。它的行为应该与我在 Windows 软件对话框中单击“修复”完全一样。
它的行为必须像这样才能适应系统的整个安装过程。
我阅读了文档但无法解决问题......
I am new to WiX 3.0 and writing my first installer based on WiX (coming from Wise).
If the product is already installed (in the current version), I want the installer to switch to "repair"-mode automatically. It should behave exactly like as if I would have clicked "repair" in the Windows software dialog.
It must behave like this to fit in the overall installation process of the system.
I read the documentation but can't get hold of the problem...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Installed 属性来条件化 REINSTALL 和 REINSTALLMODE 属性的 SetProperty 元素。请小心测试升级,以确保添加条件的其他部分(删除<>“全部”),以便旧产品的升级保持卸载状态,不会翻转为修复。 :)
You can use the Installed property to conditionalize a SetProperty element for REINSTALL and REINSTALLMODE properties. Be careful to test upgrades to ensure that you add the other parts of the condition (REMOVE<>"ALL") so that the upgrade of the old product stays an uninstall and doesn't flip to repair. :)