Summary of the invention
The technical problem to be solved in the present invention is to provide control method, device and the equipment that a kind of plug-in unit is installed.Can be implemented as application program Auto-mounting plug-in unit, simplify user operation, it is high that plug-in unit is mounted to power.
For solving the problems of the technologies described above, embodiments of the invention provide a kind of method of installing plug-in unit, comprising:
The application program obtaining current operation needs the plug-in unit installed;
Obtain the installation instruction of plug-in unit described in user installation;
According to described installation instruction, automatically control described application program and described plug-in unit is installed.
Wherein, the application program of described current operation comprises: the application program that the application program of terminate-and-stay-resident, display interface window application program over the display, current active window are corresponding or application program corresponding to cursor place place interfaces windows.
Wherein, the application program obtaining current operation needs the step of the plug-in unit installed to comprise:
Detect the application program of current operation, obtain a testing result;
According to described testing result, the application program obtaining current operation needs the plug-in unit installed.
Wherein, detect the application program of current operation, the step obtaining a testing result comprises:
By the application program that the process of monitoring tools or the current operation of direct-detection is corresponding, judge that described application program is the need of installation plug-in unit, if desired, then produce the testing result needing to install plug-in unit; If do not need, then produce the testing result not needing to install plug-in unit.
Wherein, described monitoring tools is: the application tool that monitoring process runs or can perform the hardware of an operation, and described operation represents that application program is in the state of current operation.
Wherein, comprise after producing the testing result not needing to install plug-in unit:
Travel through described application program installation directory or for described application program installs the installation record of plug-in unit, obtain a check result;
According to described check result, determine whether to need for described application program installs described plug-in unit again.
Wherein, according to described testing result, the application program obtaining current operation needs the step of the plug-in unit installed to comprise:
Install the testing result of plug-in unit as required, from the installation file of described application program or external server or External memory equipment, the application program obtaining current operation needs the plug-in unit installed.
Wherein, according to described installation instruction, the step that the described application program of automatic control installs described plug-in unit comprises:
According to described installation instruction, obtain the mounting means of described plug-in unit;
Automatically control described application program according to described mounting means and described plug-in unit is installed.
Wherein, according to described installation instruction, the step obtaining the mounting means of described plug-in unit comprises:
From the installation file of described plug-in unit or from cloud server or from the webserver, obtain the mounting means of described plug-in unit.
Wherein, described application program also comprises after installing described plug-in unit:
Obtain described application program installed plug-in unit plug-in unit name, each described application name of described plug-in unit, the upgrading mode of described plug-in unit of upgrading have been installed or have deleted the deletion mode of described plug-in unit;
Produce the catalogue comprising described plug-in unit name, each described application name, the upgrading mode of described plug-in unit and/or the deletion mode of described plug-in unit;
Described catalogue is supplied to user.
Wherein, described application program is Computer Browser, and the mounting means of described plug-in unit is: after the store path of described plug-in unit being combined to the installation path of described browser, obtains a plug-in unit installation path, runs the application program that described plug-in unit installation path is corresponding.
Embodiments of the invention provide a kind of device installing plug-in unit, comprising:
First acquisition module, the application program for obtaining current operation needs the plug-in unit installed;
Second acquisition module, for obtaining the installation instruction of plug-in unit described in user installation;
Plug-in unit installation module, for according to described installation instruction, automatically controls described application program and installs described plug-in unit.
Wherein, described first acquisition module comprises:
Detection sub-module, for detecting the application program of current operation, obtains a testing result;
First obtains submodule, for according to described testing result, obtains the plug-in unit of the application program needs installation of current operation.
Wherein, described plug-in unit installation module comprises:
Second obtains submodule, for according to described installation instruction, obtains the mounting means of described plug-in unit;
Submodule installed by plug-in unit, installs described plug-in unit for automatically controlling described application program according to described mounting means.
Embodiments of the invention also provide a kind of equipment, comprise device as above.
The beneficial effect of technique scheme of the present invention is as follows:
In such scheme, by detecting current running application, determine whether to need plug-in unit is installed, if desired install, confirm to start by user the described application program installing or automatically control current operation again and described plug-in unit is installed, thus needed for application program Auto-mounting plug-in unit, simplify user operation, it is high that plug-in unit is mounted to power.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
As shown in Figure 1, embodiments of the invention provide a kind of method of installing plug-in unit, comprising:
Step 11, the application program obtaining current operation needs the plug-in unit installed;
Step 12, obtains the installation instruction of plug-in unit described in user installation;
Step 13, according to described installation instruction, automatically controls described application program and installs described plug-in unit.
In this embodiment, the application program of current operation can be arbitrary money application program, as browser, Word, WPS, Photoshop, AdobeReader etc., application program needs the plug-in unit installed to comprise: any one plug-in unit being applicable to this application program, as realized the PowerWord dictionary plug-in unit of real time translation on a web browser, Photoshop realizes the plug-in unit etc. of filling effect of optimization.
In this embodiment, the application program of described current operation comprises but is not limited to: the application program that the application program of terminate-and-stay-resident, display interface window application program over the display, current active window are corresponding or application program corresponding to cursor place place interfaces windows.Plug-in unit installation system is by detecting current running application, determine that this application program is the need of installation plug-in unit, if desired install, reresent user and be confirmed whether to install by user, after obtaining user's instruction that Dingan County fills really, plug-in unit described in the card i/f Auto-mounting provided by the described application program of current operation, thus be application program Auto-mounting plug-in unit, simplify user operation, it is high that plug-in unit is mounted to power.
To the installation instruction of user described in step 12, after can referring to that user selects according to the close friend's prompting obtained, giving to install instruction, also can be arrange automatic command by user to have come.For the mode arranging automatic command, be exemplified below: be required to confirm the worry of multiple instruction for solving user in man-machine interaction, there is provided user that function is set, user can be set to automatically for needing the application program of plug-in unit to add plug-in unit and without the need to repeatedly confirming, obtain after this arranges instruction, plug-in unit installation system can automatically for user judges and install must or required plug-in unit, for user judges that function required under work at present is the need of installation plug-in unit, annoying users does not realize Auto-mounting, user can not feel pause and affect work at present.
In step 13, as specific embodiments of the invention, plug-in unit installation system, according to the interface of each application program and plug-in unit installation rule, completes the installation of plug-in unit to this application program.
In the second embodiment of the present invention, as shown in Figure 2, step 11 comprises further:
Step 111, detects the application program of current operation, obtains a testing result;
Step 112, according to described testing result, the application program obtaining current operation needs the plug-in unit installed;
Step 12 in the first embodiment shown in other steps with above-mentioned Fig. 1 is identical with step 13, do not repeat them here, in this embodiment, as detected the Computer Browser of current operation, the testing result of the relevant plug-in unit installation situation representing this browser can be obtained, according to the detection of the relevant plug-in unit installation situation of this browser, the plug-in unit list of comparison plug-in unit installation system, obtains the plug-in unit that this browser needs to install.
As shown in Figure 3, in the third embodiment of the present invention, above-mentioned steps 111 comprises:
Step 1110, by the application program that the process of monitoring tools or the current operation of direct-detection is corresponding, judges that described application program is the need of installation plug-in unit;
Step 1111, if desired, then produces the testing result needing to install plug-in unit;
Step 1112, if do not need, then produces the testing result not needing to install plug-in unit.
Wherein, described monitoring tools is: the application tool that monitoring process runs or can perform the hardware of an operation, and described operation represents that application program is in the state of current operation.Corresponding steps (comprising step 112,12 and 13) in other step of this embodiment and the embodiment shown in above-mentioned Fig. 2 is identical, does not repeat them here.
In this embodiment, all operating application program that plug-in unit installation system can obtain terminate-and-stay-resident detects; Also can obtain application program user display showing interfaces windows, these application programs are detected; Also can be obtain the application program that on user display, current active window is corresponding, these application programs are detected; Optimum embodiment obtains on user display to show interfaces windows, the application program at cursor place place, this application program is detected, namely which interface user's cursor moves to, just detect application program corresponding to this interface the need of installation plug-in unit, no matter this interface is in current active window or backstage window.
In this embodiment, the application tool that monitoring process runs, namely the special instrument that the visualized monitoring function to any process of system is provided, or other process monitoring application software or code, to in process monitoring process, this application program can be obtained whether plug-in unit has been installed, what plug-in unit has been installed;
As can by detecting browser corresponding to the process that run, and then obtain this browser whether PowerWord dictionary plug-in unit is installed, if do not have, can point out to user, the need of installation PowerWord dictionary plug-in unit; Further, installed plug-in unit if can also detect, whether this plug-in unit is latest edition, and whether prompting is updated to upgrade version.
Certainly, above-mentioned monitoring tools can also be the hardware that can perform an operation, and this hardware is as mouse, and this operation is as the slide of mouse, concrete, as PowerWord dictionary application terminate-and-stay-resident, automatic detection mouse action, if mouse slides into browser window, then start to detect process corresponding to browser, if find, PowerWord dictionary plug-in unit do not installed by this browser, prompting user is the need of installation PowerWord dictionary plug-in unit, if user confirms to need to install, then can automatic acquisition PowerWord dictionary plug-in unit, automatically for this PowerWord dictionary plug-in unit installed by this browser, whether whole process only needs user to check to install, do not need user oneself manual installation plug-in unit, therefore, in the process being embodied as browser Auto-mounting plug-in unit, decrease user operation, and ensure the success ratio that plug-in unit is installed.
Certain above-mentioned monitoring tools, also can be that the cursor of screen display is detected, no matter this interface is in current activity state or background operation state, application program corresponding to this interface is obtained according to the interface of cursor position, then judge that this application program needs to install which plug-in unit, need which plug-in unit of upgrading, produce testing result.
In addition, in above-described embodiment, can also direct-detection process, by residing in the application direct-detection process name with plug-in unit in internal memory, judge that application program corresponding to the process of current operation is the need of the described plug-in unit of installation.Such as: do not detect by monitoring tools that the browser run is the need of installation PowerWord dictionary plug-in unit, namely reside in PowerWord dictionary application in internal memory without the need to automatically detecting mouse action, direct-detection process can obtain browser the need of the testing result of installing PowerWord dictionary plug-in unit.
Such as: when being detected the process of this browser by cursor, PowerWord dictionary application monitors cursor, judges what the application program corresponding to process name of the application program that cursor position is current is, as, current cursor is on the CM browser of GG company, and the process name obtained is exactly GGCM.exe; Judge whether this application program installs plug-in unit, for Window7, user is called Test, suppose that plug-in unit installation directory is: C: Users Test AppData Local GG CM UserData Default Extensions plug-in unit ID, then sentence this CM browser and plug-in unit be installed; Certainly, if there is no plug-in unit ID in this installation directory, then judge that this CM browser needs to install plug-in unit.
Certainly, the embodiment that the application program based on method described in above-described embodiment installs plug-in unit also has a lot, but installation method is identical with ratio juris square described in above-described embodiment, does not repeat them here, but all should be included within scope described in this embodiment.
As shown in Figure 4, in the fourth embodiment of the present invention, on the step basis comprising the embodiment shown in above-mentioned Fig. 3, after to process detection, if detect, the application program of current operation does not need to install plug-in unit, then can further include:
Step 1113, travel through described application program installation directory or for described application program installs the installation record of plug-in unit, obtain a check result;
Step 1114, according to described check result, determines whether to need for described application program installs described plug-in unit again.
In this embodiment, consider the otherness of plug-in unit installation directory, for preventing detection not comprehensive, after to process detection, when not needing plug-in unit is installed if judge, for accurately judging whether user is provided with plug-in unit, the installation directory of this application program can also be traveled through again, search and whether have plug-in unit ID, also the plug-in unit installation situation of the user of this application program can be checked one by one, guarantee that overall plug-in unit and user have the installation situation of plug-in unit by oneself all found, if in such cases, judge that this application program needs to install plug-in unit, then forward the subsequent process that step 112 carries out installing plug-in unit to.
Above-mentioned in an embodiment, when plug-in unit installed by needs, from the installation file of described application program or external server or External memory equipment, the application program obtaining current operation needs the plug-in unit installed.
Certainly, the source of plug-in unit is not limited to above-mentioned mode, can also be other any one obtain manner, as long as the plug-in unit that this application program needs.
As shown in Figure 5, in the fifth embodiment of the present invention, comprise on the basis of above-mentioned Fig. 3 or step embodiment illustrated in fig. 4, wherein, step 13 comprises:
Step 131, according to described installation instruction, obtains the mounting means of described plug-in unit;
Step 132, installs described plug-in unit for described application program automatically according to described mounting means.
Wherein, in step 131, from the installation file of described plug-in unit or from cloud server or from the webserver, obtain the mounting means of described plug-in unit.Certainly, the mounting means of plug-in unit is not limited to above-mentioned mode, as being the mounting means obtaining this plug-in unit from the installation kit of plug-in unit owning application, mounting means as PowerWord dictionary plug-in unit can obtain the mounting means of this PowerWord dictionary plug-in unit from the installation kit of PowerWord dictionary application, certainly also comprise other any one obtain manner, just can install.
About the source of plug-in unit, plug-in unit installation procedure can be put in the software installation kit of plug-in unit installation system, also can be put on external server, obtains up-to-date supported software and plug-in unit according to the arrangement on server, to reach the object that expansion is safeguarded.
In the sixth embodiment of the present invention, after application program installs plug-in unit, can further include:
Step 14, obtain described application program installed plug-in unit plug-in unit name, each described application name of described plug-in unit, the upgrading mode of described plug-in unit of upgrading have been installed or have deleted the deletion mode of described plug-in unit; Produce the catalogue comprising described plug-in unit name, each described application name, the upgrading mode of described plug-in unit and/or the deletion mode of described plug-in unit; Described catalogue is supplied to user.
Wherein, described catalogue can be the catalogue having only included plugin name, also can be the catalogue having only included application name, also can be the catalogue of the upgrading mode having only included plug-in unit, also can be the catalogue of the deletion mode having only included plug-in unit, may also be and include plugin name, the application name of plug-in unit has been installed, any number of in the upgrading mode of plug-in unit and the deletion mode of plug-in unit, if this catalogue is an interface, plugin name directory entry is provided in interface, application name directory entry, the directory entry of the directory entry of the upgrading mode of plug-in unit and the deletion mode of plug-in unit, click plugin name directory entry wherein, just can show that application program has installed the plug-in unit name catalogue of plug-in unit to user, click the application name directory entry installing plug-in unit wherein, just can show to user and the application name of plug-in unit has been installed, click the upgrading mode directory entry of plug-in unit wherein, just can show the upgrading mode of this plug-in unit to user, click the deletion mode directory entry of plug-in unit wherein, just can show the deletion mode of this plug-in unit to user, .Which plug-in unit is current application program installed to facilitate user to recognize like this, so that user determines whether to install plug-in unit, promotes Consumer's Experience.
As shown in Figure 7, for described application program for Computer Browser, the mounting means of described plug-in unit is: after the store path of described plug-in unit being combined to the installation path of described browser, obtains a plug-in unit installation path, runs the application program that described plug-in unit installation path is corresponding.Specifically, browser plug-in is installed, with " browser program name+plug-in unit path " mode working procedure, specifically comprises:
1. the path of browser plug-in is imported in the executable file of browser;
2. browser obtains plug-in unit path;
3. verify that path is correct, will find this browser plug-in;
4. browser will recognize plug-in unit, install, as started the CM browser of GG with order (i.e. above-mentioned plug-in unit installation path) below, " C: Users Test AppData Local GG CM GGCM.exe " " D: Extension.crx ", can complete and this browser plug-in is installed on a web browser.
Certainly, it may be under associative directory add-on file being copied to application program that other application program installs the mode of plug-in unit, just can run this plug-in unit, and complete the installation of this plug-in unit.
In the above embodiment of the present invention, be not limited to the plug-in unit mounting means of above-mentioned illustrated application program, other any one mounting means can also be comprised.
The above embodiment of the present invention is by detecting application program the need of installation plug-in unit, and when needing to install and after obtaining the confirmation of user, automatically for application program installs plug-in unit, user, without the need to being manually that certain application program installs plug-in unit, thus realizing automatic, dynamic installation plug-in unit, simplifies and user interactions, only have is just user installation when needed, detect whether be provided with plug-in unit for different application, correct plug-in unit of installing, to tram, reaches the object that optimizing user is experienced.
As shown in Figure 8, embodiments of the invention also provide a kind of device installing plug-in unit, comprising:
First acquisition module 81, the application program for obtaining current operation needs the plug-in unit installed;
Second acquisition module 82, for obtaining the installation instruction of plug-in unit described in user installation;
Plug-in unit installation module 83, for according to described installation instruction, automatically controls described application program and installs described plug-in unit.
In this device embodiment, the application program of described current operation comprises but is not limited to: the application program that the application program of terminate-and-stay-resident, display interface window application program over the display, current active window are corresponding or application program corresponding to cursor place place interfaces windows.This device embodiment corresponds to the embodiment of the method shown in above-mentioned Fig. 1, can reach and above-mentioned identical technique effect embodiment illustrated in fig. 1, not repeat them here.
Wherein, the first acquisition module 81 can comprise:
Detection sub-module, for detecting the application program of current operation, obtains a testing result;
First obtains submodule, for according to described testing result, obtains the plug-in unit of the application program needs installation of current operation.
Wherein, described detection sub-module, specifically for by application program corresponding to the process of monitoring tools or the current operation of direct-detection, judges that described application program is the need of installation plug-in unit, if desired, then produces the testing result needing to install plug-in unit; If do not need, then produce the testing result not needing to install plug-in unit.
Wherein, described monitoring tools is: the application tool that monitoring process runs or can perform the hardware of an operation, and described operation represents that application program is in the state of current operation.
Wherein, comprise after producing the testing result not needing to install plug-in unit:
Spider module, for traveling through the installation directory of described application program or being the installation record of described application program installation plug-in unit, obtains a check result;
Determination module, for according to described check result, determines whether to need for described application program installs described plug-in unit again.
Wherein, first obtains submodule: the testing result of installing plug-in unit as required, and from the installation file of described application program or external server or External memory equipment, the application program obtaining current operation needs the plug-in unit installed.
Wherein, plug-in unit installation module 83 comprises:
Second obtains submodule, for according to described installation instruction, obtains the mounting means of described plug-in unit;
Submodule installed by plug-in unit, installs described plug-in unit for automatically controlling described application program according to described mounting means.
Wherein, second submodule is obtained: from the installation file of described plug-in unit or from cloud server or from the webserver, obtain the mounting means of described plug-in unit.
Wherein, said apparatus is, after described application program installs described plug-in unit, also comprise at described plug-in unit installation module 83:
Reminding module, having installed the plug-in unit name of plug-in unit, having installed each described application name of described plug-in unit, the upgrading mode of described plug-in unit of upgrading or delete the deletion mode of described plug-in unit for obtaining described application program; Produce the catalogue comprising described plug-in unit name, each described application name, the upgrading mode of described plug-in unit and/or the deletion mode of described plug-in unit; Described catalogue is supplied to user.
This device embodiment is equally by detecting application program the need of installation plug-in unit, and when needing to install and after obtaining the confirmation of user, automatically for application program installs plug-in unit, user, without the need to being manually that certain application program installs plug-in unit, thus realizing automatic, dynamic installation plug-in unit, simplifies and user interactions, only have is just user installation when needed, detect whether be provided with plug-in unit for different application, correct plug-in unit of installing, to tram, reaches the object that optimizing user is experienced.
Embodiments of the invention also provide a kind of equipment, comprise device as above.Wherein, this equipment can be: notebook computer, desk-top computer, mobile communication equipment, panel computer etc. adopt the mode such as mouse or hand touch screen to receive the communication facilities of user action.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the prerequisite not departing from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.