Deploying a ClickOnce application to multiple servers

梦想与她 提交于 2020-01-06 03:24:05

问题


We're looking at using ClickOnce deployment as a means of distributing our application. However, due to problems with bandwidth, we would need to deploy the application to multiple servers on the network rather than just one.

I work for a bank and am wanting to roll out a WPF client to all of our branches, but the branch network is too slow to have the application check a central server each day for updates, although we do want it to check each time the application is run. Each branch has their own server, so I'd like to be able to deploy the client to these branch servers rather than a server here in the main office.

Is this possible to do with ClickOnce? Would I have to use the command line to do this with MSBuild or is it achievable to do this from within a TFS Build project?


回答1:


I have built a commercial product that is distributed over the Internet using ClickOnce. It is distributed from a single server, though, not multiple servers as in your scenario.

I'd say that what you want to do can be done. The problem is that the application will need to know which branch server to check for updates, and the manifest will have to have the deployment URL (on the local branch server) embedded in it. It therefore seems that you'll have to do a separate build for each branch server. It is probably easy to automate using MSBuild, but I have no experience with that.

A useful reference is Smart Client Deployment with ClickOnce by Brian Noyes.




回答2:


AFAIK, If you simply sync the setup files from a central location to the branch servers, your clients should be able to run/check/update from these




回答3:


Yes, it is possible to deploy using MSBuild (which is part of .NET Framework 2.0 and later). See examples in a search on Stack Overflow for ClickOnce deployment with MSBuild.



来源:https://stackoverflow.com/questions/1907051/deploying-a-clickonce-application-to-multiple-servers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!