我使用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文件
发布评论