如何在 c# msi 上安装第 3 方先决条件

发布于 2024-12-20 06:10:12 字数 209 浏览 6 评论 0原文

我在 Visual Studio 2008 中创建了一个包含我的项目的 .msi,它需要必备的第三方软件才能运行,包括 WinZip。我环顾四周,从我所看到的情况来看,有一个先决条件窗口,您可以在其中选择 .NET Framework 等程序。我还尝试过编写一个引导程序来检查机器上是否安装了第三方必备软件,但我遇到了困难。任何其他建议或有关如何执行此操作的一些建议都会非常有帮助。

谢谢

I have created a .msi in visual studio 2008 containing my project and it requires prerequisite third party software to run including WinZip. I have had a look round and from what I've seen, there's a prerequisite window where you can select programs like .NET framework. I have also had a look at writing a bootstrapper to check whether the third party prerequisites have been installed on the machine but I've hit a brick wall. Any other suggestions or some advice on how to do this would be very helpful.

Thanks

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

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

发布评论

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

评论(2

旧时浪漫 2024-12-27 06:10:12

正如 Ramhound 在他的评论中建议的那样,请查看商业产品来编写您的安装程序。有几个工具(包括我个人最喜欢的高级安装程序)提供了该工具的免费版本,可以满足您的初始要求。

根据先决条件的打包方式(MSI 或 EXE),您的 MSI 可能无法直接安装先决条件,除非使用自定义操作或引导程序,该引导程序将在目标系统中搜索先决条件并在其不存在时安装它。目标系统。

顺便说一句,我与高级安装程序没有任何关系,除了几年前我一直是付费客户这一事实。除了可靠的产品之外,他们的服务也非常出色。

As Ramhound suggested in his comment, have a look at the commercial products to author your installer. Several, including my personal favorite Advanced Installer, offer free versions of the tool that may satisfy your initial requirements.

Depending upon how the prerequisites are packaged (MSI or EXE) your MSI might not directly be able to install the prereq without the use of a custom action or a bootstrapper that would search the target system for the prereq and install it if it not present on the target system.

As an aside, I have no affiliation with Advanced Installer other than the fact that I've been a paying customer for a few years now. In addition to a solid product their service is excellent as well.

风月客 2024-12-27 06:10:12

您可以使用 ClickOnce 引导程序。有关如何使用它安装 .net 框架的示例,请参阅此页面

引导程序包安装在 C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\ 或更新的位置。您可以添加自己的包。为了帮助您创建一个,请使用引导程序清单生成器

结果是一个 setup.exe,它首先检查是否安装了先决条件,如果没有则安装它。然后你的 .msi 将被执行。

You can use the ClickOnce bootstrapper. See this page for an example how to use it to install the .net framework.

Bootstrapper packages are installed in C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\, or a newer location. You can add your own package. To help you create one, use the Bootstrapper Manifest Generator.

The result is a setup.exe which first checks if the prerequisites are installed, and if not installs it. Then your .msi will be executed.

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