Summary of the invention
In order to solve patch, to be mounted to power low, can not in time, effectively correct program error, reduces or eliminates security risk or improve the technical matters of the utilization ratio of institute's update routine, and we provide a kind of patch installation method and system.
Patch installation method of the present invention comprises the following steps: from patch installation kit, parse patch file; According to predetermined policy, judge whether patch file is suitable for installing; And when determining patch file and be suitable for installing, patch file is installed.
Wherein, patch file is stored to the patch database arranging in server, when client need to be used patch file, from patch database, extracts needed patch file.
The method also comprises: all or part of patch file and predetermined policy are carried out to combination, generate new patch installation kit.
Wherein, new patch installation kit is ignored leak test-based examination condition and the patch installation kit dependence testing conditions of former patch installation kit.
Wherein, patch file being installed comprises: directly insert, replace patch file and/or upgrade environmental variance.
Wherein, in patch installation kit, comprise patch mounting condition, and parsing comprises the patch mounting condition abandoning in patch installation kit.
Wherein, the generating mode of predetermined policy comprises: patch mounting condition is carried out to all or part of modification; Patch mounting condition is supplemented, upgraded; Patch mounting condition is carried out to part deletion.
Wherein, predetermined policy comprises one of following condition or its combination in any: when find the version of the program of leak or assembly and/or relevant program or assembly do not have institute in patch mounting condition for the version of object when new, judge that patch file is suitable for installation; Maybe when finding that the program of leak or assembly and/or relevant program or assembly exist the dangerous or unsettled danger of system operation, and patch file is when can eliminate danger, and judges that patch file is suitable for installing; When finding that the program of leak or assembly and/or relevant program or assembly are to system security of operation or stable irrelevant, and when patch file not being installed not affecting other patch files and install, judge that patch file is unsuitable for installing; When finding that the version after the version of the program of leak or assembly and/or relevant program or assembly is installed with patch installation kit is identical, but while still there is the recoverable leak of patch file, judge that patch file is suitable for installation.
Wherein, find that the program of leak or assembly and/or relevant program or the version of assembly determine in the following manner: check the version information in version number, filename and/or registration table.
Wherein, patch mounting condition is carried out to all or part of modification and comprises: by patch mounting condition for the highest version object as a comparison of reparation object, lower than the version of comparison other, be suitable for installing patch file; Patch mounting condition is supplemented, upgrades and comprise: available patch file is carried out to the reparation object not increasing in predetermined policy for the object of repairing in leak reparation and patch mounting condition, and the reparation object of increase is suitable for installing patch file.Patch mounting condition is carried out to part to be deleted and to comprise: will in patch mounting condition, limit that patch file is installed and patch file can be repaired the condition of corresponding leak and deletes.
In addition, also provide a kind of patch installation system, having comprised: parsing module, for parsing patch file from patch installation kit; Determination module, for judging according to predetermined policy whether patch file is suitable for installing; And installation module, for when determining patch file and be suitable for installing, patch file is installed.
Wherein, this system also comprises: access module, the patch database arranging for patch file being stored to server extracts needed patch file when client need to be used patch file from patch database.
Wherein, also comprise: generation module, for all or part of patch file and predetermined policy are carried out to combination, generates new patch installation kit.
Wherein, new patch installation kit is ignored leak test-based examination condition and the patch installation kit dependence testing conditions of former patch installation kit.
Wherein, installation module installation patch file comprises: directly insert, replace patch file and/or upgrade environmental variance.
Wherein, in patch installation kit, comprise patch mounting condition, and parsing comprises the patch mounting condition abandoning in patch installation kit.
Wherein, the generating mode of predetermined policy comprises: patch mounting condition is carried out to all or part of modification; Patch mounting condition is supplemented, upgraded; Or patch mounting condition is carried out to part deletion.
Wherein, predetermined policy comprises one of following condition or its combination in any: when the version of program or assembly and/or relevant program or assembly do not have in patch mounting condition for the version of object when new, judge that patch file is suitable for installing; When finding that the program of leak or assembly and/or relevant program or assembly exist the dangerous or unsettled danger of system operation, and patch file is when can eliminate danger, and judges that patch file is suitable for installing; When finding that the program of leak or assembly and/or relevant program or assembly are to system security of operation or stable irrelevant, and when patch file not being installed not affecting other patch files and install, judge that patch file is unsuitable for installing; Maybe when finding that the version after the version of the program of leak or assembly and/or relevant program or assembly is installed with patch installation kit is identical, but while still there is the recoverable leak of patch file, judge that patch file is suitable for installation.
Wherein, find that the program of leak or assembly and/or relevant program or the version of assembly determine in the following manner: check the version information in version number, filename and/or registration table.
Wherein, patch mounting condition is carried out to all or part of modification and comprises: by patch mounting condition for the highest version object as a comparison of reparation object, lower than the version of comparison other, be suitable for installing patch file; Patch mounting condition is supplemented, upgrades and comprise: available patch file is carried out to the reparation object not increasing in predetermined policy for the object of repairing in leak reparation and patch mounting condition, and the reparation object of increase is suitable for installing patch file; Patch mounting condition is carried out to part to be deleted and to comprise: will in patch mounting condition, limit that patch file is installed and patch file can be repaired the condition of corresponding leak and deletes.
By patch installation kit being resolved after issue patch installation kit, obtain the patch file for patching bugs, that recycling obtains by the optimization to former patch mounting condition or judge by the predetermined policy that patch file and leak independent analysis are obtained whether user is suitable for installing patch file, thereby improve patch, be mounted to power, also in time, effectively corrected program error, reduce or eliminate security risk or improved the utilization ratio of institute's update routine.And, partly from instructions, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in the instructions write, claims and accompanying drawing.
Embodiment
Main thought of the present invention is, directly do not apply patch installation kit, but first the patch installation kit providing is resolved, extract the part for ROMPaq, patching bugs wherein, decision condition is set voluntarily again, for all users that use this patch installation kit to repair corresponding leak or complete upgrading carry out software upgrading.
Below in conjunction with accompanying drawing, describe embodiments of the invention in detail.
Fig. 2 shows the process flow diagram of patch installation method according to an exemplary embodiment of the present invention.As shown in Figure 1, show a kind of patch installation method, comprise the following steps: S202 parses patch file from patch installation kit; S204, judges according to predetermined policy whether patch file is suitable for installing; And S206, when determining patch file and be suitable for installing, patch file is installed.
Preferably, patch file is stored to the patch database arranging in server, when client need to be used patch file, from patch database, extracts needed patch file.Wherein, patch database is arranged on server, the patch file that all parsings are obtained is kept at respectively in patch database, connection server obtain corresponding patch file and install to local from patch database at client scan and while confirming to install certain or some patch files.
Preferably, the method also comprises: all or part of patch file and predetermined policy are carried out to combination, generate new patch installation kit.Wherein, all or part of combination can be understood as: all patch file generates new patch installation kit with predetermined policy and can solve the identical problem of original patch installation kit, just patch mounting condition has had change, by original patch mounting condition is changed to, subscribe strategy, can make all available these patch installation kits repair corresponding leak or the user that completes upgrading installs; Part patch file and predetermined policy combination are because under specific circumstances, part patch file just can complete the identical task of original patch installation kit, in other situation, part patch file combination in different patch installation kits, can complete the task different from single patch installation kit, the mode of part patch file and predetermined policy combination can reduce the data volume of user's download patches installation kit like this, also makes patch installation kit generate more flexible.
Preferably, new patch installation kit is ignored leak test-based examination condition and the patch installation kit dependence testing conditions of former patch installation kit.That is, the new patch installation kit of generation is not subject to the restriction of leak test-based examination condition and patch installation kit dependence testing conditions in former installation kit, can be more loosely for be mounted to for.
Preferably, patch file being installed comprises: directly insert, replace patch file and/or upgrade environmental variance.Certainly, if also have other modes to be used for installing patch file at present or in the future, " installation patch file " of the present invention is not limited to and directly copies corresponding file and/or upgrade environmental variance.
Preferably, in patch installation kit, comprise patch mounting condition, and parsing comprises the patch mounting condition abandoning in patch installation kit.
Preferably, the generating mode of predetermined policy comprises: patch mounting condition is carried out to all or part of modification; Patch mounting condition is supplemented, upgraded; Patch mounting condition is carried out to part deletion.
Preferably, predetermined policy comprises one of following condition or its combination in any:
When the version of program or assembly and/or relevant program or assembly do not have in patch mounting condition for the version of object when new, judge that patch file is suitable for installing, for example, if a program version is the version on January 1st, 2011, corresponding version number is v1.1, it does not have the version of the patch mounting object defined in patch mounting condition new, think that this patch file is suitable for installing, this version new and old for date issued, if version number's order and date are corresponding, also can judge the new and old of each version with version number;
When finding that the program of leak or assembly and/or relevant program or assembly exist the dangerous or unsettled danger of system operation, and when patch file can eliminate danger, judge that patch file is suitable for installing, for example, patch file can be repaired some up-to-date leaks that may cause system operation risk, and version corresponding to these leaks do not write out in original patch mounting condition, at this moment still judge that this patch file is suitable for installing;
When finding that the program of leak or assembly and/or relevant program or assembly are to system security of operation or stable irrelevant, and when patch file not being installed not affecting other patch files and install, judge that patch file is unsuitable for installing, for example, the patch that office is helped, do not affect safety and stability, so can not install, certainly, here said " be unsuitable for install " be that angle from economizing on resources is considered, be defined as to install, if user needs, the patch of for example foregoing help can be installed completely; Or
When finding that the version of the program of leak or assembly and/or relevant program or assembly is identical with the version after the installation of patch installation kit, but while still there is the recoverable leak of patch file, judge that patch file is suitable for installing, for example, if a program is found leak, even if the version after its version is installed with patch installation kit is identical, we also still can judge that this patch file is suitable for installing, this be mainly the patch file installed for (but being not limited to) go to pot or repair after again produce the situation that identical leak need to be reinstalled because of other problem.
Preferably, find that the program of leak or assembly and/or relevant program or the version of assembly determine in the following manner: check the version information in version number, filename and/or registration table.Wherein, by the registration that gives out information of Microsoft's patch, form registration form, registration form be kept at client terminal local or server all can, and new and old by checking that the mode of registration record is compared version.
Wherein, patch mounting condition is carried out to all or part of modification and comprises: by patch mounting condition for the latest edition object as a comparison of reparation object, early than the version of comparison other, be suitable for installing patch file; Patch mounting condition is supplemented, upgrades and comprise: available patch file is carried out to the reparation object not increasing in predetermined policy for the object of repairing in leak reparation and patch mounting condition, and the reparation object of increase is suitable for installing patch file.For example, patch installation kit for object may be only existing before date of issue, but the leak that again occurs that available patch file is repaired may occur after date of issue at patch, and therefore available the present invention upgrades and supplements the patch mounting condition in former patch installation kit.Patch mounting condition is carried out to part to be deleted and to comprise: will in patch mounting condition, limit that patch file is installed and patch file can be repaired the condition of corresponding leak and deletes.For example, in patch mounting condition must there is some function (such as helping) in limiting program software, or do not have some function, and these functions do not affect patch file to repairing the reparation of object, now this condition can be deleted.
For predetermined policy, only lift as next example describes, certain, those skilled in the art are not deviating under prerequisite of the present invention, can carry out various improvement.
For example, a certain position (or multidigit) that we can arrange version number is voluntarily that 1 to 7 section is decision condition, when the version number of the program that need to upgrade as user meets this decision condition, can realize patch and install.When Er Danggai version number does not meet this decision condition, can not carry out patch installation.
Terrifically, in order to use, this patch installation kit can be installed per family, we can not arrange decision condition, and in other words, we can skip determination step, directly the patch content information extracting from this patch installation kit are mounted to the program that needs patch.Thereby making any use can in time, effectively complete per family patch installs.
In addition, also provide a kind of patch installation system 300, having comprised: parsing module 302, for parsing patch file from patch installation kit; Determination module 304, for judging according to predetermined policy whether patch file is suitable for installing; And installation module 306, for when determining patch file and be suitable for installing, patch file is installed.
Preferably, this system also comprises: access module, the patch database arranging for patch file being stored to server extracts needed patch file when client need to be used patch file from patch database.
Preferably, also comprise: generation module, for all or part of patch file and predetermined policy are carried out to combination, generates new patch installation kit.
Preferably, new patch installation kit is ignored leak test-based examination condition and the patch installation kit dependence testing conditions of former patch installation kit.
Preferably, installation module installation patch file comprises: directly insert, replace patch file and/or upgrade environmental variance.
Preferably, in patch installation kit, comprise patch mounting condition, and parsing comprises the patch mounting condition abandoning in patch installation kit.
Preferably, the generating mode of predetermined policy comprises: patch mounting condition is carried out to all or part of modification; Patch mounting condition is supplemented, upgraded; Or patch mounting condition is carried out to part deletion.
Preferably, predetermined policy comprises one of following condition or its combination in any: when the version of program or assembly and/or relevant program or assembly do not have in patch mounting condition for the version of object when new, judge that patch file is suitable for installing; When finding that the program of leak or assembly and/or relevant program or assembly exist the dangerous or unsettled danger of system operation, and patch file is when can eliminate danger, and judges that patch file is suitable for installing; When finding that the program of leak or assembly and/or relevant program or assembly are to system security of operation or stable irrelevant, and when patch file not being installed not affecting other patch files and install, judge that patch file is unsuitable for installing; Maybe when finding that the version after the version of the program of leak or assembly and/or relevant program or assembly is installed with patch installation kit is identical, but while still there is the recoverable leak of patch file, judge that patch file is suitable for installation.
Preferably, find that the program of leak or assembly and/or relevant program or the version of assembly determine in the following manner: check the version information in version number, filename and/or registration table.
Preferably, patch mounting condition is carried out to all or part of modification and comprises: by patch mounting condition for the highest version object as a comparison of reparation object, lower than the version of comparison other, be suitable for installing patch file; Patch mounting condition is supplemented, upgrades and comprise: available patch file is carried out to the reparation object not increasing in predetermined policy for the object of repairing in leak reparation and patch mounting condition, and the reparation object of increase is suitable for installing patch file; Patch mounting condition is carried out to part to be deleted and to comprise: will in patch mounting condition, limit that patch file is installed and patch file can be repaired the condition of corresponding leak and deletes.
The decision condition that it should be pointed out that this determination module 304 can arrange arbitrarily, and terrifically, when decision condition is for arbitrarily with can install this patch per family time, determination module 304 is in fact a function of skipping determination module.
By before application patch installation kit, patch installation kit being resolved, user can utilize the method and system that the present invention proposes in time, effectively to correct program error, reduce or eliminate security risk or improve the utilization ratio of institute's update routine.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.