需要金幣:![]() ![]() |
資料包括:完整論文 | ![]() |
![]() |
轉(zhuǎn)換比率:金額 X 10=金幣數(shù)量, 例100元=1000金幣 | 論文字?jǐn)?shù):6832 | ![]() | |
折扣與優(yōu)惠:團購最低可5折優(yōu)惠 - 了解詳情 | 論文格式:Word格式(*.doc) | ![]() |
摘要:用C/S 結(jié)構(gòu)開發(fā)的網(wǎng)絡(luò)軟件, 要解決的主要問題之一就是客戶端的自動升級, 只有完成了這一功能, 才能使開發(fā)的網(wǎng)絡(luò)軟件能及時更新與完善。文章介紹了一種在客戶/服務(wù)器結(jié)構(gòu)下客戶端軟件自動升級的實現(xiàn)方法,并基于C# 探討了其中的部分關(guān)鍵技術(shù)。針對升級問題, 先講述C/S 模式軟件自動升級的發(fā)展現(xiàn)狀和國內(nèi)外研究成果,并敘述了兩種常用的更新方式——局域網(wǎng)自動更新和FTP協(xié)議自動更新,然后討論了設(shè)計自動更新軟件所要處理的問題和難點,最后說明自動更新軟件的需求及其原理和并設(shè)計和實現(xiàn)升級過程。該程序在windows 7環(huán)境下,使用VS2008開發(fā)完成,實現(xiàn)更新文件從Web 服務(wù)器到本地客戶端的傳輸,它的應(yīng)用能減少不小的維護成本。 關(guān)鍵詞:版本檢測;自動升級;升級方法;文件傳輸
Abstract:With the C/S structure development' s network software, one which of subject matters must solve is the client side automatic promotion, only then has completed this function, can enable the development the network software to renew and the consummation promptly. A method for automatic upgrade of client applications in Client /Server structure is introduced,and the key technologies are discussed using C#.Aiming at the update problem,first asked about the C / S mode the software automatically upgrade the status and development of domestic and foreign research results, and describes the two commonly used are updated - automatic updates and FTP protocols LAN automatic updates, and then discuss the design automatically update software to deal with the problems and difficulties, and finally that the demand for and automatically update the software and the design and implementation of the principle and the upgrade process. The program windows 7 environment, developed using VS2008, This module solves the difficulty of the update of C/S software client effectively, it helps to reduce the maintenance cost. Key words: Version Check;Automatic upgrade;Upgrade Methods;File Transfer
系統(tǒng)共有兩個程序,一個是主程序;一個是升級程序;所有升級任務(wù)都由升級程序完成。 1.啟動升級程序,升級程序連接到網(wǎng)站,下載新的主程序(當(dāng)然還包括其他支持主程序的文件)到臨時文件夾; 2.升級程序獲取服務(wù)器端新版本程序的更新日期或版本號或文件大??; 3.升級程序獲取原有客戶端應(yīng)用程序的最近一次更新日期或版本號或文件大小,兩者進(jìn)行比較;如果發(fā)現(xiàn)升級程序的日期大于原有程序的最新日期,則提示用戶是否升級;或者是采用將現(xiàn)有版本與最新版本作比較,發(fā)現(xiàn)最新的則提示用戶是否升級;也有人用其它屬性如文件大小進(jìn)行比較,發(fā)現(xiàn)升級程序的文件大小大 于舊版本的程序的大小則提示用戶升級。本文主要采用比較新舊版本更新日期號來提示用戶升級。 4.如果用戶選擇升級,則獲取下載文件列表,開始進(jìn)行批量下載文檔; 5.升級程序檢測舊的主程序是否活動,若活動則關(guān)閉舊的主程序; 6.刪除舊的主程序,拷貝臨時文件夾中的文件到相應(yīng)的位置; 7.檢查主程序的狀態(tài),若狀態(tài)為活動的,則啟動新的主程序; 8.關(guān)閉升級程序,升級完成。
|