是否可以将安装程序列表(类型 .exe,对于 windows OS)捆绑到单个可执行安装程序中?

Is it possible to bundle a list of installers (type .exe, for the windows OS), into a single executable installer?

我有一个可执行文件列表,它们是特定 windows 程序的安装程序。我是否可以制作一个安装程序,将所有这些安装程序捆绑在一起,以便最终用户可以一次性安装所有程序,而不是单独安装程序?

此外,我所指的程序是开源的,我可以在GitHub上访问它们的源代码。如果无法捆绑安装程序,欢迎使用任何替代方法!

一般部署软件

如果这些是不同的和随机的设置,并不真正属于一个单一的产品,您甚至可以使用常规批处理文件按顺序安装它们 - 显然。或用于公司部署和使用的普通软件交付系统,例如 SCCM。

采用这种顺序方法的核心任务是找到可靠的方法 运行 静默设置(或捕获它们并转换为 MSI 文件)——这可能是一个真正的挑战。如果这就是您正在做的事情 - 本质上只是将一堆不相关的设置分发到 PC,那么也许看看这些答案:

  • How to monitor and log manual installation

交付 "Shrink-Wrapped" 应用程序(软件解决方案)

如果您需要将几个先决条件与您的软件捆绑在一起以交付给最终用户,那么市场领导者 WiX (free and open source), Installshield and Advanced Installer 都具有这方面的功能。商业工具(后两个)支持工具中的视图,这些视图将自动捆绑 setup.exe 启动器中的标准先决条件 - 例如 .NET Framework(现在作为标准 运行time应该通过 Windows 更新下载而不是膨胀你的设置 - 在我看来)。

Advanced Installer allows you to define your own files as pre- or post installation steps to include with your final setup.exe. Check the feature documentation. And the list of suggested learning material. Prerequisites Page.

WiX provides the Burn tool to make installation bundles which can consist of MSI files, EXE files and MSP (patch) files (and whatever other files I am not aware of). It can be a bit involved to make these bundles, but it is free. You get a wrapper setup.exe file that then installs all the bundled elements. Here is a sample from the documentation: How To: Install the .NET Framework Using Burn.

Installshield (in the more expensive editions) provides a feature called Installshield Suite Projects or Advanced UI Projects where you can sequence EXE files, MSI files, AppX files and other files to run in sequence. You can implement this in full GUI mode. Here is a screenshot。确保检查您拥有的 Installshield 版本,以防找不到此功能。它可能不包含在您的版本中。对于普通项目中的常规 setup.exe 构建,有一个广泛的库,其中包含用于 MSI 设置的普通和常用先决条件。


有人推荐dotNetInstaller Setup Bootstrapper。我从来没有用它来做任何真实的事情。我尝试了一次,发现它使用起来有点奇怪。我既不能推荐它,也不能说任何具体的事情。没有情报值钱。也许试一试?


相似答案:

  • What are some good alternatives to InstallShield?
  • Wix - How to run/install application without UI
  • Wix Custom Action Sequence
  • Regarding silent installation using Setup.exe generated using Installshield 2013 (.issuite) project file
  • WiX alternatives?
  • Application Installer: Microsoft database engine 2010 not available under pre-requisites

您可以使用 curl 并将每个可执行文件下载到 %temp% 文件夹并执行它们。