CN104731609A - Program uninstalling method and device and electronic device - Google Patents
Program uninstalling method and device and electronic device Download PDFInfo
- Publication number
- CN104731609A CN104731609A CN201310718270.1A CN201310718270A CN104731609A CN 104731609 A CN104731609 A CN 104731609A CN 201310718270 A CN201310718270 A CN 201310718270A CN 104731609 A CN104731609 A CN 104731609A
- Authority
- CN
- China
- Prior art keywords
- uninstaller
- file
- application program
- shortcut
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a program uninstalling method and device and an electronic device and belongs to the technical field of network. The method includes: acquiring a deletion event which is generated when a shortcut of an application program is deleted; inquiring an uninstall program corresponding to the application program from a file catalog which the shortcut points to; initiating the uninstall program. When the deletion event wherein the shortcut for quickly starting the application program is deleted is acquired, the uninstall program corresponding to the application program is inquired from the file catalog which the shortcut points to; the uninstall program is initiated to uninstall the application program; since a user need not find the application program to be uninstalled, from multiple application programs, the problem that existing two methods of uninstalling application programs take long time is solved; the certain application program can be quickly uninstalled when the user deletes the application program.
Description
Technical field
The present invention relates to networking technology area, particularly a kind of program unloading method, device and electronic equipment.
Background technology
Along with the development of computer utility and network application, types of applications program also emerges in an endless stream.User can download types of applications program based on self-demand and install and use, and when not needing these application programs, in order to save computer resource, user needs to unload.
Usually, the mode that user unloads application program has two kinds: first, control panel in user's opening operation system, option program administration module in control panel, program management module reads the application program of having installed and in the form of a list in the application program that program unloading interface display reads from registration table, user finds the application program needing unloading at program unloading interface, use offloading functions to unload; The second, user opens the application program unloading interface in third party application management function (such as 360 software house keepers), finds the application program needing unloading, clicks unload button and unload.
Realizing in process of the present invention, inventor finds that prior art at least exists following shortcoming: for the mode of the first unloading application program, program management module reads this process of application program of having installed from registration table needs the longer time usually, and user finds the application program needing unloading at program unloading interface, when number of applications is larger, this searching process is also more consuming time; For the second unloading mode of application program and front one substantially similar, difference is only that program management module is provided by operating system or provided by third party; Also namely all there is longer problem consuming time in the mode of two kinds of unloading application programs.
Summary of the invention
In order to the consuming time longer problem that the mode solving above-mentioned two kinds of unloading application programs exists, embodiments provide a kind of program unloading method, device and electronic equipment.Described technical scheme is as follows:
First aspect, provide a kind of program unloading method, described method comprises:
Obtain deletion event, the event produced when described deletion event is the shortcut of deleting application program;
Uninstaller corresponding to described application program is inquired about in the file directory pointed by described shortcut;
Start described Uninstaller.
Second aspect, provide a kind of program unloading device, described device comprises:
Acquisition module, for obtaining deletion event, the event produced when described deletion event is the shortcut of deleting application program;
Enquiry module, for inquiring about Uninstaller corresponding to described application program in the file directory pointed by described shortcut;
Start module, for starting the Uninstaller that described enquiry module inquires.
The third aspect, provides a kind of electronic equipment, and described electronic equipment comprises the program unloading device described in second aspect.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By when getting the deletion event of shortcut deleted for starting application program fast, in the file directory pointed by this shortcut, inquiring about the Uninstaller that this application program is corresponding, start the uninstall process that this Uninstaller completes this application program; Owing to finding the application program that will unload in numerous application program without the need to user, so the problem that the Method compare solving existing two kinds of unloading application programs is consuming time; Reach when user deletes application program, can the effect of this application program of fast discharging.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the program unloading method that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of the program unloading method that another embodiment of the present invention provides;
Fig. 3 is the enforcement schematic diagram involved by one embodiment of the invention;
Fig. 4 is the structural representation of the program unloading device that one embodiment of the invention provides;
Fig. 5 is the structural representation of the program unloading device that another embodiment of the present invention provides;
Fig. 6 is the block diagram of the electronic equipment that one embodiment of the invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Please refer to Fig. 1, it illustrates the method flow diagram of the program unloading method that one embodiment of the invention provides.This program unloading method, comprising:
Step 101, obtains deletion event, the event produced when this deletion event is the shortcut of deleting application program;
Electronic equipment obtains deletion event, the event produced when this deletion event is the shortcut of deleting application program.
Step 102, the Uninstaller that inquiry application is corresponding in the file directory pointed by shortcut;
The electronic equipment Uninstaller that inquiry application is corresponding in the file directory pointed by shortcut.
Step 103, starts Uninstaller;
Electronic equipment starts Uninstaller.
In sum, the program unloading method that the embodiment of the present invention provides, by when getting the deletion event of shortcut deleted for starting application program fast, in the file directory pointed by this shortcut, inquire about the Uninstaller that this application program is corresponding, start the uninstall process that this Uninstaller completes this application program; Owing to finding the application program that will unload in numerous application program without the need to user, so the problem that the Method compare solving existing two kinds of unloading application programs is consuming time; Reach when user deletes application program, can the effect of this application program of fast discharging.
User, when deleting the shortcut of application program, usually has three kinds of situations: the first, shortcut is dragged to " dustbin "; The second, choose the shortcut of application program, press " Del " key; 3rd, choose the shortcut of application program, use the delete command in right-click menu.Delete the situation of shortcut of application programs based on above-mentioned three kinds, electronic equipment can obtain the deletion event of the shortcut of application program by two kinds of different modes.For the first situation, electronic equipment by arranging shell extension assembly in advance in explorer, can obtain this deletion event by shell extension; For the second situation and the third situation, electronic equipment can by interception API(Application Programming Interface, application programming interface) call this deletion event of acquisition.
Wherein, shell extension is the software of a kind of extended resources Manager Feature provided in Microsoft Windows operating system, exists with kit form.In the embodiment of the present invention, employing shell extension realizes the supervision to file drag and drop.API is some predefined functions, can be used for the outward appearance of all parts of control Windows and behavior.In the embodiment of the present invention, to tackle API Calls to obtain the erasure signal for performing delete command.
It should be noted that, for the first situation, electronic equipment also can obtain this deletion event by interception API Calls, but owing to directly can obtain this deletion event by shell extension, and adopt shell extension mode to obtain deletion event relative to API interception mode, event-triggered times more early, technology is also simpler on realizing simultaneously, better reliability, so for the first situation in the embodiment of the present invention, electronic equipment adopts the mode of shell extension to obtain deletion event.
Please refer to Fig. 2, it illustrates the method flow diagram of the program unloading method that another embodiment of the present invention provides.This program unloading method, comprising:
Step 201, obtains deletion event, the event produced when this deletion event is the shortcut of deleting application program;
Concrete, electronic equipment obtains deletion event and is divided into two kinds of situations: the first, electronic equipment obtains the deletion event of the file deleting specified type by the shell extension assembly be set in advance in explorer; The second, electronic equipment obtains the deletion event of the file deleting specified type by API;
Shortcut due to application program is generally the file of expansion .lnk by name, thus when electronic equipment detect exist delete expansion be called the event of the file of .lnk time, namely think the shortcut that may delete an application program.
For the first situation, namely electronic equipment obtains the deletion event of the file deleting specified type by the shell extension assembly be set in advance in explorer, electronic equipment is obtained by shell extension assembly and drags signal, and this dragging signal is used for the file of specified type to be dragged to delete region.
Such as, user will delete the shortcut of a certain application program, the expansion of namely deleting this application program is called the file of .lnk, and the mode adopting the file that this expansion is called .lnk to be dragged to " dustbin " from desktop is deleted, then electronic equipment obtains this dragging signal by the shell extension assembly be set in advance in explorer, and this dragging signal is the signal file of .lnk by name for expansion being dragged to " dustbin " from desktop.
For the second situation, namely electronic equipment obtains the deletion event of the file deleting specified type by interception API Calls, then electronic equipment obtains erasure signal when specifying api function to be called, and this erasure signal is for deleting the file of specified type.
Such as, user will delete the shortcut of a certain application program, the expansion of namely deleting this application program is called the file of .lnk, and employing chooses this expansion to be called the file of .lnk, press " Del " key, or choose this expansion to be called the file of .lnk, adopt the delete command in right-click menu, then operating system calls fixing api function, so namely obtains this erasure signal by carrying out interception to this API.
Step 202, receives and determines signal, and this determines that signal is for determining that application program needs to unload;
Such as, electronic equipment, after the deletion event getting the shortcut of deleting a certain application program, inquires that user is the need of this application program of unloading, if user determines that needs carry out unloading this application program, then click confirming button, determine that this application program needs to unload.
Step 203, inquires about executable file in the file directory pointed by shortcut;
Electronic equipment receive for determine this application program need carry out the determination signal unloaded after, executable file is inquired about in the file directory pointed by deleted shortcut, executable file refers generally to the file etc. expanding .exe .sys .com by name, wherein .sys and .com is system file, and at this, we only inquire about .exe file.
Such as, the shortcut that user deletes is the shortcut of application program QQ, then electronic equipment inquires about executable file in the file directory pointed by this shortcut.Suppose that the executable file inquired is QQUninst.exe, txupd.exe, QQProtect.exe and QQProtectUpd.exe.
Step 204, the name parameter of the Uninstaller that inquiry application is corresponding in database or registration table;
The application program will carrying out unloading determined by the file (being generally exe file) of the formulation type comprised in the file directory that electronic equipment points to according to deleted shortcut, and then in database or registration table, inquire about the name parameter of Uninstaller corresponding to this application program.
Such as, electronic equipment determines that the application program will carrying out unloading is QQ, then in database or registration table, inquire about the name parameter of Uninstaller corresponding to QQ, and the name parameter of the Uninstaller that the QQ inquired is corresponding is QQUninst.exe.
If inquire corresponding Uninstaller, then enter step 205;
If inquire about the Uninstaller less than correspondence, carry out step 207.
Step 205, if inquire corresponding name parameter, then inquires about corresponding Uninstaller according to name parameter in executable file;
If electronic equipment inquires the name parameter of Uninstaller corresponding to this application program in database or registration table, then in executable file, inquire about corresponding Uninstaller according to the name parameter inquired.
Such as, electronic equipment Query Name parameter in the above-mentioned executable file inquired is the executable file of QQUninst.exe.
Step 206, starts Uninstaller;
Electronic equipment starts this Uninstaller, unloads this application program.
Such as, electronic equipment inquires in above-mentioned QQUninst.exe, txupd.exe, QQProtect.exe and QQProtectUpd.exe exists the executable file that name parameter is QQUninst.exe, then determine that this executable file is the Uninstaller of QQ, start this Uninstaller, unload this application program.
Step 207, if inquiry is less than the name parameter of correspondence, then mates executable file with the Uninstaller universal model prestored;
Due to whole application programs can not be covered in database or registration table, so, if inquire about the Uninstaller less than correspondence in database or registration table, then executable file is mated with the Uninstaller universal model prestored, concrete, the filename of the filename of executable file with the Uninstaller universal model prestored is mated.
Because major applications program is all generated by several install program making tools, and the default name of the Uninstaller that this several installation procedure generates be fixing (as with uninst beginning), so the Uninstaller universal model that electronic equipment prestores is the file that name parameter comprises these fixed names, it also can be the file comprising " unloading/Uninstall " this semanteme.
Such as, all executable files that step 203 inquires by electronic equipment mate with the Uninstaller universal model prestored, and the file that filename and name parameter by all executable files comprise Uninst mates.
If there is the executable file of matcher, then enter step 208;
If there is not the executable file that the match is successful, then enter step 209.
Step 208, if exist and the Uninstaller universal model executable file that the match is successful, is then defined as Uninstaller corresponding to application program by the executable file that the match is successful;
Electronic equipment is defined as Uninstaller corresponding to application program by with the Uninstaller universal model executable file that the match is successful prestored.
Such as, after overmatching, the file executable file QQUninst.exe that the match is successful comprising Uninst with name parameter is defined as the Uninstaller of QQ by electronic equipment;
After the executable file that the match is successful is defined as Uninstaller, enter step 206.
Step 209, if do not exist and the Uninstaller universal model executable file that the match is successful, is then presented in the file directory pointed by shortcut all executable files inquired;
If do not exist and the Uninstaller universal model executable file that the match is successful, be then presented in the file directory pointed by shortcut all executable files inquired.
Such as, if after overmatching, there is not the file executable file that the match is successful comprising Uninst with name parameter, then all executable files inquired in the file directory that electronic equipment is presented at pointed by shortcut, as shown in Figure 3.
Step 210, receives and selects signal, and this selection signal is used for choosing Uninstaller in all executable files;
Electronic equipment, after all executable files of display, receives and selects signal, and this selection signal is used for choosing Uninstaller in all executable files.
Such as, electronic equipment, with all executable files inquired of tabular form display, therefrom selects QQUninst.exe as Uninstaller corresponding to QQ by user.
Step 211, the Uninstaller corresponding according to the selection signal determination application program received;
Such as, QQUninst.exe is defined as Uninstaller corresponding to QQ according to the selection signal received by electronic equipment.
Receiving for after determining the Uninstaller that application program is corresponding, enter step 206.
In sum, the program unloading method that the embodiment of the present invention provides, by when getting the deletion event of shortcut deleted for starting application program fast, executable file is inquired about in the file directory pointed by this shortcut, and in database or registration table, inquire about the name parameter of Uninstaller corresponding to this application program, if inquire the name parameter of corresponding Uninstaller, then in above-mentioned executable file, inquire about corresponding Uninstaller according to this name parameter, if inquire about the name parameter less than the Uninstaller of correspondence, then executable file is mated with the Uninstaller universal model prestored, using the executable file that the match is successful as Uninstaller, if the Uninstaller universal model executable file that the match is successful do not existed and prestore, then show all executable files, the Uninstaller therefrom selecting this application program corresponding by user.Thus start the uninstall process that this Uninstaller completes this application program; Owing to finding the application program that will unload in numerous application program without the need to user, so the consuming time longer problem that the mode solving existing two kinds of unloading application programs exists; Reach when user deletes application program, can the effect of this application program of fast discharging.
Please refer to Fig. 4, it illustrates the structural representation of the program unloading device that one embodiment of the invention provides.This program unloading device can realize becoming the whole or a part of of electronic equipment by software, hardware or both combinations, and this program unloading device, comprising:
Acquisition module 410, for obtaining deletion event, the event produced when described deletion event is the shortcut of deleting application program.
Enquiry module 420, for inquiring about Uninstaller corresponding to described application program in the file directory pointed by described shortcut.
Start module 430, for starting the Uninstaller that described enquiry module 420 inquires.
In sum, the program unloading device that the embodiment of the present invention provides, by when getting the deletion event of shortcut deleted for starting application program fast, in the file directory pointed by this shortcut, inquire about the Uninstaller that this application program is corresponding, start the uninstall process that this Uninstaller completes this application program; Owing to finding the application program that will unload in numerous application program without the need to user, so the consuming time longer problem that the mode solving existing two kinds of unloading application programs exists; Reach when user deletes application program, can the effect of this application program of fast discharging.
Please refer to Fig. 5, it illustrates the structural representation of the program unloading device that another embodiment of the present invention provides.This program unloading device can realize becoming the whole or a part of of electronic equipment by software, hardware or both combinations, and this program unloading device, comprising:
Acquisition module 510, for obtaining deletion event, the event produced when described deletion event is the shortcut of deleting application program;
Described shortcut is the file of specified type, and described acquisition module 510, comprising:
First acquiring unit 511, for obtaining the deletion event of the file deleting described specified type by the shell extension assembly be set in advance in explorer;
And/or,
Second acquisition unit 512, for obtaining the deletion event of the file deleting described specified type by interception application programming interface API Calls.
Concrete, described first acquiring unit 511, drags signal for being obtained by described shell extension assembly, and described dragging signal is used for the file of described specified type to be dragged to delete region.
Described second acquisition unit 512, call acquisition erasure signal for tackling Using API Function, described erasure signal is for deleting the file of described specified type.
Receiver module 520, for receive determine signal, described determine signal for determine application program need unload.
Enquiry module 530, for inquiring about Uninstaller corresponding to described application program in the file directory pointed by described shortcut;
Concrete, described enquiry module 530, comprising:
First query unit 531, for inquiring about executable file in the file directory pointed by described shortcut;
Second query unit 532, for inquiring about the name parameter of described Uninstaller corresponding to described application program in database or registration table;
3rd query unit 533, for when described second query unit 532 inquires described name parameter, inquires about corresponding Uninstaller in the described executable file inquired in described first query unit 531 according to described name parameter.
Matching unit 534, for when described second query unit 532 is inquired about less than described name parameter, mates the described executable file that described first query unit 531 inquires with the Uninstaller universal model prestored;
First determining unit 535, for being defined as Uninstaller corresponding to described application program by described matching unit 534 executable file that the match is successful.
Display unit 536, for when not existing with the described Uninstaller universal model executable file that the match is successful, is presented in the file directory pointed by described shortcut all executable files inquired;
Receiving element 537, for receiving selection signal, described selection signal is used for choosing described Uninstaller in described all executable files;
Second determining unit 538, the selection signal for receiving according to described receiving element 537 determines the Uninstaller that described application program is corresponding.
Start module 540, for starting the Uninstaller that described enquiry module inquires.
In sum, the program unloading device that the embodiment of the present invention provides, by when getting the deletion event of shortcut deleted for starting application program fast, executable file is inquired about in the file directory pointed by this shortcut, and in database or registration table, inquire about the name parameter of Uninstaller corresponding to this application program, if inquire the name parameter of corresponding Uninstaller, then in above-mentioned executable file, inquire about corresponding Uninstaller according to this name parameter, if inquire about the name parameter less than the Uninstaller of correspondence, then executable file is mated with the Uninstaller universal model prestored, using the executable file that the match is successful as Uninstaller, if the Uninstaller universal model executable file that the match is successful do not existed and prestore, then show all executable files, the Uninstaller therefrom selecting this application program corresponding by user.Thus start the uninstall process that this Uninstaller completes this application program; Owing to finding the application program that will unload in numerous application program without the need to user, so the consuming time longer problem that the mode solving existing two kinds of unloading application programs exists; Reach when user deletes application program, can the effect of this application program of fast discharging.
It should be noted that: the program unloading device that above-described embodiment provides is when carrying out program unloading, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the program unloading device that above-described embodiment provides and program unloading embodiment of the method belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Please refer to Fig. 6, it illustrates the block diagram of the electronic equipment that one embodiment of the invention provides.This electronic equipment is for implementing the information processing method provided in above-described embodiment, electronic equipment in the embodiment of the present invention can comprise one or more following ingredient: for performing computer program instructions to complete the processor of various flow process and method, for information and stored program instruction random access memory (RAM) and ROM (read-only memory) (ROM), for storing the storer of data and information, I/O equipment, interface, antenna etc.Specifically:
Electronic equipment 600 can comprise RF(Radio Frequency, radio frequency) parts such as circuit 610, storer 620, input block 630, display unit 640, sensor 650, voicefrequency circuit 660, WiFi (wireless fidelity, Wireless Fidelity) module 670, processor 680, power supply 682, camera 690.It will be understood by those skilled in the art that the electronic devices structure shown in Fig. 6 does not form the restriction to electronic equipment, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 6 each component parts to electronic equipment 600:
RF circuit 610 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 680; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, RF circuit 610 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband CodeDivision Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Storer 620 can be used for storing software program and module, and processor 680 is stored in software program and the module of storer 620 by running, thus performs various function application and the data processing of electronic equipment 600.Storer 620 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of electronic equipment 600.In addition, storer 620 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 630 can be used for the numeral or the character information that receive input, and generation arranges with the user of electronic equipment 600 and function controls the input of relevant key signals.Particularly, input block 630 can comprise contact panel 631 and other input equipments 632.Contact panel 631, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 631 or near contact panel 631 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 631 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 680, and the order that energy receiving processor 680 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 631.Except contact panel 631, input block 630 can also comprise other input equipments 632.Particularly, other input equipments 632 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 640 can be used for the various menus showing information or the information being supplied to user and the electronic equipment 600 inputted by user.Display unit 640 can comprise display panel 641, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display panel 641.Further, contact panel 631 can cover display panel 641, when contact panel 631 detects thereon or after neighbouring touch operation, send processor 680 to determine the type of touch event, on display panel 641, provide corresponding vision to export with preprocessor 680 according to the type of touch event.Although in figure 6, contact panel 631 and display panel 641 be as two independently parts to realize input and the input function of electronic equipment 600, but in certain embodiments, can by integrated to contact panel 631 and display panel 641 and realize the input and output function of electronic equipment 600.
Electronic equipment 600 also can comprise at least one sensor 650, such as gyro sensor, magnetic induction sensor, optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 641, proximity transducer when electronic equipment 600 moves in one's ear, can cut out display panel 641 and/or backlight.As the one of motion sensor; acceleration transducer can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of electronic equipment attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for electronic equipment 600 also other sensors such as configurable barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 660, loudspeaker 661, microphone 662 can provide the audio interface between user and electronic equipment 600.Voicefrequency circuit 660 can by receive voice data conversion after electric signal, be transferred to loudspeaker 661, by loudspeaker 661 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 662, voice data is converted to after being received by voicefrequency circuit 660, after again voice data output processor 680 being processed, through RF circuit 610 to send to such as another electronic equipment, or export voice data to storer 620 to process further.
WiFi belongs to short range wireless transmission technology, and electronic equipment 600 can help user to send and receive e-mail by WiFi module 670, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 6 shows WiFi module 670, be understandable that, it does not belong to must forming of electronic equipment 600, can omit in the scope of essence not changing invention as required completely.
Processor 680 is control centers of electronic equipment 600, utilize the various piece of various interface and the whole electronic equipment of connection, software program in storer 620 and/or module is stored in by running or performing, and call the data be stored in storer 620, perform various function and the process data of electronic equipment 600, thus integral monitoring is carried out to electronic equipment.Optionally, processor 680 can comprise one or more processing unit; Preferably, processor 680 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 680.
Electronic equipment 600 also comprises the power supply 682(such as battery of powering to all parts), preferably, power supply can be connected with processor 682 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Camera 690 is generally made up of camera lens, imageing sensor, interface, digital signal processor, CPU, display screen etc.Wherein, camera lens is fixed on the top of imageing sensor, manually can change focusing by adjustable lens; Imageing sensor is equivalent to " film " of traditional camera, is the heart of camera collection image; Interface is used for camera to utilize winding displacement, board to board connector, spring connected mode to be connected with electronic equipment mainboard, and the image of collection is sent to described storer 620; Digital signal processor is processed the image gathered by mathematical operation, the analog image of collection is converted to digital picture and sends to storer 620 by interface.
Although not shown, electronic equipment 600 can also comprise bluetooth module etc., does not repeat them here.
Electronic equipment 600, except comprising one or more processor 680, also includes storer, and one or more module, and one or more module stores in storer, and is configured to be performed by one or more processor.One or more module above-mentioned has following function:
Obtain deletion event, the event produced when described deletion event is the shortcut of deleting application program;
Uninstaller corresponding to described application program is inquired about in the file directory pointed by described shortcut;
Start described Uninstaller.
Described shortcut is the file of specified type, and one or more module described also has following function:
The deletion event of the file deleting described specified type is obtained by the shell extension assembly be set in advance in explorer;
And/or,
The deletion event of the file deleting described specified type is obtained by interception application programming interface API Calls.
One or more module described also has following function:
Obtained by described shell extension assembly and drag signal, described dragging signal is used for the file of described specified type to be dragged to delete region.
One or more module described also has following function:
Interception api function calls acquisition erasure signal, and described erasure signal is for deleting the file of described specified type.
One or more module described also has following function:
Executable file is inquired about in the file directory pointed by described shortcut;
The name parameter of described Uninstaller corresponding to described application program is inquired about in database or registration table;
If inquire described name parameter, then in described executable file, inquire about corresponding Uninstaller according to described name parameter.
One or more module described also has following function:
If described executable file less than described name parameter, then mates with the Uninstaller universal model prestored by inquiry;
The executable file that the match is successful is defined as Uninstaller corresponding to described application program.
One or more module described also has following function:
If do not exist and the described Uninstaller universal model executable file that the match is successful, be then presented in the file directory pointed by described shortcut all executable files inquired;
Determine according to the selection signal received the Uninstaller that described application program is corresponding, described selection signal is used for choosing described Uninstaller in described all executable files.
In sum, the embodiment of the present invention provides electronic equipment, by when getting the deletion event of shortcut deleted for starting application program fast, executable file is inquired about in the file directory pointed by this shortcut, and in database or registration table, inquire about the name parameter of Uninstaller corresponding to this application program, if inquire the name parameter of corresponding Uninstaller, then in above-mentioned executable file, inquire about corresponding Uninstaller according to this name parameter, if inquire about the name parameter less than the Uninstaller of correspondence, then executable file is mated with the Uninstaller universal model prestored, using the executable file that the match is successful as Uninstaller, if the Uninstaller universal model executable file that the match is successful do not existed and prestore, then show all executable files, the Uninstaller therefrom selecting this application program corresponding by user.Thus start the uninstall process that this Uninstaller completes this application program; Owing to finding the application program that will unload in numerous application program without the need to user, so the consuming time longer problem that the mode solving existing two kinds of unloading application programs exists; Reach when user deletes application program, can the effect of this application program of fast discharging.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (15)
1. a program unloading method, is characterized in that, described method comprises:
Obtain deletion event, the event produced when described deletion event is the shortcut of deleting application program;
Uninstaller corresponding to described application program is inquired about in the file directory pointed by described shortcut;
Start described Uninstaller.
2. method according to claim 1, is characterized in that, described shortcut is the file of specified type, and the deletion event of shortcut is deleted in described acquisition, comprising:
The deletion event of the file deleting described specified type is obtained by the shell extension assembly be set in advance in explorer;
And/or,
The deletion event of the file deleting described specified type is obtained by interception application programming interface API Calls.
3. method according to claim 2, is characterized in that, the described deletion event being obtained the file deleting described specified type by the shell extension assembly be set in advance in explorer, being comprised:
Obtained by described shell extension assembly and drag signal, described dragging signal is used for the file of described specified type to be dragged to delete region.
4. method according to claim 2, is characterized in that, the described deletion event being obtained the file deleting described specified type by interception API Calls, being comprised:
Interception api function calls acquisition erasure signal, and described erasure signal is for deleting the file of described specified type.
5. according to the arbitrary described method of Claims 1-4, it is characterized in that, describedly in the file directory pointed by described shortcut, inquire about Uninstaller corresponding to described application program, comprising:
Executable file is inquired about in the file directory pointed by described shortcut;
The name parameter of described Uninstaller corresponding to described application program is inquired about in database or registration table;
If inquire described name parameter, then in described executable file, inquire about corresponding Uninstaller according to described name parameter.
6. method according to claim 5, is characterized in that, described method also comprises:
If described executable file less than described name parameter, then mates with the Uninstaller universal model prestored by inquiry;
The executable file that the match is successful is defined as Uninstaller corresponding to described application program.
7. method according to claim 6, is characterized in that, described method also comprises:
If do not exist and the described Uninstaller universal model executable file that the match is successful, be then presented in the file directory pointed by described shortcut all executable files inquired;
Determine according to the selection signal received the Uninstaller that described application program is corresponding, described selection signal is used for choosing described Uninstaller in described all executable files.
8. a program unloading device, is characterized in that, described device comprises:
Acquisition module, for obtaining deletion event, the event produced when described deletion event is the shortcut of deleting application program;
Enquiry module, for inquiring about Uninstaller corresponding to described application program in the file directory pointed by described shortcut;
Start module, for starting the Uninstaller that described enquiry module inquires.
9. device according to claim 8, is characterized in that, described shortcut is the file of specified type, and described acquisition module, comprising:
First acquiring unit, for obtaining the deletion event of the file deleting described specified type by the shell extension assembly be set in advance in explorer;
And/or,
Second acquisition unit, for obtaining the deletion event of the file deleting described specified type by interception application programming interface API Calls.
10. device according to claim 9, is characterized in that, described first acquiring unit, drags signal for being obtained by described shell extension assembly, and described dragging signal is used for the file of described specified type to be dragged to delete region.
11. devices according to claim 9, is characterized in that, described second acquisition unit, and call acquisition erasure signal for tackling api function, described erasure signal is for deleting the file of described specified type.
Device described in 12. according to Claim 8 to 11 are arbitrary, it is characterized in that, described enquiry module, comprising:
First query unit, for inquiring about executable file in the file directory pointed by described shortcut;
Second query unit, for inquiring about the name parameter of described Uninstaller corresponding to described application program in database or registration table;
3rd query unit, for when described second query unit inquires described name parameter, inquires about corresponding Uninstaller in the described executable file inquired in described first query unit according to described name parameter.
13. devices according to claim 12, is characterized in that, described enquiry module also comprises:
Matching unit, for when described second query unit inquiry is less than described name parameter, the described executable file described first query unit inquired mates with the Uninstaller universal model prestored;
First determining unit, for being defined as Uninstaller corresponding to described application program by the described matching unit executable file that the match is successful.
14. devices according to claim 13, is characterized in that, described enquiry module also comprises:
Display unit, for when not existing with the described Uninstaller universal model executable file that the match is successful, is presented in the file directory pointed by described shortcut all executable files inquired;
Second determining unit, for determining according to the selection signal received the Uninstaller that described application program is corresponding, described selection signal is used for choosing described Uninstaller in described all executable files.
15. 1 kinds of electronic equipments, is characterized in that, described electronic equipment comprise as arbitrary in claim 8 to 14 as described in program unloading device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310718270.1A CN104731609A (en) | 2013-12-23 | 2013-12-23 | Program uninstalling method and device and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310718270.1A CN104731609A (en) | 2013-12-23 | 2013-12-23 | Program uninstalling method and device and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104731609A true CN104731609A (en) | 2015-06-24 |
Family
ID=53455528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310718270.1A Pending CN104731609A (en) | 2013-12-23 | 2013-12-23 | Program uninstalling method and device and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104731609A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445672A (en) * | 2016-10-10 | 2017-02-22 | 广东欧珀移动通信有限公司 | Deleting method and device for reference relations of multiple applications and terminal |
CN106445590A (en) * | 2016-09-14 | 2017-02-22 | 上海斐讯数据通信技术有限公司 | Method and device for unloading terminal application programs |
CN106484516A (en) * | 2016-10-10 | 2017-03-08 | 广东欧珀移动通信有限公司 | A kind of delet method for opening application adduction relationship, device and terminal more |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6631521B1 (en) * | 1999-03-29 | 2003-10-07 | International Business Machines Corporation | System, method, and program for performing program specific operations during the uninstallation of a computer program from a computer system |
CN102831002A (en) * | 2012-09-26 | 2012-12-19 | 北京奇虎科技有限公司 | Patch unloading method and device |
CN102981721A (en) * | 2012-11-05 | 2013-03-20 | 广东欧珀移动通信有限公司 | Method and device and mobile terminal for deleting application program |
CN103218243A (en) * | 2013-04-22 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method and device of displaying application program icons |
-
2013
- 2013-12-23 CN CN201310718270.1A patent/CN104731609A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6631521B1 (en) * | 1999-03-29 | 2003-10-07 | International Business Machines Corporation | System, method, and program for performing program specific operations during the uninstallation of a computer program from a computer system |
CN102831002A (en) * | 2012-09-26 | 2012-12-19 | 北京奇虎科技有限公司 | Patch unloading method and device |
CN102981721A (en) * | 2012-11-05 | 2013-03-20 | 广东欧珀移动通信有限公司 | Method and device and mobile terminal for deleting application program |
CN103218243A (en) * | 2013-04-22 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method and device of displaying application program icons |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445590A (en) * | 2016-09-14 | 2017-02-22 | 上海斐讯数据通信技术有限公司 | Method and device for unloading terminal application programs |
CN106445672A (en) * | 2016-10-10 | 2017-02-22 | 广东欧珀移动通信有限公司 | Deleting method and device for reference relations of multiple applications and terminal |
CN106484516A (en) * | 2016-10-10 | 2017-03-08 | 广东欧珀移动通信有限公司 | A kind of delet method for opening application adduction relationship, device and terminal more |
CN106445672B (en) * | 2016-10-10 | 2019-06-28 | Oppo广东移动通信有限公司 | A kind of delet method, device and terminal opened using adduction relationship more |
CN106484516B (en) * | 2016-10-10 | 2019-09-03 | Oppo广东移动通信有限公司 | A kind of delet method, device and terminal opened using adduction relationship more |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170371678A1 (en) | Method and apparatus for running game client | |
CN106484562B (en) | A kind of data transmission processing method and terminal device | |
CN104598262A (en) | Method and device for updating mobile application | |
CN106066686B (en) | A kind of information processing method and terminal device | |
CN105490919A (en) | Message withdrawal method and device | |
CN104572819A (en) | Clearing method and system for junk data | |
CN106131394A (en) | A kind of method and device taken pictures | |
CN103473092A (en) | Method and device for processing downloaded applications and terminal equipment | |
CN106095456A (en) | User is guided to download the method for application program, device and mobile terminal | |
WO2015081905A1 (en) | Data update method, user terminal, and data update system | |
CN104424307A (en) | Intelligent terminal application classifying method, system and intelligent terminal, | |
CN106033467A (en) | Image file sharing method and device | |
CN105530239A (en) | Multimedia data obtaining method and device | |
US20160308879A1 (en) | Application-Based Service Providing Method, Apparatus, and System | |
CN106933636B (en) | Method and device for starting plug-in service and terminal equipment | |
CN105278925B (en) | The method and device of rubbish removing is carried out to the software of unloading | |
CN106708553A (en) | Identifier generation method, device and system | |
CN106095423B (en) | Method, terminal and server for providing browsing service | |
CN104133693A (en) | Installation state detection method, device and terminal | |
CN104731609A (en) | Program uninstalling method and device and electronic device | |
CN104869550A (en) | Communication event processing method and device | |
CN106020945A (en) | Shortcut item adding method and device | |
CN108804434B (en) | Message query method, server and terminal equipment | |
CN104866288A (en) | Method, device and terminal for accessing application program | |
CN103457832A (en) | Information management method, device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 511446 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo Business District Wanda Plaza, block B1, floor 28 Applicant after: Guangzhou Huaduo Network Technology Co., Ltd. Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08, Applicant before: Guangzhou Huaduo Network Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150624 |
|
RJ01 | Rejection of invention patent application after publication |