CN104156244B - A kind of method and apparatus of software upgrading - Google Patents

A kind of method and apparatus of software upgrading Download PDF

Info

Publication number
CN104156244B
CN104156244B CN201410384203.5A CN201410384203A CN104156244B CN 104156244 B CN104156244 B CN 104156244B CN 201410384203 A CN201410384203 A CN 201410384203A CN 104156244 B CN104156244 B CN 104156244B
Authority
CN
China
Prior art keywords
file
version
software
upgraded
upgrading
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
CN201410384203.5A
Other languages
Chinese (zh)
Other versions
CN104156244A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410384203.5A priority Critical patent/CN104156244B/en
Publication of CN104156244A publication Critical patent/CN104156244A/en
Application granted granted Critical
Publication of CN104156244B publication Critical patent/CN104156244B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a kind of method and apparatus of software upgrading, wherein the method includes:Determine that the upgrading configuration obtained is the first upgrading configuration;According to first upgrading configuration, judge whether the partial document in software to be upgraded needs to update;Wherein, the partial document includes:Non- installation procedure file in the software to be upgraded;Newer file is needed if existing, downloads the corresponding first version file of the newer file of needs;Wherein, the version number of the version number of the first version file corresponding newer file of needs higher than in the software to be upgraded;The newer file of needs is updated using the first version file of download, to complete the upgrading of the software to be upgraded.It solves software upgrade process occupied bandwidth through the invention, increases facility load and the low problem of escalation process efficiency.

Description

A kind of method and apparatus of software upgrading
Technical field
The present invention relates to software technology fields, and in particular to a kind of method and apparatus of software upgrading.
Background technology
Software upgrading refers to software developer when writing software, since designer considers not comprehensive or program Function is not perfect, after software publishing, after modification to program or new function being added, obtains new version update Packet.The upgrading that user completes software by downloading and running new version upgrade installation package prevents virus to improve the function of software Invasion.
Typically, however, with the constantly improve of software function, the size of upgrade installation package is also increasing, needs to account for It is gone to download upgrade installation package with a large amount of bandwidth, increases facility load.Meanwhile require a great deal of time with etc. it is to be upgraded The download of installation kit is completed, and is wasted time, and upgrading efficiency is low.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly State a kind of method of software upgrading of problem and a kind of corresponding device of software upgrading.
One side according to the present invention provides a kind of method of software upgrading, including:
Determine that the upgrading configuration obtained is the first upgrading configuration;
According to first upgrading configuration, judge whether the partial document in software to be upgraded needs to update;Wherein, The partial document includes:Non- installation procedure file in the software to be upgraded;
Newer file is needed if existing, downloads the corresponding first version file of the newer file of needs;Wherein, The version number of the first version file is higher than the corresponding version number for needing newer file in the software to be upgraded;
The newer file of needs is updated using the first version file of download, to complete the liter of the software to be upgraded Grade.
According to another aspect of the present invention, a kind of device of software upgrading is provided, including:
First determining module, for determining that the upgrading configuration obtained is the first upgrading configuration;
Judgment module, for whether according to first upgrading configuration, judging the partial document in software to be upgraded It needs to update;Wherein, the partial document includes:Non- installation procedure file in the software to be upgraded;
First download module, it is corresponding for when there is the newer file of needs, downloading the newer file of needs First version file;Wherein, the version number of the first version file is corresponding higher than in the software to be upgraded needs to update File version number;
First upgraded module, for updating the newer file of needs using the first version file downloaded, to complete The upgrading of the software to be upgraded.
A kind of method and apparatus of software upgrading disclosed by the invention are judged to be upgraded by the first upgrading configuration Whether the partial document in software needs to update;And newer file is needed existing, download the newer file pair of needs The first version file answered;Then, the newer file of needs is updated using the first version file of download, described in completion The upgrading of software to be upgraded.Since the partial document is the non-installation procedure file in the software to be upgraded, it is only necessary to sentence Whether disconnected partial document, which needs, updates, and, when the partial document needs update, it is only necessary to which downloading corresponding file can be complete At update.The size of non-installation procedure file is much smaller than the size of entire upgrade installation package, therefore, software disclosed by the invention Upgrading scheme upgrades software, reduces the occupancy to bandwidth, alleviates facility load, improves upgrading update efficiency.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of step flow chart of the method for software upgrading in the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of the method for software upgrading in the embodiment of the present invention two;
Fig. 3 is a kind of step flow chart of the method for software upgrading in the embodiment of the present invention three;
Fig. 4 is a kind of schematic diagram of software update system client in the embodiment of the present invention four;
Fig. 5 is a kind of step flow chart of the manual upgrade method of software in the embodiment of the present invention four;
Fig. 6 is a kind of step flow chart of the automatically updating method of software in the embodiment of the present invention four;
Fig. 7 is a kind of structure diagram of the device of software upgrading in the embodiment of the present invention five;
Fig. 8 is a kind of structure diagram of the device of software upgrading in the embodiment of the present invention six;
Fig. 9 is a kind of structure diagram of the device of software upgrading in the embodiment of the present invention seven.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Embodiment one
Referring to Fig.1, a kind of step flow chart of the method for software upgrading in the embodiment of the present invention one is shown.In the application In, the method for upgrading software, including:
Step 102, determine that the upgrading configuration obtained is the first upgrading configuration.
Software in use, with software function continuously improve and it is perfect, generally require to upgrade software Update.In the present embodiment, in upgrading renewal process, the upgrading configuration that can be parsed according to upgrading configuration Information determines the upgrading update mode of software.
Preferably, when upgrading configuration information is the installation kit to match with the upgrade installation package of the software to be upgraded When information, determine that the upgrading configuration is the second upgrading configuration.When determining that upgrading configuration is that the second upgrading is matched After setting file, then software is updated using installation kit newer mode.Software is carried out more using installation kit update mode Newly it can be understood as:The software is done installation again using the installation kit of highest version (e.g., to redefine software installation path, repair Change registry information, delete old edition this document), to replace the original software version in end side.
It is another preferably, when the upgrading configuration information matched with the partial document in the software to be upgraded Fileinfo when, determine that the upgrading configuration is the first upgrading configuration.Wherein, the partial document can be: Non- installation procedure file (e.g., the file under the installation directory of software).
In this embodiment, it is preferred that, it is first determined the upgrading configuration of acquisition is the first upgrading configuration.
Step 104, according to first upgrading configuration, judge whether the partial document in software to be upgraded needs more Newly.
In the present embodiment, the version information that partial document is carried in the first upgrading configuration, can pass through version Comparison, and then determine the partial document file whether in need being updated.Such as, the part in the software to be upgraded File may include:File A and file B.The latest edition of the version information instruction file A carried in first upgrading configuration It is 2.0, the latest edition of file B is 1.0.If the version of the file A under the software that end side is being currently used is 1.0 The version of (that is, legacy version), file B is 1.0, then can determine that the file A needs in the software to be upgraded are updated, text Part B need not update, and then can be updated just for file A.
If preferably, there is no newer file is needed, exits and terminate software upgrading flow.If in the presence of needing to update File, then follow the steps 106.
Step 106, the corresponding first version file of the newer file of needs is downloaded.
Preferably, the version number of the first version file is corresponding higher than in the software to be upgraded to need newer text The version number of part.Such as, corresponding 2.0 version files of file A are downloaded.
Step 108, the newer file of needs is updated using the first version file of download, it is described to be upgraded to complete The upgrading of software.
Preferably, the file A of original 1.0 version can be replaced using the file A for 2.0 versions downloaded, with completion pair The upgrading renewal process of the software to be upgraded.
In conclusion a kind of method of software upgrading disclosed in the present embodiment judges to wait for by the first upgrading configuration Whether the partial document in upgrading software needs to update;And newer file is needed existing, download the newer text of needs The corresponding first version file of part;Then, the newer file of needs is updated using the first version file of download, to complete The upgrading of the software to be upgraded.Since the partial document is the non-installation procedure file in the software to be upgraded, only need Want whether judgment part file needs to update, and, when the partial document needs update, it is only necessary to download corresponding file i.e. It can complete to update.The size of non-installation procedure file is much smaller than the size of entire upgrade installation package, therefore, it discloses through this embodiment Method for upgrading software software is upgraded, reduce the occupancy to bandwidth, alleviate facility load, improve upgrading update Efficiency.
Embodiment two
With reference to Fig. 2, a kind of step flow chart of the method for software upgrading in the embodiment of the present invention two is shown.In this implementation In example, the method for the software upgrading, including:
Step 202, terminal responds upgrade request.
Preferably, the upgrade request includes:First upgrade request and the second upgrade request.
Wherein,
First upgrade request is determined according to acquiescence upgrading setting condition.Such as, user is installing or is using software process Middle setting:" auto Detection Software version, and being automatically updated when finding new version ".
Second upgrade request can be triggered by user's trigger action event.Such as, user clicks the detection in software The request initiated when more new option.Or, what user was arranged in installation or using software process:" auto Detection Software version, and Reminded when finding new version ", then, the request initiated when user determines prompting message.
Preferably, when terminal is responsive to second upgrade request, after above-mentioned steps 202, step can be executed 204。
Step 204, terminal obtains the third upgrading configuration to match with second upgrade request;And according to institute Third upgrading configuration is stated, determines whether the software to be upgraded needs to upgrade.
In the present embodiment, when determining that the software to be upgraded need not upgrade according to the third upgrading configuration When, then it can exit and terminate to upgrade flow;If it is determined that the software to be upgraded needs to upgrade, 206 are thened follow the steps.
Step 206, terminal downloads and the corresponding upgrade installation package of the software to be upgraded is preserved;Run the update Packet installation highest version software, and the software to be upgraded is replaced using the highest version software of installation, it is described to be upgraded soft to complete The upgrading of part.Upgrading flow terminates.
In the present embodiment, the corresponding third upgrading configuration information of third upgrading configuration can described wait rising The installation package informatin that the upgrade installation package of grade software matches, passes through the software carried in the third upgrading configuration information Version information, determine whether currently used software of end side needs to upgrade.If the third upgrading configuration letter Version indicated by the version information of the software carried in breath is higher than the version of the currently used software, then passes through the third The download address of the highest version installation kit carried in upgrading configuration information downloads highest version installation kit, runs the high version of download This installation kit reinstalls the software, the current lowest version software in end side is replaced, to complete the escalation process of software.
What needs to be explained here is that the third upgrading configuration can with but be not limited only to be the software to be upgraded The installation package informatin that upgrade installation package matches can also be the file to match with the partial document in the software to be upgraded Information can when the fileinfo that the partial document in the third upgrading configuration and the software to be upgraded matches To use the highest version file (or new edition file) of download to update the file lowest version file for needing to upgrade (or, old edition is herein Part), to complete the escalation process of software.Detailed process may refer to above-described embodiment one.
It is another preferably, when terminal is responsive to first upgrade request, after above-mentioned steps 202, can execute Step 208.
Step 208, terminal obtains upgrading configuration, and parses the upgrading configuration and obtain upgrading configuration letter Breath.
Step 210, terminal determines that the upgrading configuration is that the first upgrading is matched according to the upgrading configuration information File is set, or, being the second upgrading configuration.
Preferably, when the upgrading configuration information is the text to match with the partial document in the software to be upgraded When part information, determine that the upgrading configuration is the first upgrading configuration.When the upgrading configuration information is and institute When stating the installation package informatin that the upgrade installation package of software to be upgraded matches, determine that the upgrading configuration is that the second upgrading is matched Set file.
In the present embodiment, when terminal determines that the upgrading configuration is the second upgrading configuration, in above-mentioned step After rapid 210, step 212 can be executed.
Step 212, terminal determines whether the software to be upgraded is to need to rise according to second upgrading configuration Grade.
Preferably, when terminal determines that the software to be upgraded need not upgrade, then exits and terminate to upgrade flow.Work as end When end determines that the software to be upgraded needs upgrading, 214 are thened follow the steps.
Step 214, terminal downloads and the corresponding upgrade installation package of the software to be upgraded is preserved;Run the update Packet installation highest version software replaces the software to be upgraded, to complete the software to be upgraded using the highest version software of installation Upgrading.Upgrading flow terminates.
In the present embodiment, when terminal determines that the upgrading configuration is the first upgrading configuration, then above-mentioned After step 210, step 216 can be executed.
Step 216, terminal judges whether the partial document in software to be upgraded needs according to first upgrading configuration It updates.
In the present embodiment, the partial document includes:Non- installation procedure file in the software to be upgraded.Described One upgrading configuration includes:Version number, download address and the check code of the corresponding all versions of partial document, And the corresponding old version range intervals of all partial documents in the software to be upgraded.
Preferably, above-mentioned steps 216 can specifically include:
Sub-step 2162, terminal obtain the corresponding current version number of All Files in the software to be upgraded.
Sub-step 2164, when the current version number of any file in the software to be upgraded is corresponded in any file Old version range intervals in when, terminal determines that any file is to need newer file;Otherwise, it determines described any File is highest version file.
Preferably, when terminal judges that the partial document in software to be upgraded need not update, then exits and terminate to upgrade Flow.When terminal judges that the partial document in software to be upgraded needs update, 218 are thened follow the steps.
Step 218, the corresponding first version file of newer file is needed described in terminal downloads.
Wherein, the version number of the first version file is corresponding higher than in the software to be upgraded needs newer file Version number.
Preferably, above-mentioned steps 218 can specifically include:
Sub-step 2182, terminal is obtained from first upgrading configuration described needs newer file corresponding the The download address of one version file.
Sub-step 2184, terminal download described the according to the download address of the first version file of acquisition, from server end One version file.
Step 220, terminal obtains the check code for the first version file downloaded, and judges the first edition of the download obtained herein Whether the check code of part and corresponding check code in first upgrading configuration are consistent.
In the present embodiment, when the check code of the first version file of the download of acquisition and first upgrading configuration In corresponding check code it is consistent when, preserve the first version file of download, and execute step 222;Otherwise, the first of download is deleted Version file, and execute the first setting process.Wherein, first setting process can with but be not limited only to be to return to step 218, or directly terminate to upgrade flow.
Wherein, the check code can with but be not limited only to be MD5 check codes (Message Digest Algorithm MD5, Message Digest Algorithm 5).
Step 222, terminal carries out safe inspection by calling third party's security application to the first version file of the download It surveys.
If preferably, the first version file thens follow the steps 224 by safety detection, the second setting is otherwise executed Flow.Wherein, second setting process can with but be not limited only to be return to step 218, or directly terminate upgrade flow, Or report the safety detection result of the first version file.
What needs to be explained here is that above-mentioned steps 222 can execute before or after step 220, the present embodiment is to this It is not restricted.
Step 224, terminal updates the newer file of needs using the first version file downloaded, to be waited for described in completion Upgrade the upgrading of software.
In conclusion a kind of method of software upgrading disclosed in the present embodiment judges to wait for by the first upgrading configuration Whether the partial document in upgrading software needs to update;And newer file is needed existing, download the newer text of needs The corresponding first version file of part;Then, the newer file of needs is updated using the first version file of download, to complete The upgrading of the software to be upgraded.Since the partial document is the non-installation procedure file in the software to be upgraded, only need Want whether judgment part file needs to update, and, when the partial document needs update, it is only necessary to download corresponding file i.e. It can complete to update.The size of non-installation procedure file is much smaller than the size of entire upgrade installation package, therefore, it discloses through this embodiment Method for upgrading software software is upgraded, reduce the occupancy to bandwidth, alleviate facility load, improve upgrading update Efficiency.
Further, the first version file of the download is pacified respectively by check code and third party's security application Whole school tests and safety detection, to ensure the safety of the highest version file for updating upgrading.
Embodiment three
With reference to Fig. 3, a kind of step flow chart of the method for software upgrading in the embodiment of the present invention three is shown.In this implementation In example, the method for the software upgrading includes:
Step 302, terminal determines that the upgrading configuration obtained is the first upgrading configuration.
Step 304, terminal judges whether the partial document in software to be upgraded needs according to first upgrading configuration It updates.
Wherein, the partial document includes:Non- installation procedure file in the software to be upgraded.
If needing newer file preferably, existing, 306 are thened follow the steps;Otherwise, terminate upgrading flow.It needs exist for What is illustrated is determined and needs is not present in the software when highest version or new version is not present in all partial documents The partial document being updated, and then terminate to upgrade flow.Optionally, when there is no the parts that needs are updated When file, terminal can also further determine that the version information of currently used software, judge the version of currently used software Whether it is newest or highest version, if it is not, can then be upgraded to software by way of software installation packet upgrading.Ensure The accuracy of software upgrade process.
Step 306, the corresponding first version file of newer file is needed described in terminal downloads.
Wherein, the version number of the first version file is corresponding higher than in the software to be upgraded needs newer file Version number.
Step 308, newer file is needed described in terminal backup.
Step 310, terminal replaces the newer file of needs using the first version file downloaded.
Wherein, in the present embodiment, it replaces after terminating, the replacement result of all partial documents being replaced of terminal-pair It is checked, judges whether all partial documents are replaced successfully.When institute's newer text in need in the software to be upgraded When part is completed to replace, determines that the software to be upgraded completes upgrading, terminate upgrading flow.When arbitrary in the software to be upgraded When one newer file of needs replaces failure, it is determined that the software upgrading failure to be upgraded;And execute step 312.
Step 312, terminal will replace to the first version file in the software to be upgraded and use corresponding backup Newer file is needed to be replaced.
In the present embodiment, when any one in software to be upgraded needs newer file to replace failure, terminal will Replacement is replaced to the first version file in the software to be upgraded using the newer file of needs of corresponding backup, into And restore the reset condition of software to be upgraded, ensure the normal use of the software to be upgraded, ensure that software upgrade process Stability does not influence user experience.
Preferably, in order to ensure software upgrade success, after determining the software upgrading failure to be upgraded, can also hold Row step 314.
Step 314, terminal determines that corresponding first version file is non-matching version file;It obtains and records described non- Fileinfo with version file.
Wherein, the fileinfo of the non-matching version file includes:The version number of the non-matching version file, title At least one of with check code.
Step 316, terminal determines second edition file according to the version number of the non-matching version file;And use institute State the second edition file update newer file of needs.
Wherein, the version number of the second edition file is corresponding higher than in the software to be upgraded needs newer file Version number, and, the version number of the second edition file is higher or lower than the version number of the non-matching version file.
It often will appear following situation in software upgrade process, file C (wherein, the file C under currently used software Belong to the partial software of the software, that is, be non-installation procedure file) version be 1.0, and the latest edition of the file C is 5.0.At this point, more efficiently update mode is:The file C (e.g., first version file) for directly downloading 5.0 versions, uses 5.0 The file C of version replaces the file C of 1.0 versions., may be larger due to version span however in replacement process, lack Necessary upgrade information and cause update fail, at this time, it may be necessary to download the file C of a version between 1.0 and 5.0 (e.g., second edition file) is replaced with the file C to 1.0 versions.Preferably, the file of 4.0 versions is downloaded in terminal selection C is updated replacement with the file C to 1.0 versions.What needs to be explained here is that after file C is updated to 4.0 version, Further, the file C that 4.0 versions are updated using the file C for 5.0 versions downloaded, to complete the final upgrading of file C more New process.
In the present embodiment, if updating the newer file of needs using the second edition file, update fails, then It downloads third version file (or, the version files such as fourth, fifth, six) and updates the newer file of needs, until being updated successfully. If updating the newer file of needs using the second edition file, it is updated successfully, it is determined that the second edition file For fit version file;And execute step 318.
Step 318, terminal obtains and records the corresponding fileinfo of the fit version file.
Wherein, the fileinfo of the fit version file includes:Version number, title and the school of the fit version file Test at least one of code.
Step 320, terminal is established and preserves the correspondence of the non-matching version file and the fit version file.
Step 322, when it is the non-matching version file to determine the version file downloaded, terminal is according to the corresponding pass System, directly downloads the corresponding fit version file of the non-matching version file;And update institute using the fit version file It states and needs newer file, to complete the upgrading of the software to be upgraded.
What needs to be explained here is that being replaced using the first version file (or, second and third, the version files such as four) downloaded When changing the newer file of the needs, record is replaced using the first version file (or, second and third, the version files such as four) downloaded Change the replacement information in the replacement process needed corresponding to newer Files step.If the replacement information instruction was replaced Journey Program is abnormal, and/or replacement process interrupts, and/or replacement operation is gone beyond one's commission, then loads and show the replacement information, with It prompts the user whether to continue to execute the replacement process.
In conclusion a kind of method of software upgrading disclosed in the present embodiment judges to wait for by the first upgrading configuration Whether the partial document in upgrading software needs to update;And newer file is needed existing, download the newer text of needs The corresponding first version file of part;Then, the newer file of needs is updated using the first version file of download, to complete The upgrading of the software to be upgraded.Since the partial document is the non-installation procedure file in the software to be upgraded, only need Want whether judgment part file needs to update, and, when the partial document needs update, it is only necessary to download corresponding file i.e. It can complete to update.The size of non-installation procedure file is much smaller than the size of entire upgrade installation package, therefore, it discloses through this embodiment Method for upgrading software software is upgraded, reduce the occupancy to bandwidth, alleviate facility load, improve upgrading update Efficiency.
Further, in carrying out escalation process to partial document, due to needing to have one between the partial document upgraded Therefore fixed dependence in the present embodiment, cannot occur in which the success of some parts document upgrading, other parts text The problem of part upgrading failure, otherwise, it can lead to software crash if serious, be unable to operate normally.The present embodiment uses A kind of operating process of atomic formula, otherwise that is, the success of all parts document upgrading or all parts file do not upgrade.Upgrading Before, first the lowest version file backup to be upgraded to temp directory, then lowest version text is replaced with the highest version file downloaded Part, if wherein any one file replacement is unsuccessful, then it is assumed that this time upgrading failure executes rolling back action, faced with backuping to When catalogue lowest version file the highest version file being replaced successfully is replaced back again, after the completion of execution, delete backup file.Into And it ensure that the reliability and stability of software upgrading.
Example IV
With reference to Fig. 4, a kind of schematic diagram of software update system client in the embodiment of the present invention four is shown.In this implementation In example, the method for software upgrading is realized by upgrading system client end, and the upgrading system client end may be used including manual Two kinds of upgrading modes including upgrading and automatic upgrading carry out software upgrading.Wherein, installation kit upgrading may be used in automatic upgrading Mode is upgraded;Upgrading both may be used installation kit upgrading mode and upgraded manually, can also use multifile upgrading side Formula is upgraded.
Wherein, the trigger timing for upgrading manually and upgrading automatically is different, and upgrading manually can be user in software interface The upgrading of a kind of function button triggering such as " checking update " is clicked in upper active, and automatic upgrading can be then automatic after software starts Start detection upgrading flow.
Preferably, with reference to Fig. 5, a kind of step flow of the manual upgrade method of software in the embodiment of the present invention four is shown Figure.
In the present embodiment, the manual upgrade method of software includes:
Step 502, upgrading system client end is asked by the upgrading of click " check update " option triggering receiving user After asking, manual upgrading configuration is downloaded from server-side.
Preferably, record has following information in the manual upgrading configuration:Ver:New version software installation kit version Number;Check:The software version number section to be upgraded;MD5:The MD5 check values of new version software installation kit;URL:New version is soft The download address of part installation kit;UpdateText:New version software upgrade tip information.
Step 504, upgrading system client end reads the software version for needing to upgrade from the manual upgrading configuration Number section (Check);And obtain the version number of Current software.
Step 506, upgrading system client end judges whether the version number of Current software falls the version number's model upgraded in needs It encloses in section (Check).
Preferably, if the version number of Current software moves back not in the version number's range intervals (Check) for needing to upgrade Go out to upgrade flow.If thening follow the steps 508.
Step 508, upgrading system client end obtains new version upgrade tip information from the manual configuration file (UpdateText), and it is shown in the upgrading system client end interface.
If user confirms upgrading by the interface selection of display, 510 are thened follow the steps;If user is selected by the interface of display It selects and abandons (or, cancellation) upgrading, then exit upgrading flow.
Step 510, upgrading system client end is got from the manual configuration file under new version software installation kit Set address (URL);And new version installation kit is downloaded according to the download address of the new version software installation kit.
In the present embodiment, after the completion of new version installation kit download, the MD5 of the new version installation kit of download is calculated Value.If the MD5 values for the new version installation kit downloaded are consistent with the MD5 values recorded in the manual configuration file, then follow the steps 512;If inconsistent, the file of download is deleted, and exits this time upgrading flow.
Step 512, upgrading system client end prompt customer upgrade is completed, and is recorded in local profile.
In the present embodiment, when starting the software next time, if finding, installation kit has been had recorded in local profile to be needed Upgrade, then exit software, run corresponding new edition software upgrade package, to realize the upgrading of software.
It is another preferably, with reference to Fig. 6, the step of showing the automatically updating method of a kind of software in the embodiment of the present invention four Flow chart.
Step 602, after software starts, upgrading system client end according to the configuration condition of acquiescence (or, setting), automatically from Server-side downloads automatic upgrading configuration.
Preferably, having recorded the information of upgrade file or software installation to be upgraded in the automatic upgrading configuration Package informatin.
Step 604, upgrading system client end reads information in the automatic upgrading configuration.
If preferably, when the information read in the automatic upgrading configuration is software installation package informatin, use Installation kit upgrading mode upgrades software, and detailed process is similar with the manual upgrade method of above-mentioned software, only soft What part executed automatically, the not manual intervention of user.Details are not described herein again.
If the information read in the automatic upgrading configuration is information of upgrade file (e.g., the first upgrading configuration Information) when, it is determined that software is upgraded using multifile upgrading mode, execute following steps 606.Wherein, the file Information includes:Version number, download address and the check code of the corresponding all versions of partial document, and need to upgrade The corresponding old version range intervals of all partial documents in software.Wherein, the partial document is the software for needing to upgrade Under non-installation procedure file.
Step 606, upgrading system client end is corresponding according to all partial documents are obtained from the information of upgrade file Old version range intervals judge the version number of corresponding file destination successively.
If preferably, there is the version number of either objective file to fall old version range intervals corresponding in partial document, It then determines that software needs to update upgrading, and executes step 608;Otherwise, it exits and upgrades flow herein.
Step 608, upgrading system client end gets the file destination for needing to upgrade from the information of upgrade file Download address;And the file destination (e.g., first of new version is downloaded according to the download address of the file destination for needing to upgrade Version file).
Step 610, upgrading system client end preserves the first version file downloaded;And establish local profile, will under Version number, storing path and the check code of the first version file of load and the version number for needing newer file, preservation Path and check code are stored in the local profile.
In the present embodiment, it is held (or, when needing newer software to start again) after needing upgrading software to close Row step 612.
Step 612, upgrading system client end is reading the local profile from the background;And it is locally configured described in comparing The version number of first version file in file and the corresponding version number for needing newer file destination.
In the present embodiment, if the version number of the first version file is higher than the corresponding newer file destination of needs Version number thens follow the steps 614;Otherwise, upgrading flow is exited.
Step 614, upgrading system client end obtains the first version by the storing path of the first version file File, and according to the corresponding storing path for needing newer file, correspondence is replaced herein using the first edition of acquisition on backstage Want newer file, to complete the upgrading of the software to be upgraded.
What needs to be explained here is that after downloading the file destination for obtaining new version in above-mentioned steps 608, it can also be direct The newer file destination of needs is updated using the file destination of the new version of download, to complete the update of software.
In conclusion a kind of method of software upgrading disclosed in the present embodiment judges to wait for by the first upgrading configuration Whether the partial document in upgrading software needs to update;And newer file is needed existing, download the newer text of needs The corresponding first version file of part;Then, the newer file of needs is updated using the first version file of download, to complete The upgrading of the software to be upgraded.Since the partial document is the non-installation procedure file in the software to be upgraded, only need Want whether judgment part file needs to update, and, when the partial document needs update, it is only necessary to download corresponding file i.e. It can complete to update.The size of non-installation procedure file is much smaller than the size of entire upgrade installation package, therefore, it discloses through this embodiment Method for upgrading software software is upgraded, reduce the occupancy to bandwidth, alleviate facility load, improve upgrading update Efficiency.
Further, the method for upgrading software described in the present embodiment can be supported to upgrade and automatically upgrade two kinds manually simultaneously Mode.Software upgrading is carried out using installation kit upgrading mode preferably, being also an option that when carrying out upgrading automatically;Or, using Multifile upgrading mode carries out software upgrading.Upgrading mode is more flexible, can be with when being upgraded using multifile upgrading mode Issued software defect is quickly corrected, upgrading efficiency is improved, and is greatly saved the Netowrk tape of server It is wide.
It should be noted that for embodiment of the method above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence, because according to According to the present invention, certain steps can be performed in other orders or simultaneously.Next, those skilled in the art should also know that, Embodiment described in this description belongs to preferred embodiment, and involved action is not necessarily essential to the invention.
Embodiment five
Based on the same inventive concept of above method embodiment.With reference to Fig. 7, show a kind of soft in the embodiment of the present invention five The structure diagram of the device of part upgrading.In the present embodiment, the device of the software upgrading includes:
First determining module 702, for determining that the upgrading configuration obtained is the first upgrading configuration.
Judgment module 704, for according to first upgrading configuration, judging that the partial document in software to be upgraded is It is no to need to update.
Wherein, the partial document includes:Non- installation procedure file in the software to be upgraded.
First download module 706 is corresponded to for when there is the newer file of needs, downloading the newer file of needs First version file.
Wherein, the version number of the first version file is corresponding higher than in the software to be upgraded needs newer file Version number.
First upgraded module 708, for updating the newer file of needs using the first version file downloaded, with complete At the upgrading of the software to be upgraded.
In conclusion a kind of device of software upgrading disclosed in the present embodiment judges to wait for by the first upgrading configuration Whether the partial document in upgrading software needs to update;And newer file is needed existing, download the newer text of needs The corresponding first version file of part;Then, the newer file of needs is updated using the first version file of download, to complete The upgrading of the software to be upgraded.Since the partial document is the non-installation procedure file in the software to be upgraded, only need Want whether judgment part file needs to update, and, when the partial document needs update, it is only necessary to download corresponding file i.e. It can complete to update.The size of non-installation procedure file is much smaller than the size of entire upgrade installation package, therefore, it discloses through this embodiment Software updating apparatus software is upgraded, reduce the occupancy to bandwidth, alleviate facility load, improve upgrading update Efficiency.
Embodiment six
With reference to Fig. 8, a kind of structure diagram of the device of software upgrading in the embodiment of the present invention six is shown.In the present embodiment In, the device of the software upgrading includes:
Respond module 802, for responding upgrade request.
In the present embodiment, the upgrade request includes:The first upgrade request determined according to acquiescence upgrading setting condition With the second upgrade request triggered by user's trigger action event.
Preferably, when the upgrade request is the second upgrade request, the 4th acquisition module 804 is executed.
4th acquisition module 804, for when the upgrade request is the second upgrade request, obtaining and upgrading with described second Ask the third upgrading configuration to match.
8th determining module 806, for according to the third upgrading configuration, determining whether the software to be upgraded needs Upgrade.
4th download module 808 described waits rising for when determining that the software to be upgraded needs upgrading, downloading and preserving The corresponding upgrade installation package of grade software.
Third upgraded module 810 installs highest version software for running the upgrade installation package, uses the highest version of installation Software replaces the software to be upgraded, to complete the upgrading of the software to be upgraded.
It is another preferably, when the upgrade request is the first upgrade request, is executed after the respond module 802 Three acquisition modules 812.
Third acquisition module 812, for obtaining upgrading configuration.
Parsing module 814 obtains upgrading configuration information for parsing the upgrading configuration.
6th determining module 816, for determining that the upgrading configuration is according to the upgrading configuration information One upgrading configuration, or, being the second upgrading configuration.
In the present embodiment, when the upgrading configuration information is and the partial document phase in the software to be upgraded When the fileinfo matched, determine that the upgrading configuration is the first upgrading configuration by the 6th determining module 816;Work as institute When to state upgrading configuration information be the installation package informatin to match with the upgrade installation package of the software to be upgraded, pass through the 6th Determining module 816 determines that the upgrading configuration is the second upgrading configuration.
Preferably, when determining that the upgrading configuration is the second upgrading configuration by the 6th determining module 816, Execute the 7th determining module 818.
7th determining module 818, when for determining that the upgrading configuration is the second upgrading configuration, according to described Second upgrading configuration determines whether the software to be upgraded is to need to upgrade.
Third download module 820 is downloaded and is preserved described to be upgraded when for determining that the software to be upgraded needs upgrading The corresponding upgrade installation package of software.
Second upgraded module 822 installs highest version software for running the upgrade installation package, uses the highest version of installation Software replaces the software to be upgraded, to complete the upgrading of the software to be upgraded.
It is another to determine that the upgrading configuration is the first upgrading configuration text by the 6th determining module 816 preferably, working as When part, judgment module 824 is executed.
Judgment module 824, for according to first upgrading configuration, judging that the partial document in software to be upgraded is It is no to need to update.Wherein, the partial document includes:Non- installation procedure file in the software to be upgraded.Described first liter Grade configuration file include:Version number, download address and the check code of the corresponding all versions of partial document, and The corresponding old version range intervals of all partial documents in the software to be upgraded.
Preferably, the judgment module 824 may include:
First acquisition module 8242, for obtaining the corresponding current version number of All Files in the software to be upgraded.
4th determining module 8244, the current version number for any file in the software to be upgraded is at described When in the corresponding old version range intervals of one file, determine that any file is to need newer file;Otherwise, it determines institute It is highest version file to state any file.
In the present embodiment, when judging that the partial document in software to be upgraded need not be more by the judgment module 824 When new, then exit and terminate to upgrade.When judging that the partial document in software to be upgraded needs to update by the judgment module 824 When, then execute the first download module 826.
First download module 826 is corresponded to for when there is the newer file of needs, downloading the newer file of needs First version file.Wherein, the version number of the first version file is corresponding higher than in the software to be upgraded needs more The version number of new file.
Preferably, first download module 826 may include:
Second acquisition module 8262 is used for when there is the newer file of needs, from first upgrading configuration Obtain the download address for needing the corresponding first version file of newer file.
Second download module 8264 is used for the download address of the first version file according to acquisition, is downloaded from server end The first version file.
Check code module 828, the check code for obtaining the first version file downloaded.
First preserving module 830, the check code of the first version file for the download in acquisition upgrade with described first When corresponding check code in configuration file is consistent, the first version file of download is preserved;Otherwise, the first version of download is deleted File.
Safety detection module 832, for by calling third party's security application, to the first version file of the download into Row safety detection.
If preferably, detection of the first version file by safety detection module 832, in the first version file When passing through safety detection, first upgraded module 834 is executed.
First upgraded module 834, for updating the newer file of needs using the first version file downloaded, with complete At the upgrading of the software to be upgraded.
In conclusion a kind of device of software upgrading disclosed in the present embodiment judges to wait for by the first upgrading configuration Whether the partial document in upgrading software needs to update;And newer file is needed existing, download the newer text of needs The corresponding first version file of part;Then, the newer file of needs is updated using the first version file of download, to complete The upgrading of the software to be upgraded.Since the partial document is the non-installation procedure file in the software to be upgraded, only need Want whether judgment part file needs to update, and, when the partial document needs update, it is only necessary to download corresponding file i.e. It can complete to update.The size of non-installation procedure file is much smaller than the size of entire upgrade installation package, therefore, it discloses through this embodiment Software updating apparatus software is upgraded, reduce the occupancy to bandwidth, alleviate facility load, improve upgrading update Efficiency.
Further, the first version file of the download is pacified respectively by check code and third party's security application Whole school tests and safety detection, to ensure the safety of the highest version file for updating upgrading.
Embodiment seven
With reference to Fig. 9, a kind of structure diagram of the device of software upgrading in the embodiment of the present invention seven is shown.In the present embodiment In, the device of the software upgrading includes:
First determining module 902, for determining that the upgrading configuration obtained is the first upgrading configuration.
Judgment module 904, for according to first upgrading configuration, judging that the partial document in software to be upgraded is It is no to need to update.Wherein, the partial document includes:Non- installation procedure file in the software to be upgraded.
Preferably, needing newer file when judgment module 904 judges to exist, then the first download module 906 is executed;It is no Then, terminate upgrading.
First download module 906 is corresponded to for when there is the newer file of needs, downloading the newer file of needs First version file.Wherein, the version number of the first version file is corresponding higher than in the software to be upgraded needs more The version number of new file.
First upgraded module 908, for updating the newer file of needs using the first version file downloaded, with complete At the upgrading of the software to be upgraded.
Wherein, first upgraded module 908 includes:
Backup module 9082, for backing up the newer file of needs.
Replacement module 9084, for replacing the newer file of needs using the first version file downloaded.
Second determining module 9086, in the software to be upgraded institute's newer file in need complete to replace When, determine that the software to be upgraded completes upgrading.
Third determining module 9088, for the newer file replacement failure of any one needs in the software to be upgraded When, determine the software upgrading failure to be upgraded;And it is used having replaced to the first version file in the software to be upgraded The newer file of needs of corresponding backup is replaced.
Non-matching version file determining module 910, for after determining the software upgrading to be upgraded failure, determining pair The first version file answered is non-matching version file.
First fileinfo acquisition module 912, the fileinfo for obtaining and recording the non-matching version file.Its In, the fileinfo of the non-matching version file includes:In the version number of the non-matching version file, title and check code At least one.
Second edition file determining module 914, for after determining the software upgrading to be upgraded failure, according to described The version number of non-matching version file determines second edition file.Wherein, the version number of the second edition file is higher than described The corresponding version number for needing newer file in software to be upgraded, and, the version number of the second edition file is higher than or low In the version number of the non-matching version file.
Update module 916 is downloaded, for downloading the second edition file, and, it is updated using the second edition file It is described to need newer file.
Fit version file determining module 918, for newer using the second edition file update needs After file, if updating the newer file of needs using the second edition file, it is updated successfully, it is determined that described second Version file is fit version file;And it obtains and records the corresponding fileinfo of the fit version file.Wherein, described The fileinfo of fit version file includes:At least one of version number, title and the check code of the fit version file.
Relationship establishes module 920, for establishing and preserving the non-matching version file and the fit version file Correspondence.
Update module 922 is used for when it is the non-matching version file to determine the version file downloaded, according to described right It should be related to, download the corresponding fit version file of the non-matching version file;And update institute using the fit version file It states and needs newer file, to complete the upgrading of the software to be upgraded.
Replacement information logging modle 924, it is newer using the first version file replacement needs downloaded for recording The replacement information in replacement process corresponding to file.
Reminding module 926, in replacement information instruction replacement process Program exception, and/or replacement process Disconnected, and/or replacement operation more temporary, loads and shows the replacement information, to prompt the user whether to continue to execute the replacement Process.
Second preserving module 928 downloads first version file for preserving.
Module 930 is established, for establishing local profile, by the version number of the first version file of download, preserves road Version number, storing path and the check code of diameter and check code and the newer file of needs are stored in described be locally configured In file.
Read module 932, for after the software to be upgraded is closed, reading the local profile from the background.
Comparison module 934, for the version number of the first version file in the local profile and corresponding Need the version number of newer file.
5th determining module 936 needs newer text for the version number in the first version file higher than corresponding When the version number of part, first upgraded module 908 is executed.Preferably, first upgraded module 908, specifically for passing through The storing path of the first version file obtains the first version file, and according to the corresponding guarantor for needing newer file Deposit path, backstage using the first edition of acquisition replace herein it is corresponding want newer file, to complete the software to be upgraded Upgrading.
In conclusion a kind of device of software upgrading disclosed in the present embodiment judges to wait for by the first upgrading configuration Whether the partial document in upgrading software needs to update;And newer file is needed existing, download the newer text of needs The corresponding first version file of part;Then, the newer file of needs is updated using the first version file of download, to complete The upgrading of the software to be upgraded.Since the partial document is the non-installation procedure file in the software to be upgraded, only need Want whether judgment part file needs to update, and, when the partial document needs update, it is only necessary to download corresponding file i.e. It can complete to update.The size of non-installation procedure file is much smaller than the size of entire upgrade installation package, therefore, it discloses through this embodiment Software updating apparatus software is upgraded, reduce the occupancy to bandwidth, alleviate facility load, improve upgrading update Efficiency.
Further, in carrying out escalation process to partial document, due to needing to have one between the partial document upgraded Therefore fixed dependence in the present embodiment, cannot occur in which the success of some parts document upgrading, other parts text The problem of part upgrading failure, otherwise, it can lead to software crash if serious, be unable to operate normally.The present embodiment uses A kind of atomic formula upgrade mode, otherwise that is, the success of all parts document upgrading or all parts file do not upgrade.In upgrading Before, first the lowest version file backup to be upgraded to temp directory, lowest version file then is replaced with the highest version file downloaded, If wherein any one file is replaced unsuccessful, then it is assumed that this time upgrading failure executes rolling back action, with backuping to interim mesh The lowest version file of record is again replaced the highest version file being replaced successfully back, after the completion of execution, deletes backup file.And then it protects The reliability and stability of software upgrading are demonstrate,proved.
For above-mentioned apparatus embodiment, since it is basically similar to the method embodiment, so description is fairly simple, The relevent part can refer to the partial explaination of embodiments of method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice In the equipment of microprocessor or digital signal processor (DSP) to realize a kind of software upgrading according to the ... of the embodiment of the present invention The some or all functions of some or all components.The present invention is also implemented as executing method as described herein Some or all equipment or program of device (for example, computer program and computer program product).Such reality The program of the existing present invention can may be stored on the computer-readable medium, or can be with the form of one or more signal. Such signal can be downloaded from internet website and be obtained, and either be provided on carrier signal or in any other forms It provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of methods of software upgrading, including:
Determine that the upgrading configuration obtained is the first upgrading configuration;
According to first upgrading configuration, judge whether the partial document in software to be upgraded needs to update;Wherein, The partial document includes:Non- installation procedure file in the software to be upgraded;
Newer file is needed if existing, downloads the corresponding first version file of the newer file of needs;Wherein, The version number of the first version file is higher than the corresponding version number for needing newer file in the software to be upgraded;
The newer file of needs is updated using the first version file of download, to complete the liter of the software to be upgraded Grade.
A2, the method as described in A1, it is described to update the newer file of needs using the first version file downloaded, with The upgrading of the software to be upgraded is completed, including:
Back up the newer file of needs;
The newer file of needs is replaced using the first version file of download;
When institute's newer file in need is completed to replace in the software to be upgraded, determine that the software to be upgraded is complete At upgrading;
When any one in the software to be upgraded needs newer file to replace failure, it is determined that described to be upgraded soft Part upgrading failure;And
The needs newer text that uses corresponding backup will have been replaced to the first version file in the software to be upgraded Part is replaced.
A3, the method as described in A2, after the step of determination software upgrading to be upgraded fails, the method Further include:
Determine that corresponding first version file is non-matching version file;
Obtain and record the fileinfo of the non-matching version file;Wherein, the file of the non-matching version file Information includes:At least one of version number, title and the check code of the non-matching version file.
A4, the method as described in A3, after the step of determination software upgrading to be upgraded fails, the method Further include:
Second edition file is determined according to the version number of the non-matching version file;Wherein, the second edition file Version number higher than in the software to be upgraded the corresponding version number for needing newer file, and, the second edition file Version number be higher or lower than the non-matching version file version number;
The second edition file is downloaded, and, update the newer file of needs using the second edition file.
A5, the method as described in A4 update the newer file of needs described using the second edition file After step, the method further includes:
If updating the newer file of needs using the second edition file, it is updated successfully, it is determined that described second Version file is fit version file;And
It obtains and records the corresponding fileinfo of the fit version file;Wherein, the file of the fit version file Information includes:At least one of version number, title and the check code of the fit version file.
A6, the method as described in A5, after the step of determination software upgrading to be upgraded fails, the method Further include:
Establish and preserve the correspondence of the non-matching version file and the fit version file;
When it is the non-matching version file to determine the version file downloaded, according to the correspondence, described in download The corresponding fit version file of non-matching version file;And update the newer text of needs using the fit version file Part, to complete the upgrading of the software to be upgraded.
A7, the method as described in A2, the method further include:
Record the replacement replaced using the first version file downloaded corresponding to the newer Files step of needs Replacement information in the process;
If the replacement information instruction replacement process Program is abnormal, and/or replacement process interrupts, and/or replacement operation It goes beyond one's commission, then loads and show the replacement information, to prompt the user whether to continue to execute the replacement process.
A8, the method as described in A1, first upgrading configuration include:The partial document is corresponding complete The corresponding history version of all partial documents in version number, download address and the check code of portion's version and the software to be upgraded This number range intervals.
A9, the method as described in A8, it is described according to first upgrading configuration, judge the part in software to be upgraded Whether file, which needs, updates, including:
Obtain the corresponding current version number of All Files in the software to be upgraded;
When the current version number of any file in the software to be upgraded is in the corresponding old version of any file When in range intervals, determine that any file is to need newer file;Otherwise, it determines any file is highest version File.
A10, the method as described in A8 download the step for needing the corresponding first version file of newer file described After rapid, the method further includes:
Obtain the check code for the first version file downloaded;
Check code when the first version file of the download of acquisition and corresponding verification in first upgrading configuration When code is consistent, the first version file of download is preserved;Otherwise, the first version file of download is deleted.
A11, the method as described in A8, it is described download it is described need the corresponding first version file of newer file, including:
From obtaining described need under the corresponding first version file of newer file in first upgrading configuration Set address;
According to the download address of the first version file of acquisition, the first version file is downloaded from server end.
A12, the method as described in A1, after described the step of downloading the first version file from server end, institute The method of stating further includes:
Preserve the first version file downloaded;And
Local profile is established, by version number, storing path and the check code of the first version file of download, Yi Jisuo It states and version number, storing path and the check code of newer file is needed to be stored in the local profile.
A13, the method as described in A12, after described the step of establishing local profile, the method further includes:
After the software to be upgraded is closed, the local profile is being read from the background;
Compare the version number of the first version file in the local profile and corresponding needs newer file Version number;
If described in the version number of the first version file higher than the corresponding version number for needing newer file, executes The newer file of needs is updated using the first version file of download, to complete the step of the upgrading of the software to be upgraded Suddenly.
A14, the method as described in right wants 13, it is described newer using the first version file the downloaded update needs File, to complete the upgrading of the software to be upgraded, including:
The first version file is obtained by the storing path of the first version file, and more according to corresponding needs The storing path of new file, backstage using the first edition of acquisition replace herein it is corresponding want newer file, to complete State the upgrading of software to be upgraded.
A15, the method as described in A1, the determining upgrading configuration obtained is the first upgrading configuration, including:
Obtain upgrading configuration;
It parses the upgrading configuration and obtains upgrading configuration information;
Determine that the upgrading configuration is the first upgrading configuration according to the upgrading configuration information, or, being Second upgrading configuration;
Wherein,
When the upgrading configuration information is the fileinfo to match with the partial document in the software to be upgraded When, determine that the upgrading configuration is the first upgrading configuration;
When the upgrading configuration information is that the installation kit to match with the upgrade installation package of the software to be upgraded is believed When breath, determine that the upgrading configuration is the second upgrading configuration.
A16, the method as described in A15, the method further include:
When it is the second upgrading configuration to determine the upgrading configuration,
According to second upgrading configuration, determine whether the software to be upgraded is to need to upgrade;
When determining that the software to be upgraded needs upgrading, downloads and preserve the corresponding update of the software to be upgraded Packet;
The upgrade installation package installation highest version software is run, is replaced using the highest version software of installation described to be upgraded soft Part, to complete the upgrading of the software to be upgraded.
A17, the method as described in A15, the acquisition upgrading configuration the step of before, the method further includes:
Respond upgrade request;Wherein, the upgrade request includes:The first upgrading determined according to acquiescence upgrading setting condition Request and the second upgrade request triggered by user's trigger action event;
When the upgrade request is the first upgrade request, execute the acquisition upgrading configuration the step of;
When the upgrade request is the second upgrade request, obtains the third to match with second upgrade request and upgrade Configuration file;
According to the third upgrading configuration, determine whether the software to be upgraded needs to upgrade;
When determining that the software to be upgraded needs upgrading, downloads and preserve the corresponding update of the software to be upgraded Packet;
The upgrade installation package installation highest version software is run, and described to be upgraded using the replacement of the highest version software of installation Software, to complete the upgrading of the software to be upgraded.
A18, the method as described in A1 download the step for needing the corresponding first version file of newer file described After rapid, the method further includes:
By calling third party's security application, safety detection is carried out to the first version file of the download;
If the first version file is executed described using the first version file downloaded update institute by safety detection It states and needs newer file, the step of upgrading to complete the software to be upgraded.
The invention also discloses B19, a kind of devices of software upgrading, including:
First determining module, for determining that the upgrading configuration obtained is the first upgrading configuration;
Judgment module, for whether according to first upgrading configuration, judging the partial document in software to be upgraded It needs to update;Wherein, the partial document includes:Non- installation procedure file in the software to be upgraded;
First download module, it is corresponding for when there is the newer file of needs, downloading the newer file of needs First version file;Wherein, the version number of the first version file is corresponding higher than in the software to be upgraded needs to update File version number;
First upgraded module, for updating the newer file of needs using the first version file downloaded, to complete The upgrading of the software to be upgraded.
B20, the device as described in B19, first upgraded module, including:
Backup module, for backing up the newer file of needs;
Replacement module, for replacing the newer file of needs using the first version file downloaded;
Second determining module, for when institute's newer file in need completes replacement in the software to be upgraded, really The fixed software to be upgraded completes upgrading;
Third determining module, when being used for the newer file replacement of any one needs in the software to be upgraded unsuccessfully, Determine the software upgrading failure to be upgraded;And it will replace to the first version file use pair in the software to be upgraded The newer file of needs for the backup answered is replaced.
B21, the device as described in B20, described device further include:
Non-matching version file determining module, for determining that the software upgrading to be upgraded is lost in the third determining module After losing, determine that corresponding first version file is non-matching version file;
First fileinfo acquisition module, the fileinfo for obtaining and recording the non-matching version file;Wherein, The fileinfo of the non-matching version file includes:In the version number of the non-matching version file, title and check code It is at least one.
B22, the device as described in B21, described device further include:
Second edition file determining module, for determining the software upgrading failure to be upgraded in the third determining module Later, second edition file is determined according to the version number of the non-matching version file;Wherein, the version of the second edition file The version number of this number corresponding newer file of needs higher than in the software to be upgraded, and, the version of the second edition file This number version number for being higher or lower than the non-matching version file;
Update module is downloaded, for downloading the second edition file, and, described in second edition file update Need newer file.
B23, the device as described in B22, described device further include:
Fit version file determining module, for updating institute using the second edition file in the download update module It states after needing newer file, if updating the newer file of needs using the second edition file, is updated successfully, then Determine that the second edition file is fit version file;And it obtains and records the corresponding file letter of the fit version file Breath;Wherein, the fileinfo of the fit version file includes:Version number, title and the check code of the fit version file At least one of.
B24, the device as described in B23, described device further include:
Relationship establishes module, after determining the software upgrading failure to be upgraded in the third determining module, builds Found and preserve the correspondence of the non-matching version file and the fit version file;
Update module is used for when it is the non-matching version file to determine the version file downloaded, according to the correspondence Relationship downloads the corresponding fit version file of the non-matching version file;And using described in fit version file update Newer file is needed, to complete the upgrading of the software to be upgraded.
B25, the device as described in B20, described device further include:
Replacement information logging modle replaces the need for recording the replacement module using the first version file downloaded Want the replacement information in the replacement process corresponding to newer file;
Reminding module, for being interrupted in replacement information instruction replacement process Program exception, and/or replacement process, And/or replacement operation is more temporary, loads and show the replacement information, to prompt the user whether to continue to execute described replaced Journey.
B26, the device as described in B19, first upgrading configuration include:The partial document is corresponding The corresponding history of all partial documents in version number, download address and the check code of all versions and the software to be upgraded Version number's range intervals.
B27, the device as described in B26, the judgment module, including:
First acquisition module, for obtaining the corresponding current version number of All Files in the software to be upgraded;
4th determining module, the current version number for any file in the software to be upgraded is in any text When in the corresponding old version range intervals of part, determine that any file is to need newer file;Otherwise, it determines described One file is highest version file.
B28, the device as described in B26, described device further include:
Check code module, for downloading the corresponding first version of the newer file of needs in first download module After file, the check code of the first version file of download is obtained;
First preserving module, the check code of the first version file for the download in acquisition are configured with first upgrading When corresponding check code in file is consistent, the first version file of download is preserved;Otherwise, the first edition of download is deleted herein Part.
B29, the device as described in B26, first download module, including:
Second acquisition module, for when there is the newer file of needs, being obtained from first upgrading configuration The download address for needing the corresponding first version file of newer file;
Second download module is used for the download address of the first version file according to acquisition, described in server end download First version file.
B30, the device as described in B19, described device further include:
Second preserving module, for first download module from server end download the first version file it Afterwards, it preserves and downloads first version file;
Establish module, for establishing local profile, by the version number of the first version file of download, storing path and Check code and version number, storing path and the check code for needing newer file are stored in the local profile In.
B31, the device as described in B30, described device further include:
Read module, for after establishing local profile, being closed in the software to be upgraded in the module of establishing After closing, the local profile is being read from the background;
Comparison module, the version number for the first version file in the local profile and corresponding needs The version number of newer file;
5th determining module, for the version number in the first version file higher than the corresponding newer file of needs When version number, first upgraded module is executed.
B32, the device as described in B31,
First upgraded module is specifically used for obtaining the first edition by the storing path of the first version file This document, and according to the corresponding storing path for needing newer file is replaced pair on backstage using the first edition obtained herein That answers wants newer file, to complete the upgrading of the software to be upgraded.
B33, the device as described in B19, first determining module, including:
Third acquisition module, for obtaining upgrading configuration;
Parsing module obtains upgrading configuration information for parsing the upgrading configuration;
6th determining module, for determining that the upgrading configuration is first liter according to the upgrading configuration information Grade configuration file, or, being the second upgrading configuration;
Wherein,
When the upgrading configuration information is the fileinfo to match with the partial document in the software to be upgraded When, determine that the upgrading configuration is the first upgrading configuration;
When the upgrading configuration information is that the installation kit to match with the upgrade installation package of the software to be upgraded is believed When breath, determine that the upgrading configuration is the second upgrading configuration.
B34, the device as described in B33, described device further include:
7th determining module, when for determining that the upgrading configuration is the second upgrading configuration, according to described Two upgrading configurations determine whether the software to be upgraded is to need to upgrade;
Third download module is downloaded and is preserved described to be upgraded soft when for determining that the software to be upgraded needs upgrading The corresponding upgrade installation package of part;
Second upgraded module installs highest version software for running the upgrade installation package, soft using the highest version of installation Part replaces the software to be upgraded, to complete the upgrading of the software to be upgraded.
B35, the device as described in B33, described device further include:
Respond module, for before the third acquisition module obtains upgrading configuration, responding upgrade request;And When the upgrade request is the first upgrade request, the third acquisition module is executed;Wherein, the upgrade request includes:Root The first upgrade request determined according to acquiescence upgrading setting condition and the second upgrade request triggered by user's trigger action event;
4th acquisition module is asked for when the upgrade request is the second upgrade request, obtaining with second upgrading Seek the third upgrading configuration to match;
8th determining module, for according to the third upgrading configuration, determining whether the software to be upgraded needs Upgrading;
4th download module, for when determining that the software to be upgraded needs upgrading, downloading and preserving described to be upgraded The corresponding upgrade installation package of software;
Third upgraded module installs highest version software for running the upgrade installation package, soft using the highest version of installation Part replaces the software to be upgraded, to complete the upgrading of the software to be upgraded.
B36, the device as described in B19, described device further include:
Safety detection module, for downloading the corresponding first edition of the newer file of needs in first download module After this document, by calling third party's security application, safety detection is carried out to the first version file of the download;And institute When stating first version file and passing through safety detection, first upgraded module is executed.

Claims (34)

1. a kind of method of software upgrading, which is characterized in that including:
Determine that the upgrading configuration obtained is the first upgrading configuration;
According to first upgrading configuration, judge whether the partial document in software to be upgraded needs to update;Wherein, described Partial document includes:Non- installation procedure file in the software to be upgraded;First upgrading configuration includes:It is described The corresponding check code of partial document;
Newer file is needed if existing, downloads the corresponding first version file of the newer file of needs;Wherein, described The version number of first version file is higher than the corresponding version number for needing newer file in the software to be upgraded;
The newer file of needs is updated using the first version file of download, to complete the upgrading of the software to be upgraded;
It is described download described the step of needing newer file corresponding first version file after, the method further includes: By calling the check code and third party's security application, respectively to the first version file of the download carry out safety check and Safety detection;If the first version file is executed described using the first edition downloaded by safety check and safety detection The step of this document update is described to need newer file, upgrading to complete the software to be upgraded.
2. the method as described in claim 1, which is characterized in that described to update the needs using the first version file downloaded Newer file, to complete the upgrading of the software to be upgraded, including:
Back up the newer file of needs;
The newer file of needs is replaced using the first version file of download;
When institute's newer file in need is completed to replace in the software to be upgraded, determine that the software to be upgraded is completed to rise Grade;
When any one in the software to be upgraded needs newer file to replace failure, it is determined that the software liter to be upgraded Grade failure;And
By replaced to the first version file in the software to be upgraded using corresponding backup the newer file of needs into Row is replaced.
3. method as claimed in claim 2, which is characterized in that in the step of determination software upgrading to be upgraded fails Later, the method further includes:
Determine that corresponding first version file is non-matching version file;
Obtain and record the fileinfo of the non-matching version file;Wherein, the fileinfo of the non-matching version file Including:At least one of version number, title and the check code of the non-matching version file.
4. method as claimed in claim 3, which is characterized in that in the step of determination software upgrading to be upgraded fails Later, the method further includes:
Second edition file is determined according to the version number of the non-matching version file;Wherein, the version of the second edition file The version number of this number corresponding newer file of needs higher than in the software to be upgraded, and, the version of the second edition file This number version number for being higher or lower than the non-matching version file;
The second edition file is downloaded, and, update the newer file of needs using the second edition file.
5. method as claimed in claim 4, which is characterized in that update the needs using the second edition file described After the step of newer file, the method further includes:
If updating the newer file of needs using the second edition file, it is updated successfully, it is determined that the second edition File is fit version file;And
It obtains and records the corresponding fileinfo of the fit version file;Wherein, the fileinfo of the fit version file Including:At least one of version number, title and the check code of the fit version file.
6. method as claimed in claim 5, which is characterized in that in the step of determination software upgrading to be upgraded fails Later, the method further includes:
Establish and preserve the correspondence of the non-matching version file and the fit version file;
When it is the non-matching version file to determine the version file downloaded, according to the correspondence, described non-is downloaded With the corresponding fit version file of version file;And the newer file of needs is updated using the fit version file, with Complete the upgrading of the software to be upgraded.
7. method as claimed in claim 2, which is characterized in that the method further includes:
Record the replacement process replaced using the first version file downloaded corresponding to the newer Files step of needs In replacement information;
If the replacement information instruction replacement process Program is abnormal, and/or replacement process interrupts, and/or replacement operation is got over Power, then load and show the replacement information, to prompt the user whether to continue to execute the replacement process.
8. the method as described in claim 1, which is characterized in that further include in first upgrading configuration:The part All partial documents correspond in the version numbers of the corresponding all versions of file, download address and the software to be upgraded Old version range intervals.
9. method as claimed in claim 8, which is characterized in that it is described according to first upgrading configuration, judge to wait rising Whether the partial document in grade software needs to update, including:
Obtain the corresponding current version number of All Files in the software to be upgraded;
When the current version number of any file in the software to be upgraded is in the corresponding old version range of any file When in section, determine that any file is to need newer file;Otherwise, it determines any file is highest version text Part.
10. method as claimed in claim 8, which is characterized in that described need newer file corresponding the in described download After the step of one version file, the method further includes:
Obtain the check code for the first version file downloaded;
Check code when the first version file of the download of acquisition and corresponding check code one in first upgrading configuration When cause, the first version file of download is preserved;Otherwise, the first version file of download is deleted.
11. method as claimed in claim 8, which is characterized in that the download is described to need newer file corresponding first Version file, including:
The download of the corresponding first version file of the newer file of needs is obtained from first upgrading configuration Location;
According to the download address of the first version file of acquisition, the first version file is downloaded from server end.
12. method as claimed in claim 11, which is characterized in that download the first version file from server end described The step of after, the method further includes:
Preserve the first version file downloaded;And
Local profile is established, by version number, storing path and the check code of the first version file of download and the need Version number, storing path and the check code of newer file is wanted to be stored in the local profile.
13. method as claimed in claim 12, which is characterized in that after described the step of establishing local profile, institute The method of stating further includes:
After the software to be upgraded is closed, the local profile is being read from the background;
Compare the version number of the first version file in the local profile and the corresponding version for needing newer file Number;
If the version number of the first version file executes the use higher than the corresponding version number for needing newer file The step of first version file update of download is described to need newer file, upgrading to complete the software to be upgraded.
14. method as claimed in claim 13, which is characterized in that described using described in the first version file downloaded update Newer file is needed, to complete the upgrading of the software to be upgraded, including:
The first version file is obtained by the storing path of the first version file, and newer according to corresponding needs The storing path of file, backstage using the first edition of acquisition replace herein it is corresponding want newer file, to be waited for described in completion Upgrade the upgrading of software.
15. the method as described in claim 1, which is characterized in that the determining upgrading configuration obtained is the first upgrading Configuration file, including:
Obtain upgrading configuration;
It parses the upgrading configuration and obtains upgrading configuration information;
Determine that the upgrading configuration is the first upgrading configuration according to the upgrading configuration information, or, being second Upgrading configuration;
Wherein,
When the upgrading configuration information is the fileinfo to match with the partial document in the software to be upgraded, really The fixed upgrading configuration is the first upgrading configuration;
When the upgrading configuration information is the installation package informatin to match with the upgrade installation package of the software to be upgraded, Determine that the upgrading configuration is the second upgrading configuration.
16. method as claimed in claim 15, which is characterized in that the method further includes:
When it is the second upgrading configuration to determine the upgrading configuration,
According to second upgrading configuration, determine whether the software to be upgraded is to need to upgrade;
When determining that the software to be upgraded needs upgrading, downloads and preserve the corresponding upgrade installation package of the software to be upgraded;
The upgrade installation package installation highest version software is run, the software to be upgraded is replaced using the highest version software of installation, To complete the upgrading of the software to be upgraded.
17. method as claimed in claim 15, which is characterized in that before the acquisition upgrading configuration the step of, institute The method of stating further includes:
Respond upgrade request;Wherein, the upgrade request includes:The first upgrade request determined according to acquiescence upgrading setting condition With the second upgrade request triggered by user's trigger action event;
When the upgrade request is the first upgrade request, execute the acquisition upgrading configuration the step of;
When the upgrade request is the second upgrade request, obtains the third upgrading to match with second upgrade request and configure File;
According to the third upgrading configuration, determine whether the software to be upgraded needs to upgrade;
When determining that the software to be upgraded needs upgrading, downloads and preserve the corresponding upgrade installation package of the software to be upgraded;
The upgrade installation package installation highest version software is run, and described to be upgraded soft using the replacement of the highest version software of installation Part, to complete the upgrading of the software to be upgraded.
18. a kind of device of software upgrading, which is characterized in that including:
First determining module, for determining that the upgrading configuration obtained is the first upgrading configuration;
Judgment module, for according to first upgrading configuration, judging whether the partial document in software to be upgraded needs Update;Wherein, the partial document includes:Non- installation procedure file in the software to be upgraded;The first upgrading configuration File includes:The corresponding check code of the partial document;
First download module is used for when there is the newer file of needs, and download is described to need newer file corresponding first Version file;Wherein, the version number of the first version file is corresponding higher than in the software to be upgraded needs newer text The version number of part;
First upgraded module, for updating the newer file of needs using the first version file downloaded, described in completion The upgrading of software to be upgraded;
Described device further includes:Safety detection module, for downloading the newer file of needs in first download module After corresponding first version file, by calling the check code and third party's security application, respectively to the of the download One version file carries out safety check and safety detection;And pass through safety check and safety detection in the first version file When, execute first upgraded module.
19. device as claimed in claim 18, which is characterized in that first upgraded module, including:
Backup module, for backing up the newer file of needs;
Replacement module, for replacing the newer file of needs using the first version file downloaded;
Second determining module, for when institute's newer file in need is completed to replace in the software to be upgraded, determining institute It states software to be upgraded and completes upgrading;
Third determining module, for when any one needs newer file to replace failure in the software to be upgraded, determining The software upgrading failure to be upgraded;And it will replace to the first version file in the software to be upgraded using corresponding The newer file of needs of backup is replaced.
20. device as claimed in claim 19, which is characterized in that described device further includes:
Non-matching version file determining module, for determining that the software upgrading to be upgraded fails it in the third determining module Afterwards, determine that corresponding first version file is non-matching version file;
First fileinfo acquisition module, the fileinfo for obtaining and recording the non-matching version file;Wherein, described The fileinfo of non-matching version file includes:In the version number of the non-matching version file, title and check code at least It is a kind of.
21. device as claimed in claim 20, which is characterized in that described device further includes:
Second edition file determining module, for determining that the software upgrading to be upgraded fails it in the third determining module Afterwards, second edition file is determined according to the version number of the non-matching version file;Wherein, the version of the second edition file Number version number for needing newer file corresponding higher than in the software to be upgraded, and, the version of the second edition file Number be higher or lower than the non-matching version file version number;
Update module is downloaded, for downloading the second edition file, and, update the needs using the second edition file Newer file.
22. device as claimed in claim 21, which is characterized in that described device further includes:
Fit version file determining module, for updating the need using the second edition file in the download update module After wanting newer file, if updating the newer file of needs using the second edition file, it is updated successfully, it is determined that The second edition file is fit version file;And it obtains and records the corresponding fileinfo of the fit version file;Its In, the fileinfo of the fit version file includes:In the version number of the fit version file, title and check code extremely Few one kind.
23. device as claimed in claim 22, which is characterized in that described device further includes:
Relationship establishes module, after determining the software upgrading failure to be upgraded in the third determining module, establishes simultaneously Preserve the correspondence of the non-matching version file and the fit version file;
Update module, for when it is the non-matching version file to determine the version file downloaded, according to the correspondence, Download the corresponding fit version file of the non-matching version file;And update the needs more using the fit version file New file, to complete the upgrading of the software to be upgraded.
24. device as claimed in claim 19, which is characterized in that described device further includes:
Replacement information logging modle replaces the needs more for recording the replacement module using the first version file downloaded The replacement information in replacement process corresponding to new file;
Reminding module, for replacement information instruction replacement process Program is abnormal, and/or replacement process interrupts and/ Or replacement operation is more temporary, loads and show the replacement information, to prompt the user whether to continue to execute the replacement process.
25. device as claimed in claim 18, which is characterized in that further include in first upgrading configuration:The portion All partial documents pair in the version numbers of the corresponding all versions of single cent part, download address and the software to be upgraded The old version range intervals answered.
26. device as claimed in claim 25, which is characterized in that the judgment module, including:
First acquisition module, for obtaining the corresponding current version number of All Files in the software to be upgraded;
4th determining module, the current version number for any file in the software to be upgraded is in any file pair When in the old version range intervals answered, determine that any file is to need newer file;Otherwise, it determines any text Part is highest version file.
27. device as claimed in claim 25, which is characterized in that described device further includes:
Check code module, for downloading the corresponding first version file of the newer file of needs in first download module Later, the check code of the first version file of download is obtained;
First preserving module, check code and first upgrading configuration of the first version file for the download in acquisition In corresponding check code it is consistent when, preserve the first version file of download;Otherwise, the first version file of download is deleted.
28. device as claimed in claim 25, which is characterized in that first download module, including:
Second acquisition module, described in when there is the newer file of needs, being obtained from first upgrading configuration Need the download address of the corresponding first version file of newer file;
Second download module is used for the download address of the first version file according to acquisition, and described first is downloaded from server end Version file.
29. device as claimed in claim 18, which is characterized in that described device further includes:
Second preserving module, for after server end downloads the first version file, being protected in first download module It leaves and carries first version file;
Module is established, for establishing local profile, by version number, storing path and the verification of the first version file of download Code and version number, storing path and the check code for needing newer file are stored in the local profile.
30. device as claimed in claim 29, which is characterized in that described device further includes:
Read module, in the module of establishing after establishing local profile, after the software to be upgraded is closed, The local profile is being read from the background;
Comparison module, for the first version file in the local profile version number and corresponding need to update File version number;
5th determining module, for the version number in the first version file higher than the corresponding version for needing newer file Number when, execute first upgraded module.
31. device as claimed in claim 30, which is characterized in that
First upgraded module is specifically used for obtaining the first edition herein by the storing path of the first version file Part, and according to the corresponding storing path for needing newer file is replaced on backstage using the first edition of acquisition corresponding herein Newer file is wanted, to complete the upgrading of the software to be upgraded.
32. device as claimed in claim 18, which is characterized in that first determining module, including:
Third acquisition module, for obtaining upgrading configuration;
Parsing module obtains upgrading configuration information for parsing the upgrading configuration;
6th determining module, for determining that the upgrading configuration is that the first upgrading is matched according to the upgrading configuration information File is set, or, being the second upgrading configuration;
Wherein,
When the upgrading configuration information is the fileinfo to match with the partial document in the software to be upgraded, really The fixed upgrading configuration is the first upgrading configuration;
When the upgrading configuration information is the installation package informatin to match with the upgrade installation package of the software to be upgraded, Determine that the upgrading configuration is the second upgrading configuration.
33. device as claimed in claim 32, which is characterized in that described device further includes:
7th determining module, when for determining that the upgrading configuration is the second upgrading configuration, according to described second liter Grade configuration file, determines whether the software to be upgraded is to need to upgrade;
Third download module is downloaded when for determining that the software to be upgraded needs upgrading and preserves the software pair to be upgraded The upgrade installation package answered;
Second upgraded module is installed highest version software for running the upgrade installation package, is replaced using the highest version software of installation The software to be upgraded is changed, to complete the upgrading of the software to be upgraded.
34. device as claimed in claim 32, which is characterized in that described device further includes:
Respond module, for before the third acquisition module obtains upgrading configuration, responding upgrade request;And in institute When to state upgrade request be the first upgrade request, the third acquisition module is executed;Wherein, the upgrade request includes:According to silent Recognize upgrading setting condition the first upgrade request determined and the second upgrade request triggered by user's trigger action event;
4th acquisition module, for when the upgrade request is the second upgrade request, obtaining and the second upgrade request phase Matched third upgrading configuration;
8th determining module, for according to the third upgrading configuration, determining whether the software to be upgraded needs to upgrade;
4th download module, for when determining that the software to be upgraded needs upgrading, downloading and preserving the software to be upgraded Corresponding upgrade installation package;
Third upgraded module is installed highest version software for running the upgrade installation package, is replaced using the highest version software of installation The software to be upgraded is changed, to complete the upgrading of the software to be upgraded.
CN201410384203.5A 2014-08-06 2014-08-06 A kind of method and apparatus of software upgrading Active CN104156244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410384203.5A CN104156244B (en) 2014-08-06 2014-08-06 A kind of method and apparatus of software upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410384203.5A CN104156244B (en) 2014-08-06 2014-08-06 A kind of method and apparatus of software upgrading

Publications (2)

Publication Number Publication Date
CN104156244A CN104156244A (en) 2014-11-19
CN104156244B true CN104156244B (en) 2018-09-04

Family

ID=51881751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410384203.5A Active CN104156244B (en) 2014-08-06 2014-08-06 A kind of method and apparatus of software upgrading

Country Status (1)

Country Link
CN (1) CN104156244B (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155651B (en) * 2015-03-31 2019-03-01 广州四三九九信息科技有限公司 The automation publication of application version and the method and system of update
CN106325898B (en) * 2015-06-23 2020-04-24 腾讯科技(深圳)有限公司 Software upgrading method and system
DE102015216265A1 (en) * 2015-08-26 2017-03-02 Robert Bosch Gmbh Method and subsystem for installing a software update in a vehicle
CN105204909A (en) * 2015-10-12 2015-12-30 Tcl集团股份有限公司 Method and system for upgrading strongly correlated apks based on mobile terminal
CN105653340A (en) * 2015-12-31 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Parameter upgrading method, device and electronic equipment
CN105975296A (en) * 2016-04-26 2016-09-28 百度在线网络技术(北京)有限公司 Mobile application upgrading method and device
CN106126285A (en) * 2016-06-22 2016-11-16 天维尔信息科技股份有限公司 A kind of method for upgrading software and terminal
CN107783777A (en) * 2016-08-29 2018-03-09 深圳市中兴微电子技术有限公司 A kind of upgrade method, equipment and the system of vehicle-mounted integral machine
CN108664255B (en) * 2017-03-27 2023-04-11 深圳市中兴通讯技术服务有限责任公司 Software upgrading method and device
CN108958762A (en) * 2017-08-02 2018-12-07 北京视联动力国际信息技术有限公司 A kind of upgrade method and device of software
CN107391216A (en) * 2017-09-26 2017-11-24 郑州云海信息技术有限公司 A kind of method for upgrading software and device
CN107832068A (en) * 2017-10-27 2018-03-23 努比亚技术有限公司 A kind of application upgrade method, mobile terminal and computer-readable recording medium
CN108108181B (en) * 2017-12-14 2022-03-01 深圳市雷鸟网络传媒有限公司 Function updating method and device of application program and computer readable storage medium
CN108427571A (en) * 2018-02-07 2018-08-21 深圳市雁联计算***有限公司 A kind of dynamic link library update method and server
CN109086065A (en) * 2018-08-16 2018-12-25 深圳市元征科技股份有限公司 A kind of method for upgrading software, system and terminal device
CN109240724A (en) * 2018-09-12 2019-01-18 京信通信***(中国)有限公司 A kind of cascade device upgrade method and equipment
CN109558151A (en) * 2018-10-12 2019-04-02 上海金大师网络科技有限公司 Oftware updating method and system
CN111252014A (en) * 2018-11-30 2020-06-09 长城汽车股份有限公司 Power mode switching control method and system
CN110471689A (en) * 2019-08-22 2019-11-19 北京元安物联技术有限公司 A kind of application program updating method and device
CN111124465B (en) * 2019-11-28 2023-06-20 武汉虹信技术服务有限责任公司 Cross-network C/S program remote upgrading method and system
CN111614743B (en) * 2020-05-14 2021-08-17 深圳华锐金融技术股份有限公司 File detection method and device, computer equipment and storage medium
CN111736863A (en) * 2020-05-22 2020-10-02 深圳市鸿合创新信息技术有限责任公司 Software upgrading method and device and electronic equipment
CN112015450B (en) * 2020-08-25 2024-01-19 深圳Tcl新技术有限公司 Method, device and storage medium for loading intelligent device control page
CN113064611B (en) * 2021-03-16 2024-02-02 太仓市同维电子有限公司 Method for realizing data analysis software upgrading aiming at wireless equipment and updating method thereof
JP2022175440A (en) * 2021-05-13 2022-11-25 トヨタ自動車株式会社 Center, update control method, update control program, and ota master
CN114449554B (en) * 2022-01-28 2024-01-19 深圳Tcl新技术有限公司 Equipment upgrading method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797327A (en) * 2004-12-20 2006-07-05 上海贝尔阿尔卡特股份有限公司 Method for selecting software in multiple versions, and selection device
CN101017435A (en) * 2006-04-14 2007-08-15 北京瑞星国际软件有限公司 Method and apparatus used for upgrading software
CN101739278A (en) * 2009-12-17 2010-06-16 中国电力科学研究院 Enterprise-level application software updating method and system
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797327A (en) * 2004-12-20 2006-07-05 上海贝尔阿尔卡特股份有限公司 Method for selecting software in multiple versions, and selection device
CN101017435A (en) * 2006-04-14 2007-08-15 北京瑞星国际软件有限公司 Method and apparatus used for upgrading software
CN101739278A (en) * 2009-12-17 2010-06-16 中国电力科学研究院 Enterprise-level application software updating method and system
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade

Also Published As

Publication number Publication date
CN104156244A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104156244B (en) A kind of method and apparatus of software upgrading
US10534701B1 (en) API driven continuous testing systems for testing disparate software
US9940225B2 (en) Automated error checking system for a software application and method therefor
US7577872B2 (en) Dynamic system diagnosis
US8954949B2 (en) Smart patch delivery system
US20150331779A1 (en) Framework to accommodate test plan changes without affecting or interrupting test execution
EP3370372B1 (en) System and method for testing a device using a light weight device validation protocol
CN103034512A (en) Method and device for updating programs
CN103761612B (en) Project release method and system
CN106980565B (en) Upgrading process monitoring method and device
CN106886437B (en) Application program updating method and device
CN104504060A (en) File downloading method in browser, browser client side and device
CN103677898A (en) Method for checking loaded extension and/or plug-in on server side and server
US10824541B1 (en) System and method for test data fabrication
CN106941672A (en) The method and device of application software abnormality processing
CN105204916A (en) Environment variable-based project process operation method and device
CN110888801A (en) Software program testing method and device, storage medium and electronic equipment
CN104360952A (en) Software test system and software test method
CN104346206A (en) Method and system for recovering installation of unloaded software
CN109710324A (en) Processing method and processing device that blue screen is shown, storage medium, terminal
CN105117499A (en) File display method and device based on cloud disk
US11573780B2 (en) Automated generation of status chains for software updates
CN114915554A (en) Remote upgrading method and device, computer equipment and storage medium
CN107590064A (en) A kind of application upgrade method of testing, device and system
CN104484176B (en) A kind of Android system window object acquisition methods and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220711

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co., Ltd

TR01 Transfer of patent right