如何通过 MSI 升级安装程序 WIX 引导程序包,反之亦然? [英] How can I upgrade installer WIX bootstrapper bundle via MSI and vice-versa?

查看:18
本文介绍了如何通过 MSI 升级安装程序 WIX 引导程序包,反之亦然?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情况:

我有一个基于 WIX 的引导程序安装程序,它安装我的 msi 包和(一些)先决条件 (.NET).安装程序是 .exe,运行正常.

I have a WIX-based bootstrapper installer, which installs my msi package and (some) prerequisites (.NET). The installer is .exe and it works ok.

现在,一些客户想要安装 msi,尤其是在他们可以集中推送的企业环境中.

Now, some clients want to install msi, especially in corporate environments where they can push it centrally.

看起来很简单,只需给他们 msi.再次,它工作正常.

It looks easy, just give them the msi. Again, It works ok.

现在,问题的部分.

当应用程序从 MSI 安装,然后从 .exe 安装程序升级到更新版本时,将有两个 ARP 条目.反之亦然 - 当应用程序从 .exe 安装,然后从 MSI 升级时,将再次出现双 ARP 条目.

When the application is installed from MSI, and later upgraded to newer version from .exe installer, there will be two ARP entries. And vice-versa - when the application is installed from .exe, and later upgraded from MSI, there will be double ARP entries again.

是否有任何简单/标准的解决方案?

Is there any easy/standard solution?

推荐答案

要保持可见性为 Bundle:可见,MSI:不可见,您可以:

To maintain the visibility as Bundle: visible, MSI: not visible, you can either:

  • 以与软件包相同的方式安装升级,将 ARPSYSTEMCOMPONENT=1 传递给 msiexec,或
  • 更改您的 MSI 产品,使其默认为不可见:<Property Id="ARPSYSTEMCOMPONENT" Value="1"/>
  • Install the upgrade the same way that the bundle does, passing ARPSYSTEMCOMPONENT=1 to msiexec, or
  • Change your MSI Product so that it defaults to not visible: <Property Id="ARPSYSTEMCOMPONENT" Value="1" />

(在您的包中,MsiPackage/@Visible 似乎实际上是否",这是默认设置.)

(In your bundle, MsiPackage/@Visible seems to effectively be "no", which is the default.)

这篇关于如何通过 MSI 升级安装程序 WIX 引导程序包,反之亦然?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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