Summary of the invention
In view of the above problems, it is proposed that the present invention overcomes the problems referred to above or the method for installation patch solved the problem at least in part and the corresponding device installing patch to provide a kind of.
According to an aspect of the present invention, it provides a kind of method installing patch, comprising:
Obtain the patch to be installed compression bag meeting presetting rule;
Relevant information according to described patch to be installed compression bag sets up folder;
Described patch to be installed is compressed bag and unzips in described folder by the solution pressure program in calling system;
Described folder is performed installation operation by the Package Manager program in calling system, to realize the installation to patch.
Can selection of land, described in call separate pressure program by described patch to be installed compress bag unzip to described folder after also comprise:
Obtain the number of the Cab bag that described folder comprises;
Described calling program package manager program, and described routine package supervisory routine is pointed to described folder, to realize the installation to patch, comprising:
If the number of the Cab bag that described folder comprises is only one, call described Package Manager program, and described routine package supervisory routine is pointed to described folder, to realize the installation to patch.
Can selection of land, also comprise:
If the number of the Cab bag that described folder comprises is at least two, then calls Windows and upgrade independent installation sequence to the compression bag execution installation operation of described patch to be installed, to realize the installation to patch.
Can selection of land, also comprise:
If described in call separate pressure program by described patch to be installed compression wrap unzip in described folder procedure failure, then call Windows upgrade independent installation sequence to described patch to be installed compression bag perform installation operation, to realize the installation to patch.
Can selection of land, also comprise:
If described folder is performed the procedure failure of installation operation by described calling program package manager program, then call Windows and upgrade independent installation sequence to the compression bag execution installation operation of described patch to be installed, to realize the installation to patch.
Can selection of land, the described relevant information according to described patch to be installed compression bag is set up folder and is comprised:
Preservation position and filename according to described patch to be installed compression bag set up folder.
Can selection of land, described acquisition meet presetting rule patch to be installed compression handbag draw together:
Obtain the patch to be installed compression bag with specific suffix name;
Or,
Obtain the patch to be installed compression bag that need to perform search step in conventional installation process in current computer.
According to a further aspect in the invention, it provides a kind of device installing patch, comprising:
Compression bag acquiring unit, for obtaining the patch to be installed compression bag meeting presetting rule;
Unit set up by folder, for setting up folder according to the relevant information of described patch to be installed compression bag;
First program calls unit, for the solution pressure program in calling system, described patch to be installed is compressed bag and unzips in described folder;
2nd program calls unit, for the Package Manager program in calling system, described folder is performed installation operation, to realize the installation to patch.
Can selection of land, also comprise:
Number acquiring unit, separates pressure program compressed by described patch to be installed after bag unzips to described folder for described calling, obtain the number of the Cab bag that described folder comprises;
Described 2nd program call unit specifically for:
If the number of the Cab bag that described folder comprises is only one, call described Package Manager program, and described routine package supervisory routine is pointed to described folder, to realize the installation to patch.
Can selection of land, also comprise:
3rd program calls unit, if the number of the Cab bag comprised for described folder is at least two, then calls Windows and upgrades independent installation sequence described patch to be installed compression bag is performed installation operation, to realize the installation to patch.
Can selection of land, also comprise:
Fourth program calls unit, if for described in call separate pressure program by described patch to be installed compression wrap unzip in described folder procedure failure, then call Windows and upgrade independent installation sequence to the compression bag execution installation operation of described patch to be installed, to realize the installation to patch.
Can selection of land, also comprise:
5th program calls unit, if described folder being performed for described calling program package manager program the procedure failure of installation operation, then call Windows and upgrade independent installation sequence to the compression bag execution installation operation of described patch to be installed, to realize the installation to patch.
Can selection of land, described folder set up unit specifically for:
Preservation position and filename according to described patch to be installed compression bag set up folder.
Can selection of land, described compression bag acquiring unit comprises:
First acquisition subelement, for obtaining the patch to be installed compression bag with specific suffix name;
Or,
2nd acquisition subelement, for obtaining the patch to be installed compression bag that need to perform search step in conventional installation process in current computer.
Patch installation according to the present invention and device, when the patch bags such as msu being carried out installation and operate, this program of wusa.exe can be called in a conventional manner install, but the Package Manager program being undertaken separating in pressure, again calling system by the solution pressure program performing to create in folder, calling system performs installation, the installation to patch bag is realized with this, in this course owing to having skipped unnecessary processes such as " performing search in current computer ", therefore so that the speed installing patch gets a promotion. Further, prove through practical test, skip unnecessary processes such as " search upgrade on current computer " and the performance of operating system or patch bag effect can't be made to be affected.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to the technique means of the present invention can be better understood, and can be implemented according to the content of specification sheets, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings more in detail. Although show exemplary embodiment of the present disclosure in accompanying drawing, it should be understood, however, that the embodiment that can realize the disclosure in a variety of manners and should do not set forth here limits. On the contrary, it is provided that these embodiments are to can more thoroughly understand the disclosure, and can pass on complete for the scope of the present disclosure to the technician of this area.
See Fig. 1, the method for the installation patch that the embodiment of the present invention provides can comprise the following steps:
S101: obtain the patch to be installed compression bag meeting presetting rule;
In actual applications, generally only the patch of some specific types just there will be the long problem that expends time in when mounted. such as, when the installation of the patch bag by performing suffix msu by name, under the installation mode of routine, special program wusa.exe can be called patch bag is performed installation operation, but, under this kind of conventional installation mode, a process of " just search upgrades on this computer " is had in the early stage installed, this process generally can take a long time, reason may be relevant with environment of system with current network, and which results in the whole installation process of patch to be taken a long time. wherein, wusa.exe is the vital document left in Windows system file folder, automatically create in installing operating system process under normal circumstances, therefore, in the normal manner, general is all use wusa.exe to be installed by msu patch bag, and the process of " just search upgrades on this computer " is initiated to perform by wusa.exe, its use the WindowsUpdate metadata removal search in msu bag can renewal, object is generally whether checking patch can or need to be mounted, therefore, general msu patch wraps in the time expended in installation process all can be long.
But, if common patch, the time expended needed for conventional installation process possibility can not be too long, processes in a conventional manner. In embodiments of the present invention, it is possible to pre-set some rules, therefore, need the mode provided according to the embodiment of the present invention to carry out the patch installed for selecting. Wherein, concrete rule it may be that judge whether patch to be installed has preset suffix name, such as, aforementioned msu etc. During specific implementation, it is possible to a preset suffix name list, judges whether the suffix name of current patch to be installed occurs in the list. Or, concrete rule can also be, judge whether patch to be installed need to perform search step in conventional installation process in current computer, during specific implementation, patch the package list that this kind need to perform search step in conventional installation process in current computer can be pre-set, judge whether patch to be installed occurs in the list, etc.
S102: set up folder according to the relevant information of described patch to be installed compression bag;
After determining and needing to carry out, according to the method for the embodiment of the present invention, the patch bag installed, so that it may to perform concrete installation work. In installation process, it is necessary to carry out patch bag to be installed separating pressure, for this reason, first need to create a folder, the result after separating pressure to be saved in this folder. Wherein, specifically when creating folder, it is possible to set up according to the preservation position of patch to be installed compression bag and filename. Such as, in Windows7 operating system, patch bag to be installed is " Windows6.1-KB2564958-x86.msu ", the position at this patch package file place is: C: Windows6.1-KB2564958-x86.msu, then can create following folder: " C: Windows6.1-KB2564958-x86 ". Visible, the folder of this new establishment and patch package file to be installed are under same catalogue, and the filename of the title of folder and patch bag to be installed (not comprising suffix name) is identical. In actual applications, it is possible to use other mode creates folder, certainly, the title of folder is also not necessarily identical with the filename of patch bag, describes in detail no longer one by one here.
S103: described patch to be installed is compressed bag and unzips in described folder by the solution pressure program in calling system;
After creating folder, so that it may with patch bag to be installed is carried out separate press operation, by separate pressure result be saved in previous step create folder in. When separating pressure, it is possible to directly the solution pressure program in calling system carries out. Wherein, during specific implementation, separating pressure program can be expand.exe. This solution pressure program can be called by the mode of cmd order row, such as, when carrying out the patch bag in previous example separating pressure, then can open cmd.exe, then input and perform to issue orders:
Expand-F:* " C: Windows6.1-KB2564958-x86.msu " " C: Windows6.1-KB2564958-x86 "
Perform above order, so that it may to decompress under " C: Windows6.1-KB2564958-x86 " this folder by " C: Windows6.1-KB2564958-x86.msu " this compression bag.
S104: described folder is performed installation operation by the Package Manager program in calling system, to realize the installation to patch.
After patch bag being unziped in a folder, so that it may with the Package Manager program in calling system, described folder is performed installation operation, so just can complete the installation to patch and operate. Wherein, in embodiments of the present invention, Package Manager program can refer to pkgmgr.exe program, this program be one for pacifying the routine package of loading, unloading, configuration and renewal rewards theory system function. Can install on off line object computer or renewal rewards theory system (such as WindowsVista) function routine package with the unmanned installation response file that participates in by service routine package manager. Therefore, in embodiments of the present invention, so that it may to use pkgmgr.exe program, to preserving, the folder understanding pressure result performs installation operation. During specific implementation, the mode of cmd order row can be used equally to call this pkgmgr.exe program. Still for previous example, when " C: Windows6.1-KB2564958-x86 " this folder being performed installation and operates, it is possible to open cmd.exe, then input and perform to issue orders:
Pkgmgr.exe/ip/m: " C: Windows6.1-KB2564958-x86 "
Perform after mentioned order, so that it may to complete the installation to " C: Windows6.1-KB2564958-x86.msu " this patch.
Visible, in embodiments of the present invention, when the patch bags such as msu being carried out installation and operate, this program of wusa.exe can be called in a conventional manner install, but the Package Manager program being undertaken separating in pressure, again calling system by the solution pressure program performing to create in folder, calling system performs installation, the installation to patch bag is realized with this, in this course owing to having skipped unnecessary processes such as " performing search in current computer ", therefore so that the speed installing patch gets a promotion. Further, prove through practical test, skip unnecessary processes such as " search upgrade on current computer " and the performance of operating system or patch bag effect can't be made to be affected.
It should be noted that, the patch installation that the embodiment of the present invention provides can combine with the product of the function such as leak reparation, this kind of leak repairs the vulnerability database file that product generally all can have oneself, substantially the whole patches required for enumerating user, each patch is also configured with scanning judgement condition by vulnerability database, when user runs leak reparation product, according to these conditions, this product just can judge that current user system environment is the need of this patch of installation. Therefore, be equivalent to performing before concrete installation operates just to verify whether or can needing to install certain patch.
Corresponding with the method for the installation patch that the embodiment of the present invention provides, the embodiment of the present invention additionally provides a kind of device installing patch, and see Fig. 2, this device can comprise:
Compression bag acquiring unit 201, for obtaining the patch to be installed compression bag meeting presetting rule;
Unit 202 set up by folder, for setting up folder according to the relevant information of described patch to be installed compression bag;
First program calls unit 203, for the solution pressure program in calling system, described patch to be installed is compressed bag and unzips in described folder;
2nd program calls unit 204, for the Package Manager program in calling system, described folder is performed installation operation, to realize the installation to patch.
During specific implementation, this device can also comprise:
Number acquiring unit, separates pressure program compressed by described patch to be installed after bag unzips to described folder for described calling, obtain the number of the Cab bag that described folder comprises;
Described 2nd program call unit 204 specifically for:
If the number of the Cab bag that described folder comprises is only one, call described Package Manager program, and described routine package supervisory routine is pointed to described folder, to realize the installation to patch.
In actual applications, this device can also comprise:
3rd program calls unit, if the number of the Cab bag comprised for described folder is at least two, then calls Windows and upgrades independent installation sequence described patch to be installed compression bag is performed installation operation, to realize the installation to patch.
Optionally, this device can also comprise:
Fourth program calls unit, if for described in call separate pressure program by described patch to be installed compression wrap unzip in described folder procedure failure, then call Windows and upgrade independent installation sequence to the compression bag execution installation operation of described patch to be installed, to realize the installation to patch.
In addition, this device can also comprise:
5th program calls unit, if described folder being performed for described calling program package manager program the procedure failure of installation operation, then call Windows and upgrade independent installation sequence to the compression bag execution installation operation of described patch to be installed, to realize the installation to patch.
Wherein, described folder is set up unit 201 and specifically be may be used for:
Preservation position and filename according to described patch to be installed compression bag set up folder.
Described compression bag acquiring unit can comprise:
First acquisition subelement, for obtaining the patch to be installed compression bag with specific suffix name;
Or,
2nd acquisition subelement, for obtaining the patch to be installed compression bag that need to perform search step in conventional installation process in current computer.
In embodiments of the present invention, when the patch bags such as msu being carried out installation and operate, this program of wusa.exe can be called in a conventional manner install, but the Package Manager program being undertaken separating in pressure, again calling system by the solution pressure program performing to create in folder, calling system performs installation, the installation to patch bag is realized with this, in this course owing to having skipped unnecessary processes such as " performing search in current computer ", therefore so that the speed installing patch gets a promotion. Further, prove through practical test, skip unnecessary processes such as " search upgrade on current computer " and the performance of operating system or patch bag effect can't be made to be affected.
Intrinsic not relevant to any certain computer, virtual system or other equipment with display at this algorithm provided. Various general-purpose system can also with use based on together with this teaching. According to description above, it is to construct the structure required by this type systematic is apparent. In addition, the present invention is not also for any certain programmed language. It should be appreciated that various programming language can be utilized to realize the content of the present invention described here, and the description done by language-specific above is the preferred forms in order to disclose the present invention.
In specification sheets mentioned herein, describe a large amount of detail. However, it is understood that embodiments of the invention can be put into practice when not having these details. In some instances, it is not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify the disclosure and help to understand in each inventive aspect, above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes. But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim. More properly saying, as reflected in claim book below, inventive aspect is all features less than disclosed single embodiment above. Therefore, the claim book following embodiment is thus incorporated to this embodiment clearly, and wherein each claim itself is as the independent embodiment of the present invention.
Those skilled in the art it can be appreciated that the module in the equipment in embodiment can be carried out adaptively change and they are arranged in one or more equipment different from this embodiment. Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule block or subelement or subgroup part can be put them in addition. Except at least some in such feature and/or process or unit mutually repels, it is possible to adopt any combination all processes or the unit of all features disclosed in this specification sheets (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment to be combined. Unless expressly stated otherwise, each feature disclosed in this specification sheets (comprising adjoint claim, summary and accompanying drawing) can by providing alternative features that is identical, equivalent or similar object to replace.
In addition, the technician of this area can understand, although embodiments more described herein comprise in other embodiment some included feature instead of further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and forms different embodiments. Such as, in the following claims, the one of any of claimed embodiment can use with arbitrary array mode.
Each parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more treater, or realizes with their combination. It will be understood by one skilled in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in patch erecting equipment according to embodiments of the present invention. Such as, the present invention can also be embodied as part or all the equipment for performing method as described herein or device program (computer program and computer program). The program of such the present invention of realization can store on a computer-readable medium, or can have the form of one or more signal. Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
Should it is to be noted that above-described embodiment the present invention will be described instead of limits the invention, and those skilled in the art can design alternative embodiment when not departing from the scope of claims. In the claims, it should not any reference symbol construction between bracket is become limitations on claims. Word " comprises " element or step not getting rid of and exist and do not arrange in the claims. Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element. The present invention can by means of including the hardware of some different elements and realize by means of the computer suitably programmed. In the unit claim listing some devices, some in these devices can be carry out particular embodiment by same hardware branch. Word first, second and third-class use do not represent any order. Can be title by these word explanations.
The application can be applied to computer system/server, and it can operate together with other universal or special computing system environment numerous or configuration. The example of well-known computing system, environment and/or configuration being suitable for using together with computer system/server includes but not limited to: Personal Computer system, server computer system, thin client, thick client computer, hand-held or laptop devices, system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC, small-size computer system, large computer system and comprise the distributed cloud computing technological accumulation and inheritance of above-mentioned any system, etc. Computer system/server can describe under the computer system performed by computer system can perform the general linguistic context of instruction (such as programmodule). Usually, programmodule can comprise routine, program, target routine, assembly, logic, data structure etc., and they perform specific task or realize specific abstract data type. Computer system/server can be implemented in distributed cloud computing environment, and in distributed cloud computing environment, task performs by by the remote processing devices of communication network links. In distributed cloud computing environment, programmodule can be positioned on the Local or Remote computing system storage media comprising storing device.