.NET客戶端應(yīng)用程序:.NET應(yīng)用程序更新組件(1)
發(fā)表時(shí)間:2024-02-25 來(lái)源:明輝站整理相關(guān)軟件相關(guān)文章人氣:
[摘要]作者:Jamie CoolMicrosoft Corporation3/4/02 翻譯:李嘉 北京.東方瑞道 2004-6-1譯者小記:智能升級(jí)、自動(dòng)更新,這是我們以前開(kāi)發(fā)Windows應(yīng)用程序時(shí)經(jīng)常碰到而且必須注意的問(wèn)題。在.NET應(yīng)用程序更新組件沒(méi)有出現(xiàn)之前這個(gè)問(wèn)題曾經(jīng)令人...
作者:Jamie Cool
Microsoft Corporation
3/4/02
翻譯:李嘉
北京.東方瑞道
2004-6-1
譯者小記:智能升級(jí)、自動(dòng)更新,這是我們以前開(kāi)發(fā)Windows應(yīng)用程序時(shí)經(jīng)常碰到而且必須注意的問(wèn)題。在.NET應(yīng)用程序更新組件沒(méi)有出現(xiàn)之前這個(gè)問(wèn)題曾經(jīng)令人非常頭疼(除非你就不打算進(jìn)行升級(jí):))。誰(shuí)又不希望自己開(kāi)發(fā)的應(yīng)用程序象Windows XP自身或Microsoft Money那樣具備自動(dòng)更新的功能呢?使用.NET應(yīng)用程序更新組件將會(huì)使這一切變得非常簡(jiǎn)單。在微軟的DevDay2004上曹老師曾演示過(guò)的智能客戶端IssueVision的一個(gè)非常重要的亮點(diǎn)就是智能升級(jí),自動(dòng)更新。其中就采用的是.NET應(yīng)用程序更新組件。本組文章將通過(guò)實(shí)例來(lái)討論一種生成可自動(dòng)更新自身的.NET客戶端應(yīng)用程序的方法。
I recently received a mail from the Microsoft IT team notifying me that they had detected several applications on my desktop computer that did not have the latest patches installed and instructed me to install the latest updates. I’ll be the first to admit that I don’t update the applications I run as much as I should; either on my home machine or on my work machines. It usually takes a problem like a broken feature in an application or an email (or sometimes several) from the IT department, to get me to install updates. Unfortunately I’m more of the rule than the exception when it comes to users updating their applications.
我最近收到一封來(lái)自微軟IT團(tuán)隊(duì)的郵件提醒我他們已經(jīng)探測(cè)到我的桌面計(jì)算機(jī)上的一些應(yīng)用程序沒(méi)有安裝最新的補(bǔ)丁,并建議我安裝這些最新的補(bǔ)丁。我將是第一個(gè)承認(rèn)我并不是手動(dòng)運(yùn)行應(yīng)用程序更新盡管我可以這樣做。不管是在我的家用計(jì)算機(jī)還是我的工作機(jī)器上。讓我去安裝更新,就象應(yīng)用程序中的中斷特征或來(lái)自IT部門(mén)的一封(或有時(shí)是多封)郵件一樣通常會(huì)帶來(lái)問(wèn)題。遺憾的是,相比那些來(lái)更新他們的應(yīng)用程序的用戶我更遵守規(guī)則。
This requirement of needing a user or admin to manually install an update is why rolling out client updates has traditionally been such a huge problem and expense. One solution is to move the responsibility of updating the application from the user to the application itself. Instead of the user obtaining and installing a software update, the client application itself is responsible for downloading and installing updates from a well known server. The only user interaction necessary is whether or not they want to install the new updates now or later. You can see this type of approach to updating applications in action today with products like Windows XP and Microsoft Money.
這種需要用戶或管理員手動(dòng)安裝更新的需求就是輪詢客戶端更新的原因,一直以來(lái)這也成為一個(gè)很大的問(wèn)題并且代價(jià)昂貴。一個(gè)解決方案是將更新的職責(zé)從用戶那邊轉(zhuǎn)移到應(yīng)用程序自身。取代用戶獲取并安裝一個(gè)軟件的更新,客戶端應(yīng)用程序自身負(fù)責(zé)從一個(gè)已知服務(wù)器下載并安裝更新。用戶唯一需要進(jìn)行干預(yù)的是決定是否愿意現(xiàn)在或以后安裝新的更新。你現(xiàn)在可以看到象這類(lèi)更新應(yīng)用程序的方法的實(shí)際產(chǎn)品,比如Windows XP和Microsoft Money。
In this article we will talk about an approach to building .NET client applications that are able to automatically update themselves.
在這篇文章中我們將討論一種生成可自動(dòng)更新自身的.NET客戶端應(yīng)用程序的方法。
(未完待續(xù))