[英]How do I add prerequisites to a ClickOnce application?
I want to add prerequisites to my Click Once application.我想为我的 Click Once 应用程序添加先决条件。 Here is the problem.
这是问题所在。 The program is in a server and clients install the application from the specific URL.
该程序位于服务器中,客户端从特定 URL 安装该应用程序。 I want to auto install the prerequisites (for example, Crystal Report Viewer) when the user first downloads and installs it, how could I do that?
我想在用户第一次下载并安装它时自动安装先决条件(例如,Crystal Report Viewer),我该怎么做?
I'm using C# Windows Forms and .NET Framework 4.0我正在使用 C# Windows 窗体和 .NET Framework 4.0
You need to create a prerequisite first.您需要先创建先决条件。 The prerequisites that are shown in Visual Studio are in the following location
Visual Studio 中显示的先决条件位于以下位置
C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.0A\\Bootstrapper\\Packages
C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.0A\\Bootstrapper\\Packages
You can create a Product Manifest through this tutorial您可以通过本教程创建产品清单
Put it along with other bootstrapper packages.将它与其他引导程序包一起放置。
Once this is done, you can select that prerequisite in your prerequisites window in publish settings and give the location from where you want the user to download it.完成此操作后,您可以在发布设置的先决条件窗口中选择该先决条件,并提供您希望用户下载它的位置。
Here is a complete tutorial for creating Localized Bootstrapper Package.这是创建本地化引导程序包的完整教程。
There is a tool called Bootstrap Manifest Generator.有一个工具叫做 Bootstrap Manifest Generator。 This Code Project article is a complete tutorial for using this tool.
此代码项目文章是使用此工具的完整教程。 I think this tool is not available from Microsoft directly any more.
我认为 Microsoft 不再直接提供此工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.