TW201324353A - File update system, server and method for sending discrepant file based on versions - Google Patents

File update system, server and method for sending discrepant file based on versions Download PDF

Info

Publication number
TW201324353A
TW201324353A TW100145829A TW100145829A TW201324353A TW 201324353 A TW201324353 A TW 201324353A TW 100145829 A TW100145829 A TW 100145829A TW 100145829 A TW100145829 A TW 100145829A TW 201324353 A TW201324353 A TW 201324353A
Authority
TW
Taiwan
Prior art keywords
file
update
version information
version
information
Prior art date
Application number
TW100145829A
Other languages
Chinese (zh)
Inventor
Hui-Min Hua
Wei-Min Chi
Ching-Show Lin
Chun Pei
Pan-Chio Tuan
Original Assignee
Univ Nan Kai Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Univ Nan Kai Technology filed Critical Univ Nan Kai Technology
Priority to TW100145829A priority Critical patent/TW201324353A/en
Publication of TW201324353A publication Critical patent/TW201324353A/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A file update system, a server and a method for sending discrepant file based on versions are provided. By reading a update file differing from using version and latest version when a server determines version information of client and latest version information are different, and sending the update file from the server to the client, the system and the method can download and update port files of software needed update without reinstalling, and can achieve the effect of decreasing downloading load of server.

Description

依據版本差異傳遞相異檔案之更新系統、伺服器及其方法Update system, server and method for transmitting different files according to version difference

一種檔案更新系統、伺服器及其方法,特別係指一種依據版本差異傳遞相異檔案之更新系統、伺服器及其方法。A file update system, a server and a method thereof, in particular, an update system, a server and a method thereof for transferring a different file according to a version difference.

為了修復軟體上的臭蟲(bug)或是增加軟體的功能,有不少的軟體開發者都會持續的對軟體進行修改,而修改後的軟體可能會有檔案被刪除、有檔案被新增及/或有檔案的內容產生變動。軟體的開發者在對軟體修改後,會提供軟體的使用者更新軟體的服務。In order to fix bugs on the software or increase the functionality of the software, many software developers will continue to modify the software, and the modified software may have files deleted, files added and / Or the content of the file has changed. After the software developer modifies the software, it will provide the software user's service to update the software.

而隨著網路的蓬勃發展,更新軟體的方式已由郵寄磁片或光碟片的方式逐漸改為讓使用者自行自網路上下載,透過網路下載更新後的軟體,可以快速又方便的讓使用者更新軟體,因此,網路已變為提供更新後的軟體的最大管道。With the rapid development of the Internet, the way to update the software has been gradually changed from mailing magnetic disk or CD-ROM to allowing users to download it from the Internet. Downloading the updated software through the Internet can be quickly and conveniently The user updates the software, so the network has become the largest conduit for the updated software.

目前大部分的軟體都是在網路上提供一個套件(package)給使用者下載更新後的軟體,由於套件通常是將更新後的軟體進行封裝,並加入安裝程式,因此即使軟體僅僅更新了少數的檔案,但套件仍然會封裝更新後的完整軟體,如此若使用者需要更新軟體,則需要在完成套件的下載之後,進行套件的安裝,才可以將更新後的軟體安裝到電腦上,如此對使用者而言,需要花費較多的時間以及頻寬去下載未更動的檔案。Most of the current software is to provide a package on the network to download the updated software to the user. Since the package usually encapsulates the updated software and adds the installer, even if the software is only updated a small number of File, but the package will still package the updated software. If the user needs to update the software, you need to install the package after downloading the package, so that the updated software can be installed on the computer. For example, it takes more time and bandwidth to download unmodified files.

綜上所述,可知先前技術中長期以來一直存在更新軟體時需要花費一定的時間與頻寬下載完整的軟體,且需要重新安裝的問題,因此有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that in the prior art, there has been a problem that it takes a certain time and bandwidth to download a complete software when updating software, and it needs to be reinstalled. Therefore, it is necessary to propose an improved technical means to solve this problem. .

有鑒於先前技術存在的更新檔案需要下載完整的軟體並需要重新安裝的問題,本發明遂揭露一種依據版本差異傳遞相異檔案之更新系統、伺服器及其方法,其中:In view of the problem that the update file of the prior art needs to download the complete software and needs to be reinstalled, the present invention discloses an update system, a server and a method thereof for transferring a different file according to a version difference, wherein:

本發明所揭露之依據版本差異傳遞相異檔案之更新系統,其包括有:客戶端,用以判斷更新條件被滿足時,傳送包含使用版本資訊之更新請求至伺服器,其中使用版本資訊係表示程式於客戶端中之使用版本;伺服器,用以儲存表示程式之最後版本之最後版本資訊,及用以於接收使用版本資訊後,用以判斷使用版本資訊與最後版本資訊是否相同,當使用版本資訊與最後版本資訊不同時,讀取程式於使用版本及最後版本間相異之更新檔案,並傳送更新檔案至客戶端儲存,其透過伺服器判斷出接收自客戶端之使用版本資訊以及所儲存之最後版本資訊不同時,讀取使用版本與最後版本間相異的更新檔案,並傳送給客戶端,來解決先前技術所存在的問題。The updating system for transmitting a different file according to the version difference disclosed in the present invention includes: a client, configured to transmit an update request including using version information to the server when the update condition is satisfied, wherein the version information is used The version of the program used in the client; the server is used to store the last version information indicating the last version of the program, and is used to determine whether the version information and the last version information are the same when used to receive the version information. When the version information is different from the last version information, the reading program updates the file between the version and the last version, and transmits the update file to the client for storage. The server determines the version information and the received version from the client through the server. When the last version information stored is different, an update file that is different between the version and the last version is read and transmitted to the client to solve the problem of the prior art.

本發明所揭露之依據版本差異傳遞相異檔案之伺服器,其包括有:儲存模組,用以儲存表示程式之最後版本之最後版本資訊;傳輸模組,用以接收客戶端所傳送之使用版本資訊;判斷模組,用以判斷使用版本資訊與最後版本資訊是否相同;讀取模組,用以於判斷模組判斷使用版本資訊與最後版本資訊不同時,讀取程式於使用版本及最後版本間相異之更新檔案,並透過傳輸模組傳送更新檔案至客戶端,其透過判斷模組判斷出傳輸模組所接收之使用版本資訊以及儲存模組儲存之最後版本資訊不同時,由讀取模組讀取使用版本與最後版本間相異的更新檔案,並由傳輸模組傳送,藉以解決先前技術所存在的問題。The server for transmitting a different file according to the version difference disclosed in the present invention includes: a storage module for storing last version information indicating a final version of the program; and a transmission module for receiving the use transmitted by the client Version information; a judging module for judging whether the version information and the last version information are the same; the reading module is configured to read the program in use version and finally when the judging module judges that the version information is different from the last version information. The updated files are updated between the versions, and the update files are transmitted to the client through the transmission module. The judgment module determines that the version information received by the transmission module and the last version information stored in the storage module are different. The module reads the update file that is different between the version and the last version and transmits it by the transmission module to solve the problems of the prior art.

本發明所揭露之依據版本差異傳遞相異檔案之更新方法,其包括有下列步驟:伺服器儲存表示程式之最後版本之最後版本資訊;客戶端判斷更新條件被滿足時,傳送包含使用版本資訊之更新請求至伺服器,使用版本資訊係表示程式於客戶端中之使用版本;伺服器判斷使用版本資訊與最後版本資訊不同時,讀取程式於使用版本及最後版本間相異之更新檔案;伺服器傳送更新檔案至該客戶端;客戶端儲存更新檔案,其透過伺服器判斷接收自客戶端之使用版本資訊以及所儲存之最後版本資訊不同時,讀取使用版本與最後版本間有所差異的更新檔案,並傳送給客戶端,藉以解決先前技術所存在的問題。The method for updating the dissimilar file according to the version difference disclosed in the present invention includes the following steps: the server stores the last version information indicating the last version of the program; and when the client judges that the update condition is satisfied, the transmission includes the version information used. Update the request to the server, use the version information to indicate the version of the program used in the client; when the server determines that the version information is different from the last version information, the program updates the file between the version and the last version; Transmitting the update file to the client; the client stores the update file, and the server reads the version information received from the client and the stored version information is different, and reads the difference between the used version and the last version. Update the file and send it to the client to solve the problems of the prior art.

本發明所揭露之系統、伺服器與方法如上,其與先前技術之間的差異在於伺服器判斷接收自客戶端之使用版本資訊以及所儲存之最後版本資訊不同時,讀取使用版本與最後版本間有所差異的更新檔案並傳回給客戶端。透過上述的技術手段,本發明可以達成減少伺服器之下載壓力的技術功效。The system, the server and the method disclosed in the present invention are as above, and the difference between the prior art and the prior art is that the server judges that the usage version information received from the client and the stored last version information are different, and reads the used version and the last version. Update files that are different from each other and sent back to the client. Through the above technical means, the present invention can achieve the technical effect of reducing the download pressure of the server.

以下將配合圖式及實施例來詳細說明本發明之詳細特徵與實施方式,內容足以使任何熟習相關技藝者輕易地理解本發明解決技術問題所應用的技術手段並據以實施,及理解實現本發明可達成的功效。The detailed features and embodiments of the present invention are described in detail below with reference to the drawings and embodiments, which are sufficient to enable those skilled in the art to readily understand the technical means to which the present invention solves the technical problems. The achievable effect of the invention.

以下先以「第1圖」本發明所提之依據版本差異傳遞相異檔案之更新系統之系統架構圖來說明本發明的系統運作。如「第1圖」所示,本發明之系統含有客戶端100以及伺服器200。其中伺服器200包含儲存模組210、傳輸模組220、判斷模組230以及讀取模組250。In the following, the system operation of the present invention will be described with reference to the system architecture diagram of the update system for transmitting different files according to the version difference according to the present invention. As shown in "FIG. 1", the system of the present invention includes a client 100 and a server 200. The server 200 includes a storage module 210, a transmission module 220, a determination module 230, and a reading module 250.

客戶端100負責判斷更新條件是否被滿足,當更新條件被滿足時,傳送包含使用版本資訊之更新請求至伺服器。前述之更新條件例如程式被客戶端100開始執行時、客戶端100中的系統時間符合預設之更新時間時,但本發明並不以此為限,其中,更新時間可以為使用者設定之時間或者固定間隔的時間。The client 100 is responsible for determining whether the update condition is satisfied, and when the update condition is satisfied, transmitting an update request including the use version information to the server. The foregoing update condition is, for example, when the program is started by the client 100, and the system time in the client 100 meets the preset update time, but the invention is not limited thereto, wherein the update time may be set by the user. Or a fixed interval of time.

上述之使用版本資訊係表示執行於客戶端100中之程式的使用版本,可以為程式的版本編號或前次更新日期等資料,但本發明並不以此為限。The above-mentioned usage version information indicates the usage version of the program executed in the client 100, and may be the version number of the program or the date of the previous update, but the present invention is not limited thereto.

客戶端100也負責在接收到伺服器200回應更新請求所傳送之更新檔案時,將更新檔案儲存到程式所存放的目錄,若程式所存放的目錄中,已儲存一個檔案名稱與客戶端100所接收到的更新檔案的檔案名稱相同的原始檔案,則客戶端100會已更新檔案覆蓋原始檔案,藉以保持更新後的客戶端100所儲存的檔案都是正確的版本。The client 100 is also responsible for storing the update file in the directory where the program is stored when receiving the update file transmitted by the server 200 in response to the update request. If the program is stored in the directory, a file name and the client 100 are stored. After receiving the original file with the same file name of the updated file, the client 100 will update the file to overwrite the original file, so as to keep the updated file stored by the client 100 as the correct version.

客戶端100還負責在接收到伺服器200所傳回之內容修改資訊時,依據內容修改資訊至內容修改資訊中所記錄之原始檔案中,新增資料、修改原始之檔案內容及/或刪除資料,伺服器200不一定需要傳送更新檔案也可以讓客戶端100以編輯原始檔案的方式將原始檔案更新為正確的版本。The client 100 is also responsible for modifying the information according to the content to the original file recorded in the content modification information, adding the data, modifying the original file content and/or deleting the data when receiving the content modification information returned by the server 200. The server 200 does not necessarily need to transmit the update file, and the client 100 can update the original file to the correct version by editing the original file.

儲存模組210負責儲存最後版本資訊。前述之最後版本資訊與使用版本資訊相似,會以與使用版本資訊相同的資料來表示程式的最後版本(通常就是程式的開發者最後釋出的版本),也就是說當使用版本資訊為程式的版本編號/前次更新日期時,最後版本資訊也會是程式的版本編號/前次更新日期。The storage module 210 is responsible for storing the last version information. The last version of the information described above is similar to the version information used, and the last version of the program (usually the version released by the developer of the program) is represented by the same information as the version information used, that is, when the version information is used as the program. When the version number/previous update date, the last version information will also be the version number/previous update date of the program.

一般而言,儲存模組210也負責儲存提供客戶端進行版本更新的檔案更新清單以及更新檔案,但本發明並不以此為限,檔案更新清單及/或更新檔案也可以儲存於其他的檔案伺服器(圖中未示)上。In general, the storage module 210 is also responsible for storing a file update list and updating files for providing a version update of the client, but the invention is not limited thereto, and the file update list and/or the update file may also be stored in other files. Server (not shown).

傳輸模組220負責接收客戶端100所傳送之使用版本資訊,並負責將讀取模組250所讀出的更新檔案傳回給客戶端100。傳輸模組220也負責將讀取模組所讀出之內容修改資訊傳送給客戶端100。The transmission module 220 is responsible for receiving the usage version information transmitted by the client 100, and is responsible for transmitting the update file read by the reading module 250 to the client 100. The transmission module 220 is also responsible for transmitting the content modification information read by the reading module to the client 100.

判斷模組230負責判斷傳輸模組220所接收之使用版本資訊與儲存模組210所儲存之最後版本資訊是否相同。The determining module 230 is responsible for determining whether the version information received by the transmission module 220 is the same as the last version information stored by the storage module 210.

若使用版本資訊與最後版本資訊為程式的版本編號,當判斷模組230比對出使用版本資訊的版本編號較最後版本資訊的版本編號為小時,判斷有新版本可以提供客戶端100更新;而若使用版本資訊與最後版本資訊為程式的更新日期,則當判斷模組230比對出使用版本資訊的更新日期早於最後版本資訊的更新日期時,判斷有新版本可以提供客戶端100更新。其中,判斷模組230判斷是否有新版本可以提供客戶端100更新的方式並不以判斷使用版本資訊與最後版本資訊的版本編號或最後更新日期為限。If the version information and the last version information are used as the version number of the program, when the judging module 230 compares the version number of the version information with the last version, the version number of the last version information is hour, and it is determined that the new version can provide the client 100 update; If the version information and the last version information are used as the update date of the program, when the determination module 230 compares the update date of the use version information with the update date of the last version information, it is determined that the new version can provide the client 100 update. The manner in which the determining module 230 determines whether a new version can provide the client 100 update is not limited to the version number or the last update date of the version information and the last version information.

讀取模組250負責在判斷模組230判斷使用版本資訊與最後版本資訊不同時,若讀取模組250可以讀取到對應使用版本資訊同時也對應最後版本資訊之檔案更新清單,則讀取模組250可以依據檔案更新清單讀取記錄於檔案更新清單中之更新檔案。The reading module 250 is responsible for reading, when the determining module 230 determines that the version information is different from the last version information, if the reading module 250 can read the corresponding version information and also corresponds to the last version information file update list, then the reading module 250 reads The module 250 can read the update file recorded in the file update list according to the file update list.

若使用版本資訊與最後版本資訊相差不只一個版本,也就是使用版本與最後版本之間還有至少一個中間版本,則當程式的開發者提供對應任意兩版本之版本資訊的更新清單時,讀取模組250可以依據上述的方式讀取到同時對應使用版本資訊以及最後版本資訊的更新檔案,而當程式的開發者僅提供同時對應相鄰版本之版本資訊的更新清單時,讀取模組250將沒有辦法讀取到同時對應使用版本資訊以及最後版本資訊的檔案更新清單,如此,讀取模組250需要先讀取同時對應使用版本資訊以及中間版本資訊的第一檔案更新清單,並讀取第一檔案更新清單中所記錄的更新檔案,之後,讀取模組250再讀取同時對應中間版本資訊以及最後版本資訊的第二檔案更新清單,並讀取第二檔案更新清單中所記錄的更新檔案。同樣的,若使用版本與最後版本之間還差了兩個中間版本,則讀取模組250會依據讀取同時對應使用版本資訊以及第一中間版本資訊的清單更新清單、同時對應第一中間版本資訊以及第二中間版本資訊的清單更新清單、同時對應第二中間版本資訊以及最後版本資訊的清單更新清單,依此類推。If there is more than one version of the version information and the last version information, that is, there is at least one intermediate version between the version and the last version, then when the developer of the program provides an update list corresponding to the version information of any two versions, read The module 250 can read the update file corresponding to the version information and the last version information according to the above manner, and when the developer of the program only provides the update list corresponding to the version information of the adjacent version, the reading module 250 There is no way to read the file update list corresponding to the version information and the last version information. Therefore, the reading module 250 needs to first read the first file update list corresponding to the version information and the intermediate version information, and read The first file updates the update file recorded in the list, and then the reading module 250 reads the second file update list corresponding to the intermediate version information and the last version information, and reads the record in the second file update list. Update the file. Similarly, if there are two intermediate versions between the version and the last version, the reading module 250 updates the list according to the list of the version information and the first intermediate version information, and corresponds to the first middle. Version information and a list update list of the second intermediate version information, a list of list updates corresponding to the second intermediate version information and the last version information, and so on.

讀取模組250也負責在讀出更新檔案之後,透過傳輸模組220傳送更新檔案至客戶端100儲存。The reading module 250 is also responsible for transmitting the update file to the client 100 for storage via the transmission module 220 after reading the updated file.

另外,讀取模組250還負責讀取對應使用版本資訊及最後版本資訊之內容修改資訊,並透過傳輸模組220傳送至客戶端100更新原始檔案。其中,與如上述相似的,也可能不存在同時對應使用版本資訊及最後版本資訊的內容修改資訊,讀取模組250需要依據讀取與各中間版本資訊對應的內容修改資訊後,將各個內容修改資訊整合,再傳送給客戶端100。In addition, the reading module 250 is also responsible for reading the content modification information corresponding to the version information and the last version information, and transmitting the same to the client 100 through the transmission module 220 to update the original file. The content modification information corresponding to the version information and the last version information may not exist at the same time as the above, and the reading module 250 needs to modify the information according to the content corresponding to each intermediate version information, and then the content is The information integration is modified and transmitted to the client 100.

接著以一個實施例來解說本發明的運作系統與方法,並請參照「第3圖」本發明所提之依據版本差異傳遞相異檔案之更新方法之方法流程圖。假設在本實施例中,使用版本資訊及最後版本資訊為版本編號。Next, an operation system and method of the present invention will be described with reference to an embodiment, and reference is made to the flowchart of the method for transmitting the update method of the dissimilar file according to the version difference according to the "3rd drawing". It is assumed that in this embodiment, the version information and the last version information are used as the version number.

首先,瀏覽器的開發者會先將瀏覽器的最後版本資訊「V2.6」寫入伺服器200的儲存模組210中,使得儲存模組210儲存瀏覽器的最後版本資訊(步驟301)。First, the developer of the browser first writes the last version information of the browser "V2.6" into the storage module 210 of the server 200, so that the storage module 210 stores the last version information of the browser (step 301).

之後,當使用者在客戶端100上執行瀏覽器時,被執行的瀏覽器會fork出進行版本更新的程序,也就是說,客戶端100上的瀏覽器會在一開始被執行時,判斷出更新條件被滿足(步驟310),因此由版本更新程序控制客戶端100傳送包含使用版本資訊「V2.0」的更新請求至伺服器200(步驟320)。其中,更新條件並不一定要為瀏覽器一開始執行,也可以為是瀏覽器判斷客戶端100中的系統時間符合預設之更新時間,如「00:00」或是間隔前次進行更新檢查的時間已到達預定的「24小時」等。Thereafter, when the user executes the browser on the client 100, the executed browser will fork out the program for version update, that is, the browser on the client 100 will be judged at the beginning of execution. The update condition is satisfied (step 310), so the version update program control client 100 transmits an update request including the use version information "V2.0" to the server 200 (step 320). The update condition does not have to be performed at the beginning of the browser, and the browser may determine that the system time in the client 100 meets the preset update time, such as "00:00" or the interval before the update check. The time has reached the scheduled "24 hours" and so on.

在客戶端100傳送包含使用版本資訊的更新請求至伺服器200(步驟320)後,伺服器200的傳輸模組220會接收到客戶端100所傳送的使用版本資訊「V2.0」,此時伺服器200中的判斷模組230會判斷使用版本資訊以及最後版本資訊是否相同(步驟330),由於傳輸模組220所接收到的使用版本資訊為「V2.0」,而儲存在儲存模組210中的最後版本資訊為「V2.6」,因此判斷模組230會判斷出使用版本資訊以及最後版本資訊不同。After the client 100 transmits an update request including the usage version information to the server 200 (step 320), the transmission module 220 of the server 200 receives the usage version information "V2.0" transmitted by the client 100. The determining module 230 in the server 200 determines whether the version information and the last version information are the same (step 330). The usage version information received by the transmission module 220 is "V2.0" and is stored in the storage module. The last version information in 210 is "V2.6", so the judging module 230 judges that the version information and the last version information are different.

接著,伺服器200中的讀取模組250會讀取瀏覽器在使用版本資訊「V2.0」以及最後版本資訊「V2.6」之間相異的更新檔案(步驟350),假設使用版本資訊「V2.0」以及最後版本資訊「V2.6」之間有兩個相異的更新檔案,分別為「file1.dat」以及「file3.dat」。其中,讀取模組250會先讀取檔案更新清單,被讀取模組250所讀出之檔案更新清單可以檔案名稱「2-6&2-0」來表示檔案更新清單同時對應使用版本資訊「V2.0」以及最後版本資訊「V2.6」,但本發明並不以此為限,其他方式如在檔案更新清單中記錄對應的版本資訊或是以對應表的方式來記錄各版本資訊與檔案更新清單的對應關係等。Then, the reading module 250 in the server 200 reads the updated file of the browser using the version information "V2.0" and the last version information "V2.6" (step 350), assuming the version is used. There are two different update files between the information "V2.0" and the last version of the information "V2.6", which are "file1.dat" and "file3.dat" respectively. The reading module 250 first reads the file update list, and the file update list read by the reading module 250 can indicate the file update list and the version information "V2" by using the file name "2-6&2-0". .0" and the last version of the information "V2.6", but the invention is not limited thereto. Other methods include recording the corresponding version information in the file update list or recording the version information and files in the corresponding table manner. Update the correspondence of the list, etc.

若讀取模組250無法讀取到同時對應使用版本資訊「V2.0」以及最後版本資訊「V2.6」的檔案更新清單,則讀取模組250會依序讀取對應相鄰版本之檔案更新清單,並讀取出更新檔案,其中,詳細之讀取過程先前已說明,故不再贅述。If the reading module 250 cannot read the file update list corresponding to the version information "V2.0" and the last version information "V2.6", the reading module 250 sequentially reads the corresponding adjacent version. The file update list, and the update file is read out, wherein the detailed reading process has been previously described, and therefore will not be described again.

在讀取模組250讀取出更新檔案(步驟350)後,傳輸模組220會將更新檔案「file1.dat」以及更新檔案「file3.dat」傳送到客戶端100(步驟361),客戶端100在接收到更新檔案「file1.dat」以及更新檔案「file3.dat」後,會將接收到的更新檔案「file1.dat」以及更新檔案「file3.dat」儲存(步驟371)。假設客戶端100中已有檔案名稱為「file1.dat」的原始檔案,但沒有檔案名稱為「file3.dat」的原始檔案,則客戶端100會以接收到的更新檔案「file1.dat」覆蓋原始檔案「file1.dat」,同時直接儲存更新檔案「file3.dat」。After the reading module 250 reads the update file (step 350), the transfer module 220 transmits the update file "file1.dat" and the update file "file3.dat" to the client 100 (step 361), the client Upon receiving the update file "file1.dat" and updating the file "file3.dat", the stored file "file1.dat" and the update file "file3.dat" are stored (step 371). Assuming that the original file with the file name "file1.dat" exists in the client 100, but there is no original file with the file name "file3.dat", the client 100 will overwrite the received update file "file1.dat". The original file "file1.dat" is directly stored in the update file "file3.dat".

另外,若讀取模組250還有依據使用版本資訊「V2.0」以及最後版本資訊「V2.6」讀取出如「第3圖」所示之內容修改資訊300後,則傳輸模組220會將內容修改資訊300傳送給客戶端100(步驟362)。In addition, if the reading module 250 further reads the content modification information 300 as shown in the “3rd image” according to the version information “V2.0” and the last version information “V2.6”, the transmission module 220 transmits the content modification information 300 to the client 100 (step 362).

客戶端100在接收到伺服器200所傳送的內容修改資訊300後,會依據內容修改資訊300的內容,在檔案名稱為「file2.dat」的原始檔案中,新增「DemoData=1」的資料至第三行中,並將第五行修改為「TestMode=0」以及刪除第七行,藉以完成與內容修改資訊300對應之原始檔案「file2.dat」的修改(步驟372)。After receiving the content modification information 300 transmitted by the server 200, the client 100 adds the content of the "DemoData=1" to the original file whose file name is "file2.dat" according to the content modification information 300. In the third line, the fifth line is modified to "TestMode=0" and the seventh line is deleted, thereby completing the modification of the original file "file2.dat" corresponding to the content modification information 300 (step 372).

綜上所述,可知本發明與先前技術之間的差異在於具有伺服器判斷接收自客戶端之使用版本資訊以及所儲存之最後版本資訊不同時,讀取使用版本與最後版本間有所差異的更新檔案並傳回給客戶端,藉由此一技術手段可以解決先前技術所存在的更新檔案需要下載完整的軟體並需要重新安裝的問題,進而達成減少伺服器之下載壓力的功效。In summary, it can be seen that the difference between the present invention and the prior art is that there is a difference between the read version and the last version when the server judges that the usage version information received from the client is different and the stored last version information is different. The file is updated and sent back to the client, and the technical solution can solve the problem that the update file existing in the prior art needs to download the complete software and needs to be reinstalled, thereby achieving the effect of reducing the download pressure of the server.

雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍之內,在實施的形式上及細節上所為之更動或潤飾,均屬本發明之專利保護範圍。因此本發明之專利保護範圍仍須以本說明書所附之申請專利範圍所界定者為準。While the embodiments of the present invention have been described above, the above description is not intended to limit the scope of the invention. Any changes or modifications in the form and details of the embodiments of the present invention are intended to be within the scope of the invention. Therefore, the scope of the invention is to be determined by the scope of the appended claims.

100...客戶端100. . . Client

200...伺服器200. . . server

210...模組210. . . Module

220...模組220. . . Module

230...模組230. . . Module

250...模組250. . . Module

400...內容修改資訊400. . . Content modification information

步驟301 伺服器儲存表示程式最後版本之最後版本資訊Step 301 The server stores information indicating the last version of the last version of the program.

步驟310 客戶端判斷更新條件是否被滿足Step 310: The client determines whether the update condition is met.

步驟320 客戶端傳送包含使用版本資訊之更新請求至伺服器Step 320: The client transmits an update request including the use version information to the server.

步驟330 伺服器判斷使用版本資訊與最後版本資訊是否相同Step 330: The server determines whether the version information and the last version information are the same.

步驟350 讀取程式於使用版本及最後版本間相異之更新檔案Step 350: Read the updated file of the program between the version and the last version.

步驟361 伺服器傳送更新檔案至客戶端Step 361 The server transmits the update file to the client.

步驟362 伺服器傳送對應使用版本資訊及最後版本資訊之內容修改資訊至客戶端Step 362: The server transmits the content modification information corresponding to the version information and the last version information to the client.

步驟371 客戶端儲存更新檔案Step 371 The client stores the update file.

步驟372 客戶端依據內容修改資訊修改相對應之原始檔案Step 372: The client modifies the corresponding original file according to the content modification information.

第1圖係本發明所提之依據版本差異傳遞相異檔案之更新系統之系統架構圖。FIG. 1 is a system architecture diagram of an update system for transmitting dissimilar files according to version differences according to the present invention.

第2圖係本發明所提之依據版本差異傳遞相異檔案之更新方法之方法流程圖。FIG. 2 is a flow chart of a method for updating a method for transmitting a different file according to a version difference according to the present invention.

第3圖係本發明實施例所提之內容修改資訊。Figure 3 is a modification of the content of the embodiment of the present invention.

步驟301 伺服器儲存表示程式最後版本之最後版本資訊Step 301 The server stores information indicating the last version of the last version of the program.

步驟310 客戶端判斷更新條件是否被滿足Step 310: The client determines whether the update condition is met.

步驟320 客戶端傳送包含使用版本資訊之更新請求至伺服器Step 320: The client transmits an update request including the use version information to the server.

步驟330 伺服器判斷使用版本資訊與最後版本資訊是否相同Step 330: The server determines whether the version information and the last version information are the same.

步驟350 讀取程式於使用版本及最後版本間相異之更新檔案Step 350: Read the updated file of the program between the version and the last version.

步驟361 伺服器傳送更新檔案至客戶端Step 361 The server transmits the update file to the client.

步驟362 伺服器傳送對應使用版本資訊及最後版本資訊之內容修改資訊至客戶端Step 362: The server transmits the content modification information corresponding to the version information and the last version information to the client.

步驟371 客戶端儲存更新檔案Step 371 The client stores the update file.

步驟372 客戶端依據內容修改資訊修改相對應之原始檔案Step 372: The client modifies the corresponding original file according to the content modification information.

Claims (10)

一種依據版本差異傳遞相異檔案之更新方法,該更新方法包含下列步驟:一伺服器儲存表示一程式之一最後版本之一最後版本資訊;該客戶端判斷一更新條件被滿足時,傳送包含一使用版本資訊之一更新請求至該伺服器,該使用版本資訊係表示該程式於該客戶端中之一使用版本;該伺服器判斷該使用版本資訊與該最後版本資訊不同時,讀取該程式於該使用版本及該最後版本間相異之一更新檔案;該伺服器傳送該更新檔案至該客戶端;及該客戶端儲存該更新檔案。An update method for transferring a different file according to a version difference, the update method comprising the following steps: a server stores a last version information indicating one of the last versions of a program; and the client determines that an update condition is satisfied, the transfer includes a Updating the request to the server by using one of the version information, the usage version information indicating that the program uses the version in one of the clients; the server determines that the usage version information is different from the last version information, and reads the program Updating the file between the usage version and the last version; the server transmits the update file to the client; and the client stores the update file. 如申請專利範圍第1項所述之依據版本差異傳遞相異檔案之更新方法,其中該伺服器讀取該更新檔案之步驟係讀取對應該使用版本資訊且對應該最後版本資訊之一檔案更新清單後,讀取該檔案更新清單中所記錄之該更新檔案,或讀取對應該使用版本資訊且對應一中間版本資訊之一第一檔案更新清單後,讀取記錄於該第一檔案更新清單中之該更新檔案,並於讀取對應該中間版本資訊且對應該最後版本資訊之一第二檔案更新清單後,讀取記錄於該第二檔案更新清單中之該更新檔案。The method for updating the different file according to the version difference according to the first aspect of the patent application scope, wherein the step of reading the update file by the server reads the file update corresponding to the version information and corresponding to the last version information. After the list, reading the update file recorded in the file update list, or reading the first file update list corresponding to one of the intermediate version information corresponding to the version information, and reading the record in the first file update list The update file is read, and after reading the intermediate version information corresponding to one of the last version information and reading the second file update list, the update file recorded in the second file update list is read. 如申請專利範圍第1項所述之依據版本差異傳遞相異檔案之更新方法,其中該方法更包含該伺服器傳送對應該使用版本資訊及該最後版本資訊之一內容修改資訊至該客戶端,該客戶端依據該內容修改資訊修改相對應之一原始檔案之步驟。The method for updating the dissimilar file according to the version difference according to the first aspect of the patent application, wherein the method further comprises: the server transmitting the content modification information to the client using the version information and the last version information, The client modifies the corresponding original file according to the content modification information. 一種依據版本差異傳遞相異檔案之更新系統,該更新系統包含:一客戶端,用以判斷一更新條件被滿足時,傳送包含一使用版本資訊之一更新請求至該伺服器,其中該使用版本資訊係表示一程式於該客戶端中之一使用版本;及一伺服器,用以儲存表示該程式之一最後版本之一最後版本資訊,及用以於接收該使用版本資訊後,用以判斷該使用版本資訊與該最後版本資訊是否相同,當該使用版本資訊與該最後版本資訊不同時,讀取該程式於該使用版本及該最後版本間相異之一更新檔案,並傳送該更新檔案至該客戶端儲存。An update system for transferring a different file according to a version difference, the update system comprising: a client, configured to: when an update condition is satisfied, transmitting an update request including a usage version information to the server, wherein the usage version The information system indicates that a program is used in one of the clients; and a server for storing information indicating the last version of one of the last versions of the program, and for receiving the usage version information for judging Whether the usage version information is the same as the last version information, and when the usage version information is different from the last version information, reading the program to update the file between the usage version and the last version, and transmitting the update file To the client to store. 如申請專利範圍第4項所述之依據版本差異傳遞相異檔案之更新系統,其中該更新條件係該程式被開始執行及該客戶端之一系統時間符合預設之一更新時間至少其中之一。An update system for transferring a different file according to a version difference according to the fourth aspect of the patent application, wherein the update condition is that the program is started and one of the client systems meets one of the preset update times. . 如申請專利範圍第4項所述之依據版本差異傳遞相異檔案之更新系統,其中該伺服器係讀取對應該使用版本資訊且對應該最後版本資訊之一檔案更新清單後,讀取該檔案更新清單中所記錄之該更新檔案,或係讀取對應該使用版本資訊且對應一中間版本資訊之一第一檔案更新清單後,讀取記錄於該第一檔案更新清單中之該更新檔案,並於讀取對應該中間版本資訊且對應該最後版本資訊之一第二檔案更新清單後,讀取記錄於該第二檔案更新清單中之該更新檔案。The updating system for transmitting a different file according to the version difference according to the fourth aspect of the patent application, wherein the server reads the file after reading the file update list corresponding to the version information and corresponding to the last version information. Updating the update file recorded in the list, or reading the update file recorded in the first file update list after reading the first file update list corresponding to one version information and corresponding to an intermediate version information, After reading the second file update list corresponding to the intermediate version information and corresponding to the last version information, the update file recorded in the second file update list is read. 如申請專利範圍第4項所述之依據版本差異傳遞相異檔案之更新系統,其中該伺服器更用讀取對應該使用版本資訊及該最後版本資訊之一內容修改資訊,該客戶端更用以依據該內容修改資訊修改相對應之一原始檔案。The update system for transmitting a different file according to the version difference according to the fourth aspect of the patent application scope, wherein the server further uses the content information of the version information and the last version information to modify the information, and the client uses the information. Modify one of the corresponding original files by modifying the information according to the content. 一種依據版本差異傳遞相異檔案之伺服器,該伺服器提供一客戶端連接,該伺服器包含:一儲存模組,用以儲存表示一程式之一最後版本之一最後版本資訊;一傳輸模組,用以接收該客戶端所傳送之該使用版本資訊;一判斷模組,用以判斷該使用版本資訊與該最後版本資訊是否相同;及一讀取模組,用以於該判斷模組判斷該使用版本資訊與該最後版本資訊不同時,讀取該程式於該使用版本及該最後版本間相異之一更新檔案,並透過該傳輸模組傳送該更新檔案至該客戶端。A server for transmitting a different file according to a version difference, the server providing a client connection, the server comprising: a storage module for storing last version information indicating one of the last versions of a program; a group for receiving the usage version information transmitted by the client; a determination module for determining whether the usage version information is identical to the last version information; and a reading module for the determination module When it is determined that the usage version information is different from the last version information, the program is updated to update the file between the usage version and the last version, and the update file is transmitted to the client through the transmission module. 如申請專利範圍第8項所述之依據版本差異傳遞相異檔案之伺服器,其中該讀取模組係讀取對應該使用版本資訊且對應該最後版本資訊之一檔案更新清單後,讀取該檔案更新清單中所記錄之該更新檔案,或係讀取對應該使用版本資訊且對應一中間版本資訊之一第一檔案更新清單後,讀取記錄於該第一檔案更新清單中之該更新檔案,並於讀取對應該中間版本資訊且對應該最後版本資訊之一第二檔案更新清單後,讀取記錄於該第二檔案更新清單中之該更新檔案。The server that transmits the different file according to the version difference according to the eighth aspect of the patent application scope, wherein the reading module reads the file update list corresponding to the last version information after reading the version information, and reads The update file recorded in the file update list, or after reading the first file update list corresponding to one version information and corresponding to an intermediate version information, reading the update recorded in the first file update list And updating the update file recorded in the second file update list after reading the second file update list corresponding to the intermediate version information and corresponding to the last version information. 如申請專利範圍第8項所述之依據版本差異傳遞相異檔案之伺服器,其中該讀取模組更用讀取對應該使用版本資訊及該最後版本資訊之一內容修改資訊,該客戶端更用以依據該內容修改資訊修改相對應之一原始檔案。The server for transmitting a different file according to the version difference according to the eighth aspect of the patent application scope, wherein the reading module further reads information corresponding to one of the version information and the last version information, and the client It is further used to modify the corresponding original file according to the content modification information.
TW100145829A 2011-12-12 2011-12-12 File update system, server and method for sending discrepant file based on versions TW201324353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100145829A TW201324353A (en) 2011-12-12 2011-12-12 File update system, server and method for sending discrepant file based on versions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100145829A TW201324353A (en) 2011-12-12 2011-12-12 File update system, server and method for sending discrepant file based on versions

Publications (1)

Publication Number Publication Date
TW201324353A true TW201324353A (en) 2013-06-16

Family

ID=49033011

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100145829A TW201324353A (en) 2011-12-12 2011-12-12 File update system, server and method for sending discrepant file based on versions

Country Status (1)

Country Link
TW (1) TW201324353A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9923988B2 (en) 2013-07-10 2018-03-20 Tencent Technology (Shenzhen) Company Limited Systems and methods for browser-based games

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9923988B2 (en) 2013-07-10 2018-03-20 Tencent Technology (Shenzhen) Company Limited Systems and methods for browser-based games
US10284675B2 (en) 2013-07-10 2019-05-07 Tencent Technology (Shenzhen) Company Limited Systems and methods for browser-based games

Similar Documents

Publication Publication Date Title
US10642593B2 (en) Logical migration of applications and data
US11385890B2 (en) Shared software libraries for computing devices
US10110663B2 (en) Method and system for publishing virtual applications to a web server
US7032033B1 (en) Handling collisions during synchronization of data between client and server computers
US9854131B2 (en) Image forming apparatus with personal setting synchronization and method for controlling same
RU2427026C2 (en) Device-specific content indexing for optimised device operation
KR101422563B1 (en) Method and system for efficient download of data package
US20070288525A1 (en) Enabling access to remote storage for use with a backup program
US20140033315A1 (en) Method and system for enforcing a license dependency rule for a software application
US20100180347A1 (en) Pluggable file-based digital rights management api layer for applications and engines
US20090083732A1 (en) Creation and deployment of distributed, extensible applications
US20070118499A1 (en) Method and system for collecting and restoring application state information
TW200305319A (en) Delta replication of source files and packages across networked resources
JP2008507775A (en) System and method for extracting and creating application meta information in a software application repository
KR20170130448A (en) System and method for automatic cloud-based full data backup and restore on mobile devices
EP3526691A1 (en) File synchronization in computing systems
US8782636B2 (en) Information processing apparatus, control method thereof, and program
CN107016280A (en) The upgrade method and system of a kind of client application
US9742884B2 (en) Retry mechanism for data loading from on-premise datasource to cloud
US7953894B2 (en) Providing aggregated directory structure
US7171616B1 (en) Method, system and computer program product for keeping files current
US20110252414A1 (en) System using separate modules to update software and the method thereof
WO2017036197A1 (en) Method and device for managing network element model
TW201324353A (en) File update system, server and method for sending discrepant file based on versions
JP7116292B2 (en) Information processing device, information processing system and program