有人知道如何将安装文件添加到 Visual Studio 中的安装项目中吗?

发布于 2024-10-08 05:32:55 字数 80 浏览 0 评论 0原文

我有一个项目还需要安装其他 msi 文件才能运行我以前的应用程序,但我想知道我的安装程序项目是否可以仅在一个安装文件中完成所有这些操作,有可能吗?

i have a project that also need to install other msi's files to be able to works my previous app, but i was wondering if my installer project could do all this thing in only one setup file, it is possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冰葑 2024-10-15 05:32:56

据我所知,您可以在 VS 安装项目中添加合并模块(msm),而不是直接添加 MSI 文件。您可以向 msi 提供商检查 msm 文件是否也可用。如果 msm 文件不可用,解决方法之一是将 msi 文件包含在安装包中,并使用自定义操作启动它们。明显的问题是,如果子 msi 失败,那么您可能无法干净地回滚整个过程。

From what I know, you can add merge module (msm) in the VS Setup project and not MSI files directly. You can check with msi provider if msm file is also available or not. In case msm files are not available, one of the work-around would be to include msi files in setup package and launch them using custom action. Obvious issue is that if child msi fails then you may not able to rollback entire thing cleanly.

吝吻 2024-10-15 05:32:56

通常这是通过先决条件完成的。在 Visual Studio 中,您可以通过项目属性对话框添加它们。

这需要一个 EXE 引导程序。因此,如果您想要一个安装文件,您可以尝试找到一个可以包含引导程序中所有内容的工具。大多数商业设置创作工具都可以做到这一点。

Usually this is done through prerequisites. In Visual Studio you can add them through the project properties dialog.

This requires an EXE bootstrapper. So if you want a single setup file you can try finding a tool which can include everything in a bootstrapper. Most commercial setup authoring tools can do this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文