将多个 MSI 安装程序合并为单个安装程序
在我的应用程序中有 4 个 msi 安装程序。一个用于安装 Web 项目,另一个用于安装 Web 服务,两个安装程序用于安装 Windows 服务。
我想将所有 4 个合并为一个。有没有办法在不使用 wix、installshield 或任何第三方产品的情况下做到这一点。
In My application there are 4 msi installers.one which installs web project,other one installs web services and two installers for installing windows service.
I want to combine all 4 into one.Is there a way to do that without using wix,installshield or any third party products.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一种简单的方法是添加 3 个安装程序作为第四个安装程序的先决条件。您可以在此处阅读有关先决条件的更多信息:
然后,您可以将 EXE 引导程序和 MSI 文件添加到单个 EXE 自启动文件中。提取存档,在提取时执行引导程序。
如果 EXE 不可接受并且您希望将它们合并到 MSI 中,则您将需要第三方安装创作工具。
A simple approach is to add 3 of your installers as a prerequisite to the fourth one. You can read more about prerequisites here:
You can then add the EXE bootstrapper and MSI files into a single EXE self-extract archive which executes the bootstrapper when extracted.
If an EXE is not acceptable and you want to combine them in an MSI, you will need a third party setup authoring tool.
不,无法将 4 个 MSI 合并为一个。虽然有一些将组件组合在一起的方法(请参阅合并模块,但它们现在并不那么流行),但这些方法必须专门构建,并且在构建将它们添加到其中的 MSI 时消耗。
No, there's no way to combine 4 MSIs into a single one. Whilst there are some ways of compositing components together (see Merge Modules, but they're not that popular these days), these have to be specially constructed, and are consumed whilst constructing the MSI into which they're added.