如何更改安装和安装更新ClickOnce部署的URL. [英] How to change the Installation & Update URL of a ClickOnce deployment.

查看:180
本文介绍了如何更改安装和安装更新ClickOnce部署的URL.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个非常大,非常慢的分布式网络.

在网络上,我们有一个主中央服务器,以及每个站点上的一台较小的服务器.

由于行数很慢,并且应用程序很大(20MB),因此无法从主中央服务器安装/更新应用程序的所有客户端PC(300+),因此我分别为每个站点创建了单独的ClickOnce部署.

这使我们大多数用户都可以从其本地服务器通过快速LAN连接来安装/更新应用程序.

但是,我们添加的站点越多,获取的内容就越麻烦,因为我必须为每个站点发布应用程序的单独副本,每次都要确保不弄乱URL等.(这很容易发生)

有没有办法更改安装URL和?发布应用程序后(最好以编程方式)更新位置URL?

如果可能,我将创建一个使用单个ClickOnce部署的分发系统,为每个服务器进行修改,然后将其复制到每个服务器上的正确位置.

如果无法做到这一点,我将不得不继续在每个站点上发布单独的部署,这很可能迫使我们从长远角度彻底重新发明轮子并停止使用ClickOnce.

We have a very large, very slow, distributed network.

On the network we have a Main central server, as well as a smaller server at each individual site.

Since we have slow lines, and our application is quite large (20MB) we cannot have all our client PC''s (300+) installing/updating the application from the Main central server, so I create separate ClickOnce Deployments for each site respectively.

This allows the majority of our users to install/update the application over a fast LAN connection from their local server.

However, the more sites we add the more cumbersome this gets since I have to publish a separate copy of the application for each and every site, each time making sure that I don''t mess up the URL''s etc. (This happens quite easily)

Is there a way to change the Installation URL & the Update Location URL after publishing the application (preferably programmatically)?

If this is possible, I will create a distribution system that uses a single ClickOnce deployment, modifies it for each server, and copies it to the correct location on each server.

If this is not possible, I will have to continue publishing separate deployments per site and this will most probably force us in the longer run to re-invent the wheel altogether and stop using ClickOnce.

推荐答案

浏览 [ [
Go through this[^] discussion.

This[^] discusses another approach to achieve the same task.


这篇关于如何更改安装和安装更新ClickOnce部署的URL.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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