使用WiX或Inno Setup捆绑安装多个MSI文件

编程入门 行业动态 更新时间:2024-10-25 14:34:34
本文介绍了使用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文件

本文发布于:2023-11-07 01:06:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565134.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   文件   Inno   WiX   MSI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!