gpt4 book ai didi

windows - 在一个安装程序中合并 exe 和 msi 文件

转载 作者:可可西里 更新时间:2023-11-01 10:31:58 25 4
gpt4 key购买 nike

我有两个安装文件:

  • Spyder.exe
  • Seupt.msi

我希望将这两个安装文件合并到一个安装文件中,以便可以同时将其一一安装在目标机器上。我试过 NSIS 但它只是从安装文件中提取文件但没有安装包。 Inno Setup 完成了同样的事情。

我的问题是如何制作一个安装程序,将上述两个软件包提取并安装在另一台机器上?

最佳答案

Distribution Scope?: Not sure what the overall goal is: worldwide distribution or corporate deployment, or what exactly it is that you are doing. This has major implications for what makes sense in terms of solutions. For corporate deployment even a batch file might be fine. In most cases I would recommend WiX Burn (free, capable, maintained - i.e security fixes).


Batch(或 PowerShell、ActiveScripting 等...):对于企业部署,一个简单的批处理文件就可以工作,只是指出显而易见的一点。它甚至可以与 SCCM 等部署工具结合使用(当然,它还有许多其他部署方式)。您也可以将批处理文件与下面的自解压存档工具结合使用。出于安全原因,我不喜欢使用它。 Silent installation of MSI files (command line sample) .

7-Zip - et al:此工具(以及类似的工具,例如 WinRAR)可以制作运行时的自解压存档提取命令。我见过很多人在使用这些工具时遇到问题,并且 often security related - or runtime dependency hiccups .

dotnetinstaller bootstrapper : 不是很了解。它只是一个 Bootstrap 。为您按顺序运行。 Here it is on github.com (open source) .当我尝试它时——简单地——我发现它有点奇怪。只是想提一下。

NSIS:As suggested by Zett42 above .请注意,我已经看到带有恶意软件扫描程序的 NSIS 二进制文件存在问题(工具作者在我报告时迅速采取了措施)。通过virustotal.com运行成品检查误报。这也适用于所有其他工具。

Inno :再一次:不是我使用的工具,而是should be capable of doing what you need .

WiX Burn :这可能是最灵活、功能最强大的免费选项。商业工具会有更多的易用性,但我认为这个框架应该涵盖大多数用例。有点繁琐 - 它很复杂而且功能强大。 See top colored section here for WiX Burn "how-to" links .


商业选项:还有几个商业选项:Advanced Installer (非常高级:conditional install of prerequisites),Installshield ( screen shot of main view suite projects ), 等等...


一些链接:

关于windows - 在一个安装程序中合并 exe 和 msi 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52125498/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com