简体   繁体   English

如何向 ClickOnce 应用程序添加先决条件?

[英]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.

相关问题 具有自定义和默认先决条件的Clickonce WPF应用程序 - Clickonce WPF application with custom and default prerequisites 从ClickOnce应用程序更改先决条件的URL - Change URL of Prerequisites from ClickOnce Application 如何在ClickOnce中更改必备组件的下载和安装顺序 - How to change the download and installation order of the prerequisites in ClickOnce 发布 C# winform ClickOnce 应用程序时如何 select 自定义先决条件(exe 文件)? - how to select Custom prerequisites(exe file) while Publishing a C# winform ClickOnce Application? 如何指定clickOnce应用程序的目标文件夹? - How do I dictate the destination folder of a clickOnce application? 如何找到作为ClickOnce应用程序一部分部署的文件的位置? - How do I find the location of files deployed as part of a ClickOnce Application? 如何确定ClickOnce应用程序的Web原始文件夹? - How do I determine the web origin folder of a ClickOnce application? 如何为ClickOnce应用程序添加应用程序清单 - How to add application manifest for ClickOnce applications vsto先决条件我怎么知道我需要什么? - vsto prerequisites how do I know which I need? 使用ClickOnce更新后,如何防止加载应用程序的两个实例? - How do I prevent two instances of my application from loading after updating using ClickOnce?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM