CN107423078A - A kind of Oftware updating method and device - Google Patents
A kind of Oftware updating method and device Download PDFInfo
- Publication number
- CN107423078A CN107423078A CN201710113091.3A CN201710113091A CN107423078A CN 107423078 A CN107423078 A CN 107423078A CN 201710113091 A CN201710113091 A CN 201710113091A CN 107423078 A CN107423078 A CN 107423078A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- software document
- new software
- download
- software
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of Oftware updating method, including:Second configuration file is downloaded from server based on the first configuration file;Contrast the version number of the first configuration file and the second configuration file;If the version number of the second configuration file is higher than the version number of the first configuration file, judge whether to meet update condition;If meeting update condition, based on the second configuration file download new software file;After the completion of new software document is downloaded, former software document is substituted with new software document.This method instead of the existing method for contrasting All Files one by one compared with prior art, using the contrast of configuration file, greatly reduces workload, software upgrading is become more convenient.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of Oftware updating method and device.
Background technology
(software is made in China's Mainland and Hong Kong term, Taiwan to software, English:Software it is) a series of according to particular order
The computer data of tissue and the set of instruction.In general software be divided into programming language, system software, application software and
The middleware being interposed between the two.Software not just includes can (computer here refers to the meter of broad sense in computer
Calculation machine) on the computer program that runs, the document related to these computer programs be typically also considered as a part for software.Simply
Say that software is exactly the aggregate that program adds document.Another management system, thought ideology, the thought also referred in social structure
Political consciousness, laws and regulations etc..Software is the connection interface between user and hardware.User is mainly by software with calculating
Machine is exchanged.Software is the important evidence of Computer System Design.
Software is not unalterable, in order to make up software leak in itself or software be optimized, Software for Design
Person can be frequently release redaction software, the file in original software is updated.In the prior art, the renewal of software is past
Toward needing to contrast All Files in software one by one, so as to find the file for needing to update.
But this method and step is cumbersome, and workload is big, and renewal speed is slow.
The content of the invention
In view of this, it is an object of the invention to provide a kind of Oftware updating method, make software upgrading can be with rapid and convenient
Progress.
To achieve the above object, the present invention provides following technical scheme:
A kind of Oftware updating method, including:
Second configuration file is downloaded from server based on the first configuration file;
Contrast the version number of the first configuration file and the second configuration file;
If the version number of the second configuration file is higher than the version number of the first configuration file, judge whether to meet renewal bar
Part;
If meeting update condition, based on the second configuration file download new software file;
After the completion of new software document is downloaded, former software document is substituted with new software document.
Preferably, update condition includes receiving the confirmation instruction of interactive system transmission.
Preferably, in addition to:
If download new software file processes interrupt, the new software document downloaded is deleted.
Preferably, in addition to:
After new software document substitutes former software document, the first configuration file is substituted with the second configuration file.
Preferably, update condition also includes the size that free memory is more than new software document.
A kind of software renewing apparatus, including download module, contrast module, judge module and replacement module, wherein:
Download module is used to download the second configuration file from server based on the first configuration file;
Contrast module is used for the version number for contrasting the first configuration file and the second configuration file;
Judge module is used to, when the version number of the second configuration file is higher than the version number of the first configuration file, judge whether
Meet update condition;
Download module is additionally operable to when meeting update condition, based on the second configuration file download new software file;
Replacement module is used for after the completion of the download of new software document, and former software document is substituted with new software document.
Preferably, update condition includes receiving the confirmation instruction of interactive system transmission.
Preferably, when replacement module is also used in the interruption of download new software file processes, the new software document downloaded is deleted.
Preferably, replacement module is additionally operable to, when new software document substitutes former software document, substitute with the second configuration file
First configuration file.
Preferably, update condition also includes the size that free memory is more than new software document.
It can be seen from the above technical proposal that the present invention provides a kind of Oftware updating method, when opening software, based on original
The first configuration file having downloads the second new configuration file from server, by the first configuration file downloaded and second
Version number in configuration file is compared, when the second configuration file version number be higher than the first configuration file version number, then
The file of renewal in need is represented, is now based on the second configuration file download new software file, and substituted with new software document
Former software document.This method compared with prior art, using the contrast of configuration file instead of it is existing by All Files one by one
The method of contrast, greatly reduces workload, software upgrading is become more convenient.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the embodiment 1 of Oftware updating method disclosed by the invention;
Fig. 2 is a kind of flow chart of the embodiment 2 of Oftware updating method disclosed by the invention;
Fig. 3 is a kind of concrete structure schematic diagram of the embodiment 3 of software renewing apparatus disclosed by the invention;
Fig. 4 is a kind of concrete structure schematic diagram of the embodiment 4 of software renewing apparatus disclosed by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained all other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
As shown in figure 1, the flow chart of the embodiment 1 for a kind of Oftware updating method disclosed by the invention:
S101, based on the first configuration file from server download the second configuration file;
After user opens software, download module obtains the address of the second configuration file in the first configuration file, from clothes
The second configuration file is downloaded in business device.Configuration file can be txt formatted files, and its content can be:“
[URL]
Iniurl=http://financial.test.cnfol.com/index.phpR=home/GetPcIni
[MAINVER]
Mainver=2.0
[FILECOUNT]
Filecount=4
[FILENAME]
Filename1=QAVSDKCnfol.exp
Filename2=QAVSDKCnfol.lib
Filename3=QAVSDKCnfol.pdb
Filename4=QAVSDKCnfol.exe
[FILEURL]
Fileurl1=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exp
Fileurl2=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.lib
Fileurl3=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.pdb
Fileurl4=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exe”
Wherein, the content of [URL] next line represents configuration file download address;
The content of [MAINVER] next line represents version number, and " mainver=2.0 " represents that the version of this configuration file is
2.0;
The content of [FILECOUNT] next line represents the software document number for needing to update, and " filecount=4 " represents to need
Update 4 software documents;
The content of [FILENAME] next line represents the title of the software document of renewal, " filename1=
QAVSDKCnfol.exp " represents the entitled QAVSDKCnfol.exp for the software document that needs update;
The content of [FILEURL] next line represents the address of software document,
" fileurl1=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exp " is represented
QAVSDKCnfol.exp address.
First configuration file and the second configuration file all use this form, because txt file is small and easy reading, so using
The file of txt forms can be saved the time of download configuration file as configuration file, and reduce the difficulty for obtaining information in file.
S102, the first configuration file of contrast and the second configuration file version number;
After the completion of the download of the second configuration file, contrast module obtains the version in the first configuration file and the second configuration file
This number, by the first configuration file compared with the version number of the second configuration file.
If the version number of S103, the second configuration file is higher than the version number of the first configuration file, judge whether to meet more
New Terms;
If the version number of the second configuration file is higher than the version number of the first configuration file, such as the version of the second configuration file
This number is 3.0, and the version number of the first configuration file is 2.0, then illustrates that this software has issued new version, now judge module is sentenced
It is disconnected whether to meet update condition.Update condition is the precondition for finding to be updated after redaction, and update condition can be to use
Software design patterns are to automatically update by the setting function of software by family.
If S104, meeting update condition, based on the second configuration file download new software file;
If update condition meets, the example in previous step is quoted, i.e. judge module judges user by software design patterns
To automatically update, then download module obtains number of downloads, title and the address information of the new software document in the second configuration file
The download new software file from server afterwards.New software document herein refers to the redaction that the needs in server update
Software document, in addition to new software document, also corresponding former software document, former software document is existing to need to update
New software document old edition this document.
After the completion of S105, new software document are downloaded, former software document is substituted with new software document;
After the completion of all new software documents are downloaded, download the new software document of completion, can before filename prefixing name
New, for being distinguished with former software document.Such as the entitled QAVSDKCnfol.exp of new software document, then file is entitled after the completion of downloading
newQAVSDKCnfol.exp.Replacement module substitutes former software document with new software document.Replacement includes two steps:(1) delete
Except former software document.(2) the prefix name for being used to distinguish in the filename of new software document is deleted, such as by filename
NewQAVSDKCnfol.exp is changed to QAVSDKCnfol.exp.
In summary, Oftware updating method disclosed in the present embodiment, when opening software, based on the original first configuration text
Part downloads the second new configuration file from server, by the version in the first configuration file and the second configuration file that download
This number is compared, when the second configuration file version number be higher than the first configuration file version number, then represent renewal in need
File, be now based on the second configuration file download new software file, and former software document is substituted with new software document.We
Method instead of the existing method for contrasting All Files one by one compared with prior art, using the contrast of configuration file, greatly
Reduce workload, software upgrading is become more convenient.
As shown in Fig. 2 the flow chart of the embodiment 2 for a kind of Oftware updating method disclosed by the invention:
S201, based on the first configuration file from server download the second configuration file;
After user opens software, download module obtains the address of the second configuration file in the first configuration file, from clothes
The second configuration file is downloaded in business device.Configuration file can be txt formatted files, and its content can be:“
[URL]
Iniurl=http://financial.test.cnfol.com/index.phpR=home/GetPcIni
[MAINVER]
Mainver=2.0
[FILECOUNT]
Filecount=4
[FILENAME]
Filename1=QAVSDKCnfol.exp
Filename2=QAVSDKCnfol.lib
Filename3=QAVSDKCnfol.pdb
Filename4=QAVSDKCnfol.exe
[FILEURL]
Fileurl1=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exp
Fileurl2=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.lib
Fileurl3=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.pdb
Fileurl4=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exe”
Wherein, the content of [URL] next line represents configuration file download address;
The content of [MAINVER] next line represents version number, and " mainver=2.0 " represents that the version of this configuration file is
2.0;
The content of [FILECOUNT] next line represents the software document number for needing to update, and " filecount=4 " represents to need
Update 4 software documents;
The content of [FILENAME] next line represents the title of the software document of renewal, " filename1=
QAVSDKCnfol.exp " represents the entitled QAVSDKCnfol.exp for the software document that needs update;
The content of [FILEURL] next line represents the address of software document,
" fileurl1=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exp " is represented
QAVSDKCnfol.exp address.
First configuration file and the second configuration file all use this form, because txt file is small and easy reading, so using
The file of txt forms can be saved the time of download configuration file as configuration file, and reduce the difficulty for obtaining information in file.
S202, the first configuration file of contrast and the second configuration file version number;
After the completion of the download of the second configuration file, contrast module obtains the version in the first configuration file and the second configuration file
This number, by the first configuration file compared with the version number of the second configuration file.
If the version number of S203, the second configuration file is higher than the version number of the first configuration file, judge whether to meet more
New Terms;
If the version number of the second configuration file is higher than the version number of the first configuration file, such as the version of the second configuration file
This number is 3.0, and the version number of the first configuration file is 2.0, then illustrates that this software has issued new version, now judge module is sentenced
It is disconnected whether to meet update condition.Update condition is the precondition for finding to be updated after redaction, and update condition can be to use
Software design patterns are to automatically update by the setting function of software by family.
In order to further optimize the present embodiment, update condition is alternatively the confirmation instruction for receiving interactive system transmission.When
Contrast module finds have software document to need to update after contrasting the version number of the first configuration file and the second configuration file, now can
Renewal prompting is issued the user with by interactive system, such as ejects whether a window queries user is needed with new soft on a display screen
Part, if user confirms to need to update software, interactive system can send one to judge module and confirm instruction.
If S204, meeting update condition, based on the second configuration file download new software file;
If update condition meets, the example in previous step is quoted, i.e. judge module judges user by software design patterns
To automatically update, or user have issued confirmation instruction by interactive module to judge module.Then download module obtains the second configuration
After the number of downloads of new software document in file, title and address information from server download new software file.Herein
New software document refers to the software document for the redaction that needs in server update, in addition to new software document, also and its
Corresponding former software document, former software document are old edition this document of the existing new software document for needing to update.
After the completion of S205, new software document are downloaded, former software document is substituted with new software document;
After the completion of all new software documents are downloaded, download the new software document of completion, can before filename prefixing name
New, for being distinguished with former software document.Such as the entitled QAVSDKCnfol.exp of new software document, then file is entitled after the completion of downloading
newQAVSDKCnfol.exp.Replacement module substitutes former software document with new software document.Replacement includes two steps:(1) delete
Except former software document.(2) the prefix name for being used to distinguish in the filename of new software document is deleted, such as by filename
NewQAVSDKCnfol.exp is changed to QAVSDKCnfol.exp.
In summary, Oftware updating method disclosed in the present embodiment, when opening software, based on the original first configuration text
Part downloads the second new configuration file from server, by the version in the first configuration file and the second configuration file that download
This number is compared, when the second configuration file version number be higher than the first configuration file version number, then represent renewal in need
File, be now based on the second configuration file download new software file, and former software document is substituted with new software document.We
Method instead of the existing method for contrasting All Files one by one compared with prior art, using the contrast of configuration file, greatly
Reduce workload, software upgrading is become more convenient.User can also by software design patterns for automatically update or user confirm
After update, user is improved the free degree that software uses for whether updating software and having right to choose, is improved the body of user
Test sense.
It is further comprising the steps of for further optimal enforcement example, this method:
If S206, download new software file processes interrupt, the new software document downloaded is deleted;
The download of new software document needs a process, and the software document quantity if desired downloaded is more and size is larger,
This downloading process may be more very long.In downloading process, various accidents perhaps can occur, as suspension, power-off or client dash forward
So need to stop renewal.Now, perhaps the new software document downloaded can cause the operation problem of software.Such as under
Stopping is updated after carrying newQAVSDKCnfol.exp, next time still downloads this new software document, but this file has been present, program
Run-time error may occur, renewal can not be completed and even result in program crashing.To tackle this problem, if download new software is literary
Part process interrupt, replacement module delete all new software documents downloaded.
Also include for further optimization the present embodiment, this method:
After S207, new software document substitute former software document, the first configuration file is substituted with the second configuration file;
After the completion of new software document replaces the process of former software document, replacement module deletes the first configuration file, will
The title of second configuration file is changed to the title of former first configuration file.When then next time starts software, this second configuration text
Part is the first configuration file as next time.
For further optimization the present embodiment, it is big more than new software document that update condition may also include free memory
It is small;
In order to ensure renewal smoothly complete, software installation memory in free memory must be greater than newly
The size of software document.
As shown in figure 3, the concrete structure schematic diagram of the embodiment 3 for a kind of software renewing apparatus disclosed by the invention;
A kind of software renewing apparatus, it is characterised in that including download module 301, contrast module 302, judge module 303 and
Replacement module 304, wherein:
Download module 301 is used to download the second configuration file from server 305 based on the first configuration file;
After user opens software, download module 301 obtains the address of the second configuration file in the first configuration file, from
The second configuration file is downloaded in server 305.Configuration file can be txt formatted files, and its content can be:“
[URL]
Iniurl=http://financial.test.cnfol.com/index.phpR=home/GetPcIni
[MAINVER]
Mainver=2.0
[FILECOUNT]
Filecount=4
[FILENAME]
Filename1=QAVSDKCnfol.exp
Filename2=QAVSDKCnfol.lib
Filename3=QAVSDKCnfol.pdb
Filename4=QAVSDKCnfol.exe
[FILEURL]
Fileurl1=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exp
Fileurl2=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.lib
Fileurl3=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.pdb
Fileurl4=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exe”
Wherein, the content of [URL] next line represents configuration file download address;
The content of [MAINVER] next line represents version number, and " mainver=2.0 " represents that the version of this configuration file is
2.0;
The content of [FILECOUNT] next line represents the software document number for needing to update, and " filecount=4 " represents to need
Update 4 software documents;
The content of [FILENAME] next line represents the title of the software document of renewal, " filename1=
QAVSDKCnfol.exp " represents the entitled QAVSDKCnfol.exp for the software document that needs update;
The content of [FILEURL] next line represents the address of software document,
" fileurl1=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exp " is represented
QAVSDKCnfol.exp address.
First configuration file and the second configuration file all use this form, because txt file is small and easy reading, so using
The file of txt forms can be saved the time of download configuration file as configuration file, and reduce the difficulty for obtaining information in file.
Contrast module 302 is used for the version number for contrasting the first configuration file and the second configuration file;
After the completion of the download of the second configuration file, contrast module 302 is obtained in the first configuration file and the second configuration file
Version number, by the first configuration file compared with the version number of the second configuration file.
Judge module 303 is used to, when the version number of the second configuration file is higher than the version number of the first configuration file, judge
Whether update condition is met;
If the version number of the second configuration file is higher than the version number of the first configuration file, such as the version of the second configuration file
This number is 3.0, and the version number of the first configuration file is 2.0, then illustrates that this software has issued new version, now judge module
303 judge whether to meet update condition.Update condition is to find the precondition that is updated after redaction, and update condition can be with
For user by the setting function of software by software design patterns to automatically update.
Download module 301 is additionally operable to when meeting update condition, based on the second configuration file download new software file;
If update condition meets, the example in previous step is quoted, i.e. judge module 303 judges that user sets software
It is set to and automatically updates, then download module 301 obtains number of downloads, title and the address of the new software document in the second configuration file
After information from server 305 download new software file.New software document herein refers to needing to update in server 305
Redaction software document, in addition to new software document, also corresponding former software document, former software document is as existing
Old edition this document of new software document for updating of needs.
Replacement module 304 is used for after the completion of the download of new software document, and former software document is substituted with new software document;
After the completion of all new software documents are downloaded, download the new software document of completion, can before filename prefixing name
New, for being distinguished with former software document.Such as the entitled QAVSDKCnfol.exp of new software document, then file is entitled after the completion of downloading
newQAVSDKCnfol.exp.Replacement module 304 substitutes former software document with new software document.Replacement includes two steps:(1)
Delete former software document.(2) the prefix name for being used to distinguish in the filename of new software document is deleted, such as by filename
NewQAVSDKCnfol.exp is changed to QAVSDKCnfol.exp.
In summary, Oftware updating method disclosed in the present embodiment, when opening software, based on the original first configuration text
Part downloads the second new configuration file from server 305, by the first configuration file and the second configuration file that download
Version number be compared, when the second configuration file version number be higher than the first configuration file version number, then represent in need
The file of renewal, the second configuration file download new software file is now based on, and former software document is substituted with new software document.
This method instead of the existing method for contrasting All Files one by one compared with prior art, using the contrast of configuration file,
Workload is greatly reduced, software upgrading is become more convenient.
As shown in figure 4, the concrete structure schematic diagram of the embodiment 4 for a kind of software renewing apparatus disclosed by the invention;
A kind of software renewing apparatus, it is characterised in that including download module 401, contrast module 402, judge module 403 and
Replacement module 404, wherein:
Download module 401 is used to download the second configuration file from server 405 based on the first configuration file;
After user opens software, download module 401 obtains the address of the second configuration file in the first configuration file, from
The second configuration file is downloaded in server 405.Configuration file can be txt formatted files, and its content can be:“
[URL]
Iniurl=http://financial.test.cnfol.com/index.phpR=home/GetPcIni
[MAINVER]
Mainver=2.0
[FILECOUNT]
Filecount=4
[FILENAME]
Filename1=QAVSDKCnfol.exp
Filename2=QAVSDKCnfol.lib
Filename3=QAVSDKCnfol.pdb
Filename4=QAVSDKCnfol.exe
[FILEURL]
Fileurl1=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exp
Fileurl2=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.lib
Fileurl3=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.pdb
Fileurl4=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exe”
Wherein, the content of [URL] next line represents configuration file download address;
The content of [MAINVER] next line represents version number, and " mainver=2.0 " represents that the version of this configuration file is
2.0;
The content of [FILECOUNT] next line represents the software document number for needing to update, and " filecount=4 " represents to need
Update 4 software documents;
The content of [FILENAME] next line represents the title of the software document of renewal, " filename1=
QAVSDKCnfol.exp " represents the entitled QAVSDKCnfol.exp for the software document that needs update;
The content of [FILEURL] next line represents the address of software document,
" fileurl1=http://download.cnfol.com/caishi-pc/QAVSDKCnfol.exp " is represented
QAVSDKCnfol.exp address.
First configuration file and the second configuration file all use this form, because txt file is small and easy reading, so using
The file of txt forms can be saved the time of download configuration file as configuration file, and reduce the difficulty for obtaining information in file.
Contrast module 402 is used for the version number for contrasting the first configuration file and the second configuration file;
After the completion of the download of the second configuration file, contrast module 402 is obtained in the first configuration file and the second configuration file
Version number, by the first configuration file compared with the version number of the second configuration file.
Judge module 403 is used to, when the version number of the second configuration file is higher than the version number of the first configuration file, judge
Whether update condition is met;
If the version number of the second configuration file is higher than the version number of the first configuration file, such as the version of the second configuration file
This number is 3.0, and the version number of the first configuration file is 2.0, then illustrates that this software has issued new version, now judge module
403 judge whether to meet update condition.Update condition is to find the precondition that is updated after redaction, and update condition can be with
For user by the setting function of software by software design patterns to automatically update.
Download module 401 is additionally operable to when meeting update condition, based on the second configuration file download new software file;
If update condition meets, the example in previous step is quoted, i.e. judge module 403 judges that user sets software
It is set to and automatically updates, then download module 401 obtains number of downloads, title and the address of the new software document in the second configuration file
After information from server 405 download new software file.New software document herein refers to needing to update in server 405
Redaction software document, in addition to new software document, also corresponding former software document, former software document is as existing
Old edition this document of new software document for updating of needs.
Replacement module 404 is used for after the completion of the download of new software document, and former software document is substituted with new software document;
After the completion of all new software documents are downloaded, download the new software document of completion, can before filename prefixing name
New, for being distinguished with former software document.Such as the entitled QAVSDKCnfol.exp of new software document, then file is entitled after the completion of downloading
newQAVSDKCnfol.exp.Replacement module 404 substitutes former software document with new software document.Replacement includes two steps:(1)
Delete former software document.(2) the prefix name for being used to distinguish in the filename of new software document is deleted, such as by filename
NewQAVSDKCnfol.exp is changed to QAVSDKCnfol.exp.
In summary, Oftware updating method disclosed in the present embodiment, when opening software, based on the original first configuration text
Part downloads the second new configuration file from server 405, by the first configuration file and the second configuration file that download
Version number be compared, when the second configuration file version number be higher than the first configuration file version number, then represent in need
The file of renewal, the second configuration file download new software file is now based on, and former software document is substituted with new software document.
This method instead of the existing method for contrasting All Files one by one compared with prior art, using the contrast of configuration file,
Workload is greatly reduced, software upgrading is become more convenient.
For further optimization the present embodiment, update condition includes receiving the confirmation instruction of the transmission of interactive system 406.When right
Than finding to there is software document to need to update after the version number of the first configuration file of contrast of module 402 and the second configuration file, now
Renewal prompting can be issued the user with by interactive system 406, such as ejects whether a window queries user needs on a display screen
With new software, if user confirms to need to update software, interactive system 406 can send one to judge module 403 and confirm instruction.
For further optimization the present embodiment, when replacement module 404 is also used in the interruption of download new software file processes, delete
The new software document downloaded.
The download of new software document needs a process, and the software document quantity if desired downloaded is more and size is larger,
This downloading process may be more very long.In downloading process, various accidents perhaps can occur, as suspension, power-off or client dash forward
So need to stop renewal.Now, perhaps the new software document downloaded can cause the operation problem of software.Such as under
Stopping is updated after carrying newQAVSDKCnfol.exp, next time still downloads this new software document, but this file has been present, program
Run-time error may occur, renewal can not be completed and even result in program crashing.To tackle this problem, if download new software is literary
Part process interrupt, replacement module 404 delete all new software documents downloaded.
For further optimization the present embodiment, replacement module 404 is additionally operable to when new software document substitutes former software document, with
Second configuration file substitutes the first configuration file.
After the completion of new software document replaces the process of former software document, replacement module 404 deletes the first configuration file,
The title of second configuration file is changed to the title of former first configuration file.When then next time starts software, this second configuration
File is the first configuration file as next time.
For further optimization the present embodiment, update condition also includes the size that free memory is more than new software document.
In order to ensure renewal smoothly complete, software installation memory in free memory must be greater than newly
The size of software document.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be with it is other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (10)
- A kind of 1. Oftware updating method, it is characterised in that including:Second configuration file is downloaded from server based on the first configuration file;Contrast the version number of first configuration file and second configuration file;If the version number of second configuration file is higher than the version number of first configuration file, judge whether to meet renewal Condition;If meeting the update condition, based on the second configuration file download new software file;After the completion of the new software document is downloaded, former software document is substituted with the new software document.
- 2. the method as described in claim 1, it is characterised in that the update condition includes receiving interactive system transmission really Recognize instruction.
- 3. method as claimed in claim 2, it is characterised in that also include:If downloading the new software document process interrupt, the new software document downloaded is deleted.
- 4. method as claimed in claim 3, it is characterised in that also include:After the new software document substitutes the former software document, the first configuration text is substituted with second configuration file Part.
- 5. method as claimed in claim 4, it is characterised in that the update condition also includes free memory more than described The size of new software document.
- A kind of 6. software renewing apparatus, it is characterised in that including download module, contrast module, judge module and replacement module, its In:The download module is used to download the second configuration file from server based on the first configuration file;The contrast module is used for the version number for contrasting first configuration file and second configuration file;The judge module is used for when the version number of second configuration file is higher than the version number of first configuration file, Judge whether to meet update condition;The download module is additionally operable to when meeting the update condition, based on the second configuration file download new software text Part;The replacement module is used for after the completion of the new software document download, and former software document is substituted with the new software document.
- 7. device as claimed in claim 6, it is characterised in that the update condition includes receiving interactive system transmission really Recognize instruction.
- 8. device as claimed in claim 7, it is characterised in that the replacement module, which is also used in, downloads the new software document mistake When journey is interrupted, the new software document downloaded is deleted.
- 9. device as claimed in claim 8, it is characterised in that the replacement module is additionally operable to substitute in the new software document During the former software document, first configuration file is substituted with second configuration file.
- 10. device as claimed in claim 9, it is characterised in that the update condition is also more than institute including free memory State the size of new software document.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710113091.3A CN107423078A (en) | 2017-02-28 | 2017-02-28 | A kind of Oftware updating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710113091.3A CN107423078A (en) | 2017-02-28 | 2017-02-28 | A kind of Oftware updating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107423078A true CN107423078A (en) | 2017-12-01 |
Family
ID=60423092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710113091.3A Pending CN107423078A (en) | 2017-02-28 | 2017-02-28 | A kind of Oftware updating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107423078A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643920A (en) * | 2016-07-20 | 2018-01-30 | 平安科技(深圳)有限公司 | Application software update method and device |
CN108491220A (en) * | 2018-03-15 | 2018-09-04 | 苏州思必驰信息科技有限公司 | Method of skill training and system |
CN109240755A (en) * | 2018-06-28 | 2019-01-18 | 平安科技(深圳)有限公司 | A kind of configuration file comparison method and configuration file Compare System |
CN109558151A (en) * | 2018-10-12 | 2019-04-02 | 上海金大师网络科技有限公司 | Oftware updating method and system |
CN110941460A (en) * | 2019-11-22 | 2020-03-31 | 北京金山云网络技术有限公司 | Application program starting method and device, electronic equipment, system and storage medium |
CN116069353A (en) * | 2022-11-30 | 2023-05-05 | 广州力麒智能科技有限公司 | Update guide preposition method, device, equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090210868A1 (en) * | 2008-02-19 | 2009-08-20 | Microsoft Corporation | Software Update Techniques |
CN101699399A (en) * | 2009-11-03 | 2010-04-28 | 中兴通讯股份有限公司 | Software update system and method |
CN102253850A (en) * | 2011-07-08 | 2011-11-23 | 烽火通信科技股份有限公司 | Incremental software updating method of internet protocol television (IPTV) set top box |
CN102736925A (en) * | 2011-04-14 | 2012-10-17 | 比亚迪股份有限公司 | Vehicle software updating method and system |
CN103685495A (en) * | 2013-12-05 | 2014-03-26 | 金蝶软件(中国)有限公司 | Method and system for upgrading software |
CN103902299A (en) * | 2012-12-24 | 2014-07-02 | 航天信息股份有限公司 | Software version updating method and system |
CN103973474A (en) * | 2013-02-01 | 2014-08-06 | 苏州方位通讯科技有限公司 | Network terminal update configuration method |
CN105224344A (en) * | 2014-05-28 | 2016-01-06 | 济南政和科技有限公司 | A kind of software upgrading file configuration method realized based on XML |
-
2017
- 2017-02-28 CN CN201710113091.3A patent/CN107423078A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090210868A1 (en) * | 2008-02-19 | 2009-08-20 | Microsoft Corporation | Software Update Techniques |
CN101699399A (en) * | 2009-11-03 | 2010-04-28 | 中兴通讯股份有限公司 | Software update system and method |
CN102736925A (en) * | 2011-04-14 | 2012-10-17 | 比亚迪股份有限公司 | Vehicle software updating method and system |
CN102253850A (en) * | 2011-07-08 | 2011-11-23 | 烽火通信科技股份有限公司 | Incremental software updating method of internet protocol television (IPTV) set top box |
CN103902299A (en) * | 2012-12-24 | 2014-07-02 | 航天信息股份有限公司 | Software version updating method and system |
CN103973474A (en) * | 2013-02-01 | 2014-08-06 | 苏州方位通讯科技有限公司 | Network terminal update configuration method |
CN103685495A (en) * | 2013-12-05 | 2014-03-26 | 金蝶软件(中国)有限公司 | Method and system for upgrading software |
CN105224344A (en) * | 2014-05-28 | 2016-01-06 | 济南政和科技有限公司 | A kind of software upgrading file configuration method realized based on XML |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643920A (en) * | 2016-07-20 | 2018-01-30 | 平安科技(深圳)有限公司 | Application software update method and device |
CN108491220A (en) * | 2018-03-15 | 2018-09-04 | 苏州思必驰信息科技有限公司 | Method of skill training and system |
CN109240755A (en) * | 2018-06-28 | 2019-01-18 | 平安科技(深圳)有限公司 | A kind of configuration file comparison method and configuration file Compare System |
CN109558151A (en) * | 2018-10-12 | 2019-04-02 | 上海金大师网络科技有限公司 | Oftware updating method and system |
CN110941460A (en) * | 2019-11-22 | 2020-03-31 | 北京金山云网络技术有限公司 | Application program starting method and device, electronic equipment, system and storage medium |
CN110941460B (en) * | 2019-11-22 | 2023-09-01 | 北京金山云网络技术有限公司 | Application program starting method and device, electronic equipment, system and storage medium |
CN116069353A (en) * | 2022-11-30 | 2023-05-05 | 广州力麒智能科技有限公司 | Update guide preposition method, device, equipment and storage medium |
CN116069353B (en) * | 2022-11-30 | 2024-02-02 | 广州力麒智能科技有限公司 | Update guide preposition method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107423078A (en) | A kind of Oftware updating method and device | |
US9678734B2 (en) | System and method for passive detection and context sensitive notification of upgrade availability for computer information | |
US20070143379A1 (en) | Metadata driven deployment of applications | |
US9032383B2 (en) | Automatically updating applications on a client's device without interrupting the user's experience | |
CN107992308B (en) | Plug-in management method for android terminal application program | |
US20130332916A1 (en) | System and method for updating application archive files | |
US20110072421A1 (en) | Method, apparatus and system for updating a software bundle installed on a mobile electronic device | |
CN105049486A (en) | Version management and file pulling control methods for static files, version management and file pulling control devices, and version control system | |
CN107809324A (en) | A kind of OBD equipment and its upgrade method | |
JP5500999B2 (en) | Information processing apparatus, control method thereof, and program | |
AU2005200328A2 (en) | Tag-based schema for distributing update metadata in an update distribution system | |
MXPA05006621A (en) | System and method for updating installation components in a networked environment. | |
CN102833350A (en) | Processing method and processing device of WebApp updating | |
CN105808273B (en) | Method for upgrading software and software updating apparatus | |
CN107016280A (en) | The upgrade method and system of a kind of client application | |
CN104281466A (en) | Application management apparatus, application management system, and application management method | |
CN103645923B (en) | A kind of plug-in unit installation method and system | |
CN106371874A (en) | Plug-in data loading method and equipment | |
CN106951284B (en) | User interface upgrading method and device based on android system application and intelligent terminal | |
CN102760068A (en) | Loading method of Active X plugin and device | |
CN103973745A (en) | Mobile terminal operating system updating method and device | |
JP5800685B2 (en) | Information processing apparatus and server, control method, program, and recording medium | |
CN113900693A (en) | Firmware upgrading method, device and system, electronic equipment and storage medium | |
WO2017036197A1 (en) | Method and device for managing network element model | |
CN105589687A (en) | Software updating method based on cloud platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171201 |
|
RJ01 | Rejection of invention patent application after publication |