Visual Studio 安装项目安装了先决条件但不包含它们
我的项目使用的是 Visual Studio 2010、.NET 3.5。
我正在尝试创建一个安装项目,该项目还将安装 .NET Framework 3.5 和自定义应用程序 (WinPcap) 作为我的应用程序的先决条件。
我不想将 .NET + WinPcap 作为独立安装程序包含在 setup.exe 中。 相反,我想为每个包含安装的先决条件(如 \Precessions\DotNet.exe)指定一个本地相对路径。
这样,如果我愿意,我仍然可以以“独立”方式分发我的应用程序,并进行最少的设置。
我尝试搜索这个网站和网络,但我不知道如何获得我想要的行为。
一些指导会很好,谢谢。
I'm using Visual Studio 2010, .NET 3.5 for my project.
I'm trying to create a setup project which will also install .NET Framework 3.5 and a custom app (WinPcap) as prerequisites for my application.
I don't want to include .NET + WinPcap in setup.exe as a standalone installer.
Instead, I want to specify a local relative path for each prerequisite (like \Prerequisites\DotNet.exe) in which the installations will be contained.
This way I can still distribute my app in a 'standalone' if I wish and a minimal setup.
I've tried searching through this site and the web but I couldn't figure how to get the behavior I want.
Some guidance would be great, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Visual Studio 不支持此功能。该软件包要么有先决条件,要么没有。
解决方案是创建从 URL 下载的自定义先决条件。通过这种方式,您可以分发较小的安装程序,并且仅在需要时下载先决条件。
也许这将帮助您配置先决条件:Adding Custom prerequsites to Visual Studio setup 另一种解决方案
是构建 2 个独立的包:一个有先决条件,另一个没有先决条件。
This is not supported by Visual Studio. The package either has prerequisites or it doesn't have them.
A solution would be to create custom prerequisites which are downloaded from an URL. This way you can distribute a smaller installer and the prerequisites are downloaded only when needed.
Perhaps this will help you configure the prerequisites: Adding Custom prerequsites to visual studio setup project
Another solution is to build 2 separate packages: one with prerequisites and one without them.