如何将我的客户建筑师自动更新 [英] How do i architect automatic update of my clients

查看:116
本文介绍了如何将我的客户建筑师自动更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写在C#(4.0)分布式应用程序。它已成为一个庞大的任务每次我创建一个新的发布时间来更新所有客户端。我不想去ClickOnce的方式,因为已经买了我的软件在某些情况下,组织不希望自己的客户端升级。

I have a distributed application written in C# (4.0). It has become a substantial task to update all clients each time i create a new release. I do not want to go the ClickOnce way, since organisations that has bought my software in some cases do not wish to upgrade their clients.

如何建立这样的更新机制,为我的客户?我的想法是实现一种发射器的应用,用于检查最新版本的服务器,如果需要更新,并启动新的。如果没有可用的更新它的简单启动客户端应用程序。然后我看到更新启动应用程序的问题,应在客户端则是一个负责呢?

How do i build such an update mechanism, for my clients? My thoughts are to implement a kind of launcher application that checks a server for newest version, updates that if required, and starts the new one. If no updates are available it simple starts the client application. Then i see a problem of updating the launcher application, should the client then be the one responsible for this?

我要如何解决这个问题在适当的和健壮的方式,确保客户可以configurate客户更新与否,然后让客户完全autonomically功能?也就是说,没有用户监督。

How do I solve this in a proper and robust way, that ensures that the customer can configurate their clients for updates or not, and then allow the clients to function completely autonomically? That is, without user supervision.

干杯,

推荐答案

创建一个明确分开的多层次的应用。添加您所有的业务逻辑在classLibrary。收藏此库作为参考您的应用程序。随后创建一个在您的UI一个checkFunction。 (例如,通过调用一个WebService检查版本数字)

Create a clearly separated multi tier application. Add all your business logic in a classLibrary. Add this Library as reference to your application. Afterwards create a checkFunction in your UI. (e.g. check a version "number" by calling a webService)

在遥控器的情况下版本> LOCALVERSION下载新的DLL(注册在GAC如有必要)和应用程序的需求重新启动。

In case remote version > localVersion download new DLL (register in GAC if necessary) and demand restart of your application.

如果您的UI逻辑也发生了变化,下载一个完整的新的设置文件(removeOlder版本= TRUE),并要求用户将其启动,或致电的Process.Start闭馆。

If your UI logic has changed too, download a complete new setup file (with removeOlder version = true) and demand user to start it or call process.Start on closed..

只是你的题目的一些想法 - 希望这可以帮助

just a few ideas on your topic - hope this might help

这篇关于如何将我的客户建筑师自动更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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