Wixtool Burn 安装和卸载 2 个独立的 MSI [英] Wixtool Burn install and uninstall 2 separated MSIs

查看:36
本文介绍了Wixtool Burn 安装和卸载 2 个独立的 MSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Wix 3.8 创建了一个 Wix 自定义引导程序应用程序和捆绑文件.我的 Chain 标签看起来像:

I have created a Wix custom bootstrapper application and bundle file using Wix 3.8. My Chain tag looks like:

<Chain>
      <PackageGroupRef Id="NetFx451Redist"/>
      <MsiPackage Id="MSI1" SourceFile="$(var.MSI1Path)"/>
      <MsiPackage Id="MSI2" SourceFile="$(var.MSI2Path)"/>
</Chain>

安装程序运行良好,我可以运行已安装的 *.exe 文件.但是,当我检查程序和功能时,只有 1 个大程序"包含 MSI1、MSI2 和 .Net4.5.1(之前安装的事件 .Net 4.5.1)的大小.当我卸载这个程序时,MSI1 和 MSI2 被删除.

The installer works fine, and I can run installed *.exe files. However, when I check on Programs and Features, there is only 1 "big program" contain the size of MSI1, MSI2 and .Net4.5.1 (event .Net 4.5.1 installed before). When I uninstall this program, MSI1 and MSI2 are removed.

如何单独安装和卸载 Chain 中的每个元素但仍然使用 Burn?

How can I install and uninstall separately each element in the Chain but still using Burn?

希望这是有道理的.

提前致谢.

推荐答案

一旦你理解了它,你可能真的想要这种行为.

You might actually want this behavior, once you understand it.

Burn 是一个包管理器.一个包由一个或多个包安装.当一个包被卸载时,所有不需要的包也被卸载.

Burn is a package manager. A package is installed by one or more bundles. When a bundle is uninstalled, any unneeded packages are uninstalled, too.

在默认设置下,程序和功能中会显示包,但不会显示由它们安装的 MSI.

With default settings, bundles, but not MSIs installed by them, are shown in Programs and Features.

您可以在 MsiPackage 上设置 Visible="yes" 以使其显示在程序和功能中.

You can set Visible="yes" on an MsiPackage to have it shown in Programs and Features.

您可以通过设置 DisableRemove="yes" DisableModify="yes" 来隐藏程序和功能中的捆绑包.

You can hide a Bundle from Programs and Features by setting DisableRemove="yes" DisableModify="yes".

这篇关于Wixtool Burn 安装和卸载 2 个独立的 MSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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