如何向 ClickOnce 应用程序添加先决条件? [英] How do I add prerequisites to a ClickOnce application?

查看:24
本文介绍了如何向 ClickOnce 应用程序添加先决条件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的 Click Once 应用程序添加先决条件.这是问题所在.该程序位于服务器中,客户端从特定 URL 安装该应用程序.我想在用户第一次下载和安装时自动安装必备软件(例如,Crystal Report Viewer),我该怎么做?

我使用的是 C# Windows 窗体和 .NET Framework 4.0

解决方案

您需要先创建先决条件.Visual Studio 中显示的先决条件位于以下位置

<块引用>

C:Program Files (x86)Microsoft SDKsWindowsv8.0ABootstrapperPackages

您可以通过此教程

将它与其他引导程序包一起放置.

完成此操作后,您可以在发布设置的先决条件窗口中选择该先决条件,并提供您希望用户下载它的位置.

这里是创建本地化引导程序包的完整教程.

有一个工具叫做 Bootstrap Manifest Generator.这篇代码项目文章是使用此工具的完整教程.我认为 Microsoft 不再直接提供此工具.

I want to add prerequisites to my Click Once application. Here is the problem. The program is in a server and clients install the application from the specific 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?

I'm using C# Windows Forms and .NET Framework 4.0

解决方案

You need to create a prerequisite first. The prerequisites that are shown in Visual Studio are in the following location

C:Program Files (x86)Microsoft SDKsWindowsv8.0ABootstrapperPackages

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. This Code Project article is a complete tutorial for using this tool. I think this tool is not available from Microsoft directly any more.

这篇关于如何向 ClickOnce 应用程序添加先决条件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆