在 MSI ui 中使用引导程序 [英] Using bootstrapper with MSI ui

查看:29
本文介绍了在 MSI ui 中使用引导程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有可以安装的 MSI 文件.它包含一个定制的 UI,也从用户那里收集数据.作为安装的一部分,如果缺少,我想安装以下内容

I have MSI file that is ready to install. It contains a customized UI that also collects data from user. As part of installation, i would like to install following things if missing

  • .Net 框架 4.0
  • Microsoft Visual C++ 2010 Redistributable Package (x64)

据我所知,引导程序也应该包含 UI.如何使用引导程序仅启动先决条件阶段,然后继续进行 MSI UI 安装?

From what I learned, bootstrapper should contain UI as well. How can I use bootstrapper for only initiating prerequisites stage and then proceed with MSI UI installation?

推荐答案

如果您使用 Visual Studio 安装和部署项目引导程序(GenerateBootstrapper 相关的东西),那么它会在安装后显示您的 MSI UI先决条件.这是一个非常简单的引导程序.

If you use the Visual Studio Setup and Deployment projects bootstrapper (GenerateBootstrapper related things) then it will show your MSI UI after installing the prerequisites. It's a pretty simple bootstrapper.

我相信您正在考虑的自定义引导程序 UI 是 WiX v3.6+ 中的新刻录功能.Burn 功能强大得多,可以为多个链接的包(.exe 或 .msi 或 .msp 或 .msu)创建单一、无缝的用户体验.使用 Burn,您可以创建一个非常自定义的 UI,该 UI 不会显示链接包中的任何 UI.或者,您可以让 Burn 显示 MSI UI.基本上,Burn 是高度可配置的,但确实需要一些额外的工作(因为 WiX 工具集尚未提供开箱即用的一切).

I believe the custom bootstrapper UI you are thinking about is the new Burn functionality in WiX v3.6+. Burn is a lot more powerful and can create single, seamless user experience for multiple chained packages (.exe's or .msi's or .msp's or .msu's). Using Burn you can create a very custom UI that does not show any UI from your chained packages. Alternatively, you can have Burn show the MSI UI. Basically, Burn is highly configurable but does require a bit of extra work (since WiX toolset doesn't provide everything out of the box, yet).

要在基于刻录的 Bundle 中运行时显示 MSI UI,您需要将 DisplayInternalUI='yes' 添加到 MsiPackage> 要显示的元素.例如:

To show the MSI UI when running in a Burn-based Bundle you'll need to add DisplayInternalUI='yes' to the MsiPackage elements you want to display. For example:

<Chain>
   ...
   <MsiPackage ... DisplayInternalUI='yes' />
</Chain>

如果您使用 wixstdba(这很常见),它将显示它的 UI,直到需要安装 .msi 包.然后 .msi 包 UI 将在顶部弹出并返回 wixstdba UI 以完成 Bundle 安装.如果您想更改基于 Bundle 的 UI 的显示方式,您可以提供自己的 Bootstrapper 应用程序.

If you are using the wixstdba (which is very common), it will show it's UI until it comes time to install the .msi package. Then the .msi package UI will pop-up on top and return back to the wixstdba UI to complete the Bundle install. You could provide your own Bootstrapper Application if you want to change the way that the Bundle based UI shows up.

这篇关于在 MSI ui 中使用引导程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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