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

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

问题描述

我想添加我的点击一次应用程序的先决条件。这是问题。该程序在服务器中,客户端从特定URL安装应用程序。我想自动安装先决条件(例如,Crystal Report Viewer),当用户首次下载并安装它时,我该怎么做?

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?

我正在使用C# Windows Forms和.NET Framework 4.0

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

推荐答案

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

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


C:\程序文件(x86)\Microsoft SDKs\ Windows \v8.0A\Bootstrapper\Packages

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages

您可以通过这个教程

与其他引导程序一起放包。

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.

有一个名为Bootstrap Manifest Generator的工具。此代码项目文章是一个使用这个工具的完整教程。我认为这个工具从微软直接得不到。

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天全站免登陆