使用WiX或Inno Setup捆绑安装多个MSI文件 [英] Use WiX or Inno Setup to bundle the installation of several MSI files

查看:147
本文介绍了使用WiX或Inno Setup捆绑安装多个MSI文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用cx-freeze为Python应用程序创建MSI安装程序。我们将其称为应用程序 A。它取决于另一个应用程序 B。我希望 A的安装程序包括并运行 B的MSI安装程序。如何使用Inno Setup或WiX工具集创建引导/链式安装程序?

I use cx-freeze to create an MSI installer for a Python application. Let's call it application "A". It depends on another application "B". I would like my installer for "A" to include and run the MSI installer for "B". How can I create a bootstrapping/chaining installer using Inno Setup or the WiX toolset?

推荐答案

这是一个基本的Inno Setup脚本,将两个MSI安装捆绑到一个安装程序中。由于安装程序仅用于安装MSI文件,因此不需要应用程序目录。为了避免创建应用程序目录,请使用 CreateAppDir = no。 (感谢TLama!)

Here is a basic Inno Setup script that bundles two MSI installations into a single setup program. Since the installer only exists to install MSI files, there is no need for an application directory. To avoid creating the application directory, use "CreateAppDir=no". (thanks TLama!)

[Setup]
AppName=My Bundle Installer
AppVersion=0.1
DefaultDirName={pf}\MyCo\MyBundle
DefaultGroupName=My Bundle Group
Uninstallable=no
CreateAppDir=no

[Files]
Source: "A.msi"; DestDir: "{tmp}"
Source: "B.msi"; DestDir: "{tmp}"

[Run]
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\A.msi"""
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\B.msi"""

这篇关于使用WiX或Inno Setup捆绑安装多个MSI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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