根据用户在 WiX 中的选择安装多个 MSI 文件 [英] Install more than one MSI files based on user selection in WiX

查看:27
本文介绍了根据用户在 WiX 中的选择安装多个 MSI 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个安装程序(如 BootStarper)来使用 WiX 实现以下步骤.

I would like to create a installer (like BootStarper) to achieve following steps using WiX.

  • 会有一个 setup.exe 文件.

  • There will be a setup.exe file.

运行此文件后,它必须打开一个 UI 并显示可供安装的软件 (MSI) 列表.

Upon Runnig this file it has to open a UI and show the list of softwares (MSI) available for installation.

软件产品分为两个组 A 或组 B.

The software products are grouped into two Group A or Group B.

每组可能包含两个或多个 MSI 文件(内部文件和第三方文件)

Each group may contain Two or more MSI files (Both internal and third party files)

允许用户选择要安装的组和一个或多个产品.

Allow user to Choose a group and one or more products to be installed.

根据选择,产品应静默安装在本地系统上.

Based on the selection, the products should be silently installed on the local system.

我是否应该创建一个 WiX 项目并显示给定的产品 (MSI) 作为其功能,并且可以启动延迟的自定义操作来安装选定的产品?

Shall I create a WiX project and display given products(MSI) as its features and can start a deffered custom action to install the seleted ones?

如何创作我的 WiX 项目以选择组然后选择功能?

How to author my WiX project to choose the groups and then selected features?

任何帮助将不胜感激.

推荐答案

升级到 WiX 3.6(测试版)并查看新的刻录"功能.

Upgrade to WiX 3.6 (Beta) and take a look at the new "Burn" functionality.

您不能使用延迟的自定义操作来安装另一个 MSI,因为有一个互斥锁强制每台机器运行一个执行序列.

You cannot use a deferred custom action to install another MSI because there is a mutex that enforces one running execute sequence per machine.

MSI 4.5 中有称为多包事务的功能,但是 MSI 4.5 可能尚未安装在 2003/XP/Vista 机器上,因此您无论如何都需要 setup.exe 来增强它.

There is functionality in MSI 4.5 called multi-package transactions however MSI 4.5 may not be already installed on a 2003/XP/Vista Machine so you'd need setup.exe to boostrap it anyways.

并发"安装也已弃用,不应用于解决服务问题.

Also "concurrent" installs are deprecated and should not be used to do servicing issues.

这篇关于根据用户在 WiX 中的选择安装多个 MSI 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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