将 exe 和 msi 文件合并到一个安装程序中 [英] Combine exe and msi file in one installer

查看:76
本文介绍了将 exe 和 msi 文件合并到一个安装程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个安装文件:

  • Spyder.exe
  • Seupt.msi

我想把这两个安装文件合并成一个安装文件,这样就可以一一同时安装在目标机器上.我试过 NSIS 但它只是从安装文件中提取文件但没有安装包.Inno Setup 也做了同样的事情.

I want these two setup file to be combined in one setup file so that it can be installed simultaneously one by one in target machine. I tried NSIS but it just extracts file from the setup file but didn't install the package. Same thing done by Inno Setup.

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

推荐答案

分发范围?:不确定总体目标是什么:全球分发<代码>企业部署,或者到底是什么你在做什么.这对有意义的事情有重大影响在解决方案方面.对于企业部署,甚至是批处理文件可能没问题.在大多数情况下,我会推荐 WiX Burn(<强>免费有能力维护 - 即安全修复).

<小时>

批处理(或 PowerShell、ActiveScripting 等...):对于企业部署,一个简单的批处理文件就可以工作,只是为了指出显而易见的问题.它甚至可以与 SCCM 等部署工具结合使用(当然,它还有许多其他部署方式).您也可以将批处理文件与下面的自解压存档工具结合使用.不是出于安全原因我喜欢使用的东西.MSI 文件的静默安装(命令行示例).

7-Zip - et al:这个工具(和类似的工具,如 WinRAR)可以制作自解压文件,运行关于提取的命令.我看到很多人在使用这些工具时遇到问题,通常是安全相关 - 或运行时依赖问题.

7-Zip - et al: This tool (and similar tools, such as WinRAR) can make self-extracting archives that run a command on extract. I have seen many people get problems with these tools, and often security related - or runtime dependency hiccups.

dotnetinstaller 引导程序:不是我非常了解的一些事情.它只是一个引导程序.为您按顺序运行.这里是 github.com(开源).当我尝试 - 简要 - 我发现它有点奇怪.只想提一下.

dotnetinstaller bootstrapper: Not something I know much about. It is just a bootstrapper. Runs things in sequence for you. Here it is on github.com (open source). When I tried it - briefly - I found it a bit weird. Just want to mention it.

NSIS:如上述 Zett42 所建议一>.请注意,我发现 NSIS 二进制文件与恶意软件扫描程序有关(工具作者在我报告时迅速采取了措施).通过 virustotal.com 运行成品以检查误报.不过,这也适用于所有其他工具.

NSIS: As suggested by Zett42 above. Note that I have seen problems with NSIS binaries with malware scanners (tool author took measures quickly when I reported it). Run the finished product by virustotal.com to check for false positives. This goes for all other tools as well though.

Inno:再次:不是我使用的工具,但应该能够做你需要的事情.

Inno: Again: not a tool I use, but should be capable of doing what you need.

WiX 烧录:这可能是最灵活、功能最强大的免费选项.商业工具会更易于使用,但我认为这个框架应该涵盖大多数用例.有点繁琐 - 它很复杂而且有能力.在此处查看顶部彩色部分以获取 WiX Burn操作方法"链接.

WiX Burn: This is probably the most flexible and capable option that is free. Commercial tools will have more ease-of-use, but this framework should cover most use cases I think. Somewhat fiddly - it is complex and capable. See top colored section here for WiX Burn "how-to" links.

商业选项:还有几种商业选项:<强>高级安装程序(非常高级:有条件安装先决条件a>)、Installshield(主视图套件项目的屏幕截图)等...

一些链接:

  • Error Creating a 7-zip installer package
  • How to create windows installer
  • Commonly Used Deployment Tools (MSI)

这篇关于将 exe 和 msi 文件合并到一个安装程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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