CN103685471B - Method and system for updating software client sides in monopoly mode - Google Patents

Method and system for updating software client sides in monopoly mode Download PDF

Info

Publication number
CN103685471B
CN103685471B CN201310588175.4A CN201310588175A CN103685471B CN 103685471 B CN103685471 B CN 103685471B CN 201310588175 A CN201310588175 A CN 201310588175A CN 103685471 B CN103685471 B CN 103685471B
Authority
CN
China
Prior art keywords
version number
software
client
updating
bag
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201310588175.4A
Other languages
Chinese (zh)
Other versions
CN103685471A (en
Inventor
刘畅
吴才忠
梁波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Xishanju Interactive Entertainment Technology Co Ltd
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Chengdu Xishanju Interactive Entertainment Technology Co Ltd
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 Zhuhai Kingsoft Online Game Technology Co Ltd, Chengdu Xishanju Interactive Entertainment Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201310588175.4A priority Critical patent/CN103685471B/en
Publication of CN103685471A publication Critical patent/CN103685471A/en
Application granted granted Critical
Publication of CN103685471B publication Critical patent/CN103685471B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a system for updating software client sides in a monopoly mode. The method includes firstly, generating verification codes corresponding to objective version numbers, and writing the objective version numbers and the verification codes into verification code lists; secondly, reading the objective version numbers, objective verification codes corresponding to the objective version numbers, original version numbers and original verification codes corresponding to the original version numbers from the verification code lists, and writing read content and updated files into updating packages; during updating, updating the client sides by comparing the original version numbers and the original verification codes. During the whole updating process, updating success is determined by the verification codes due to the fact that different servers generate different verification codes, so that the updating process ensures that updating of the software client sides can be only performed by same servers, and further, uniformity of updated programs and operational results thereof are guaranteed.

Description

A kind of software client is updated method and system with exclusive mode
Technical field
It is particularly a kind of software client is updated with exclusive mode the present invention relates to application software more frontier Method and system.
Background technology
Existing software client is typically carried out more by the renewal bag program on remote downloading service device to client itself New upgrading.But in tradition upgrading mode, if there is multiple sources for providing and updating, such as different people or team are simultaneously a Software product is provided and updates bag, or by the renewal bag of different renewal server updatings, or same team's different time The unified version number done updates bag, it is also possible to be the renewal bag of different product line of same product (such as Chinese edition, English Version)), it is likely that cause to update chaotic, be as a result the different software client of same version because the data after updating differ Cause and generate different operation result.This can all produce negative impact for the normal operation and debugging of program, and ask Once occurring, the client of different pieces of information content then cannot again be returned to original consistent state to topic, although with non-packing shape The data of formula storage can be by covering inconsistent states of more newly arriving in a large number, and the client-side program stored with packetized form, by Realize often through additional mode in the renewal of APMB package, then cannot again update the data recovery one made in all clients Cause.
The content of the invention
To solve the above problems, it is an object of the invention to provide one kind is updated with exclusive mode to software client Method and system, software client is updated with exclusive mode, can only pass through identical when software client updates every time Server carry out, it is ensured that the concordance of renewal.
The present invention solves the technical scheme that adopted of its problem:
A kind of software client is updated method with exclusive mode, including:
The step of updating checking code table, generates in a random basis purpose corresponding with purpose software version number and updates checking Code, identifying code is updated according to corresponding relation write verification code table by purpose software version number and purpose;
The step of updating bag generation, former software version number is read from the middle of checking code table corresponding with former software version number Original updates identifying code, purpose software version number purpose corresponding with purpose software version number and updates identifying code, and will be read Content writes in the lump renewal bag with more new file;
The step of software client updates, the former software version in the software version number and renewal bag of comparison software client It is number whether consistent, if inconsistent, terminate to update, otherwise, comparison software client updates identifying code with the original updated in bag more Whether new identifying code is consistent, if inconsistent, terminates to update, and otherwise, reads more new file from renewal bag and software client is entered Row updates;
The step of version updating, the purpose software version number and purpose that update in bag are updated after identifying code write renewal Software client.
Wherein, verify that code table is stored in server, version number for logging software client and corresponding with version number Identifying code.
A kind of software client is updated system with exclusive mode, including:
Checking code table module is updated, identifying code is updated for generating purpose corresponding with purpose software version number, by purpose Software version number updates identifying code according to corresponding relation write verification code table with purpose;
Bag generation module is updated, it is corresponding with former software version number for reading former software version number from the middle of checking code table Former identifying code, the purpose software version number purpose corresponding with purpose software version number that updates update identifying code, and will be read Content and more new file write renewal bag in the lump;
Software client generation module, the former software version number in the software version number and renewal bag of comparison software client It is whether consistent, if inconsistent, terminate renewal, otherwise, the renewal identifying code of comparison software client updates with the original updated in bag Whether identifying code is consistent, if inconsistent, terminates to update, and otherwise, read more new file from renewal bag is carried out to software client Update;
Version updating module, for the purpose software version number and purpose that update in bag to be updated after identifying code write renewal Software client.
Wherein, verify that code table is stored in server, version number for logging software client and corresponding with version number Identifying code.
The invention has the beneficial effects as follows:
The present invention adopts a kind of method and system being updated to software client with exclusive mode, generates bag is updated When, identifying code corresponding with purpose version number is firstly generated, and by the middle of purpose version number and identifying code write verification code table;It Afterwards, purpose version number purpose identifying code corresponding with purpose version number, original version number and master are read from the middle of checking code table This number corresponding former identifying code, by the content of reading renewal bag is write together with more new file, during renewal, by contrasting original version Number client is updated with former identifying code, in whole renewal process, identifying code determines the success or failure for updating, because different server lifes Into identifying code it is different, therefore, this process ensure that software client, when updating, can only be carried out by identical server, So as to ensure the concordance of data after updating, also it is consistent operation result.
Description of the drawings
Below in conjunction with the accompanying drawings the invention will be further described with example.
Fig. 1 is that conventional client updates schematic diagram;
Fig. 2 is the method for the invention schematic flow sheet;
Fig. 3 is that invention software client updates flow chart;
Fig. 4 is that client of the present invention updates schematic diagram.
Specific embodiment
Embodiment 1:
With reference to shown in Fig. 1, existing software client is typically by the renewal bag program on remote downloading service device to client End itself is updated upgrading.But in traditional upgrading mode, typically there is multiple servers for providing and updating bag source, can cause Update chaotic, be as a result that the different software client of same version is generated different because the data after updating are inconsistent Operation result.As shown in FIG., there are two server As and B that renewal source is provided in figure, client is with A, B file 2.0 Version, A servers provide C and two more new files of D, and B servers provide two more new files of D and E, if client is from A Server is obtained and updates bag, then by 2.0-to-3.0 and 3.0-to-4.0 update its contained content after bag include A.TXT, B.TXT, C.TXT, D.TXT, if obtain updating bag from B servers, by 2.0-to-3.0 and 3.0-to-4.0 bag are updated Afterwards its contained content includes A.TXT, B.TXT, D.TXT, E.TXT.Which carried out by server because client cannot determine Update, after the renewal bag on a server of having upgraded, client does not know how to refuse the renewal on other servers Wrap and avoid continuing to upgrade(After the 2.0-to-3.0 such as upgraded on A servers, client does not know how to refuse to be serviced by B 3.0-to-4.0 on device updates bag).Conversely, service end is also difficult " exclusive " mode to limit the upgrading of client.
For this purpose, the invention provides a kind of method being updated to software client with exclusive mode, server end is deposited Checking code table is contained, this table describes the relation between version number and identifying code, for each version number, server all can be with Machine generates an identifying code, and by version number and identifying code write verification code table corresponding with version number.Due to random generation The uniqueness of checking code table, therefore, can ensure that every time upgrading can only pass through identical server to client by this identifying code Carry out, so as to the concordance of operation after ensureing the concordance for updating and updating.
With reference to shown in Fig. 2, methods described includes:
The step of updating checking code table, generates in a random basis purpose corresponding with purpose software version number and updates checking Code, identifying code is updated according to corresponding relation write verification code table by purpose software version number and purpose;
The step of updating bag generation, former software version number is read from the middle of checking code table corresponding with former software version number Original updates identifying code, purpose software version number purpose corresponding with purpose software version number and updates identifying code, and will be read Content writes in the lump renewal bag with more new file;
The step of software client updates, the former software version in the software version number and renewal bag of comparison software client It is number whether consistent, if inconsistent, terminate to update, otherwise, comparison software client updates identifying code with the original updated in bag more Whether new identifying code is consistent, if inconsistent, terminates to update, and otherwise, reads more new file from renewal bag and software client is entered Row updates;
The step of version updating, the purpose software version number and purpose that update in bag are updated after identifying code write renewal Software client.
With reference to shown in Fig. 3, when software client is updated, can be concrete such as institute in figure with autotelic selection server Show, software client carries out first the contrast of version number after renewal bag is obtained, read in bag original software version number simultaneously from updating Contrasted with the version number of client itself, if contrast is inconsistent, terminate to update, otherwise, then read in bag former from being updated Update identifying code and the client identifying code of itself to be contrasted, if contrast is inconsistent, terminate to update, otherwise, illustrate that this takes To update server, client is updated business device by the more new file in renewal bag to itself, and in the updated, by purpose Software version number and purpose are updated in identifying code write software client.
The invention provides a kind of software client is updated system with exclusive mode, including:
Checking code table module is updated, for generating purpose corresponding with purpose software version number in a random basis checking is updated Code, identifying code is updated according to corresponding relation write verification code table by purpose software version number and purpose;
Bag generation module is updated, it is corresponding with former software version number for reading former software version number from the middle of checking code table Former identifying code, the purpose software version number purpose corresponding with purpose software version number that updates update identifying code, and will be read Content and more new file write renewal bag in the lump;
Software client generation module, the former software version number in the software version number and renewal bag of comparison software client It is whether consistent, if inconsistent, terminate renewal, otherwise, the renewal identifying code of comparison software client updates with the original updated in bag Whether identifying code is consistent, if inconsistent, terminates to update, and otherwise, read more new file from renewal bag is carried out to software client Update;
Version updating module, for the purpose software version number and purpose that update in bag to be updated after identifying code write renewal Software client.
Wherein, verify that code table is stored in server, version number for logging software client and corresponding with version number Identifying code.
The update method of the systems versus software client is identical with approach described above, referring in particular in above method It is described.
Embodiment 2:
The present embodiment specifically illustrates the process updated by the method for the invention.
With reference to shown in Fig. 4, current client release number is 2.0, and it is 123456 that it updates identifying code.Server generates two Update bag, the renewal bag of respectively 2.0-to-3.0, the renewal bag of 3.0-to-4.0.Existing client is to upgrade to 3.0 versions When, service end is first randomly generated one and updates identifying code 654321 with the corresponding purpose of purpose software version number 3.0, and will be soft Part version number 3.0 is updated in the write verification code table of identifying code 654321 with purpose:
Software version number Update identifying code
1.0 000000
2.0 123456
3.0 654321
Afterwards, former software version number 2.0, former renewal identifying code 123456, purpose software version are read from checking code table Numbers 3.0, purpose updates identifying code 654321, and the content of reading is fabricated to into 2.0- together with the more new file of 2.0-to-3.0 The renewal bag of to-3.0.
When client updates, the renewal bag of 2.0-to-3.0 is downloaded from service end, check the former software version updated in bag It is number whether consistent with the software version number of client.The original version number updated in upper example in bag is 2.0, client software version number It is 2.0.Then this updates bag version correctly, can be updated.Afterwards, former renewal identifying code and the client updated in bag is checked Renewal identifying code it is whether consistent.Now the renewal identifying code of client is 123456, and the former identifying code that updates updated in bag is 123456, show to update and wrap from the horse's mouth, can proceed to update.Afterwards, client will update the more new file in bag " C.TXT " is updated in software client, and now file becomes " A.TXT ", " B.TXT ", " C.TXT " in software client, number Complete according to renewal.Finally purpose software version number, purpose are updated into identifying code write client, respectively as the software of client Version number and renewal identifying code.Now " software version number " in client becomes 3.0, and " renewal identifying code " becomes 654321.
When client needs to upgrade to 4.0 version, its method is same as described above, now, then after being updated with client Software version number 3.0 and update identifying code 654321 as checking information, only update content in bag with this both be consistent when, Can just be updated, otherwise, then update failure.So as to be carried out by identical server when ensureing and updating, it is ensured that update The concordance of the operation result of the concordance of program, and program afterwards.
The above, simply presently preferred embodiments of the present invention, the invention is not limited in above-mentioned embodiment, as long as It reaches the technique effect of the present invention with identical means, should all belong to protection scope of the present invention.

Claims (2)

1. a kind of software client is updated method with exclusive mode, it is characterised in that include:
The step of updating checking code table, generates purpose corresponding with purpose software version number and updates identifying code, by purpose software version This number updates identifying code according to corresponding relation write verification code table with purpose;
The step of updating bag generation, former software version number original corresponding with former software version number is read from the middle of checking code table more New identifying code, purpose software version number purpose corresponding with purpose software version number updates identifying code, and by the content for being read Renewal bag is write in the lump with more new file;
The step of software client updates, software version number and the former software version number in renewal bag of comparison software client are It is no consistent, if inconsistent, terminate to update, otherwise, the identifying code that updates of comparison software client is tested with former renewal the in renewal bag Whether card code is consistent, if inconsistent, terminates to update, and otherwise, read more new file from renewal bag is carried out more to software client Newly;
The step of version updating, the purpose software version number and purpose that update in bag are updated into the software after identifying code write updates Client;
Wherein, verify that code table is stored in server, version number for logging software client and corresponding with version number test Card code;
Wherein, in the step of updating checking code table, only one corresponding with purpose software version number is generated by random fashion Purpose updates identifying code.
2. a kind of software client is updated system with exclusive mode, it is characterised in that include:
Checking code table module is updated, identifying code is updated for generating purpose corresponding with purpose software version number, by purpose software Version number updates identifying code according to corresponding relation write verification code table with purpose;
Bag generation module is updated, for reading former software version number original corresponding with former software version number from the middle of checking code table Update identifying code, purpose software version number purpose corresponding with purpose software version number and update identifying code, and in being read Hold and write renewal bag in the lump with more new file;
Software client generation module, whether the former software version number in the software version number and renewal bag of comparison software client Unanimously, if inconsistent, terminate to update, otherwise, the former renewal for updating identifying code and updating in bag of comparison software client is verified Whether code is consistent, if inconsistent, terminates to update, and otherwise, reads more new file from renewal bag and software client is updated;
Version updating module, for the purpose software version number and purpose that update in bag to be updated into soft after identifying code write updates Part client;
Wherein, verify that code table is stored in server, version number for logging software client and corresponding with version number test Card code;
Wherein, in updating checking code table module, only one mesh corresponding with purpose software version number is generated by random fashion Renewal identifying code.
CN201310588175.4A 2013-11-21 2013-11-21 Method and system for updating software client sides in monopoly mode Active CN103685471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310588175.4A CN103685471B (en) 2013-11-21 2013-11-21 Method and system for updating software client sides in monopoly mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310588175.4A CN103685471B (en) 2013-11-21 2013-11-21 Method and system for updating software client sides in monopoly mode

Publications (2)

Publication Number Publication Date
CN103685471A CN103685471A (en) 2014-03-26
CN103685471B true CN103685471B (en) 2017-05-03

Family

ID=50321746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310588175.4A Active CN103685471B (en) 2013-11-21 2013-11-21 Method and system for updating software client sides in monopoly mode

Country Status (1)

Country Link
CN (1) CN103685471B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021018A (en) * 2014-06-06 2014-09-03 上海卓悠网络科技有限公司 Terminal, upgrade patch generation method and upgrade patch recognition method
JP2017107377A (en) * 2015-12-09 2017-06-15 株式会社リコー Apparatus management device, apparatus management system, verification method and program
CN105867941A (en) * 2016-04-18 2016-08-17 深圳市永兴元科技有限公司 Software upgrading system and realization method thereof
CN108388439A (en) * 2018-03-27 2018-08-10 深圳市路畅科技股份有限公司 A kind of update method, system, device and the readable storage medium storing program for executing of vehicle-mounted software

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060441A (en) * 2007-06-13 2007-10-24 华为技术有限公司 A method, equipment and system for controlling the upgrade of software version
CN101706723A (en) * 2009-09-25 2010-05-12 厦门敏讯信息技术股份有限公司 Realization method for avoiding error edition upgrading and upgrading system platform of embedded mobile terminal
CN101944170A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 Method, system and device for issuing software version
CN102479305A (en) * 2010-11-29 2012-05-30 金蝶软件(中国)有限公司 Software licensing verification method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006110991A1 (en) * 2005-04-18 2006-10-26 Research In Motion Limited Method and system for controlling software version updates

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060441A (en) * 2007-06-13 2007-10-24 华为技术有限公司 A method, equipment and system for controlling the upgrade of software version
CN101706723A (en) * 2009-09-25 2010-05-12 厦门敏讯信息技术股份有限公司 Realization method for avoiding error edition upgrading and upgrading system platform of embedded mobile terminal
CN101944170A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 Method, system and device for issuing software version
CN102479305A (en) * 2010-11-29 2012-05-30 金蝶软件(中国)有限公司 Software licensing verification method and system

Also Published As

Publication number Publication date
CN103685471A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103685471B (en) Method and system for updating software client sides in monopoly mode
CN105262627A (en) Firmware upgrade method, device and system
CN106293811A (en) A kind of packing and issuing method and device automatically
CN104754062B (en) Information popularization method, server and user terminal based on internet
CN107770622B (en) method for updating files in Linux system
CN106484453A (en) A kind of method and device realizing system upgrade
CN106575227B (en) Automatic software update framework
CN102736978A (en) Method and device for detecting installation status of application program
CN104699511B (en) Plug-in unit upgrade method and device
CN108037941A (en) Application program update method, electronic equipment based on public plug-in unit, storage medium
JP2013137661A5 (en)
CN112313629B (en) Backup and restore verification
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN107656750A (en) Update of plug-in method and device
CN105550071B (en) System file upgrades and detection method, communication equipment
CN106709281B (en) Patch granting and acquisition methods, device
CN105678118B (en) A kind of software version generation method and device containing digital certificate
CN107798007B (en) Distributed database data verification method, device and related device
CN105095087A (en) Permission operation based software test system and method
US20160004614A1 (en) Method Of Starting Up Device, Device And Computer Readable Medium
WO2016082450A1 (en) Method for upgrading user terminal, and user terminal
CN107247614A (en) The method that application message is checked in software translating
CN107590064A (en) A kind of application upgrade method of testing, device and system
CN104504308B (en) A kind of license validation method for forbidding virtual machine to use software
CN107015831A (en) A kind of client updating management method upgraded based on server end and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Patentee after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Patentee after: CHENGDU XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.

Address before: 519000 Jinshan software building, 8 Lanshan lane, Jida Jingshan Hill Road, Zhuhai, Guangdong

Patentee before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

Patentee before: CHENGDU XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.