CN101789888B - Detection method and device for software installation - Google Patents

Detection method and device for software installation Download PDF

Info

Publication number
CN101789888B
CN101789888B CN2010100005651A CN201010000565A CN101789888B CN 101789888 B CN101789888 B CN 101789888B CN 2010100005651 A CN2010100005651 A CN 2010100005651A CN 201010000565 A CN201010000565 A CN 201010000565A CN 101789888 B CN101789888 B CN 101789888B
Authority
CN
China
Prior art keywords
software
detected
detection
version number
detection strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2010100005651A
Other languages
Chinese (zh)
Other versions
CN101789888A (en
Inventor
王宝剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2010100005651A priority Critical patent/CN101789888B/en
Publication of CN101789888A publication Critical patent/CN101789888A/en
Priority to PCT/CN2011/070025 priority patent/WO2011085647A1/en
Application granted granted Critical
Publication of CN101789888B publication Critical patent/CN101789888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a detection method and a device for software installation, which belong to the technical field of computers. The method comprises the following steps: obtaining software to be detected and at least one corresponding detection strategy in a detection strategy file stored by a client; and judging whether the software to be detected is installed or not according to the detection strategy of the software to be detected. The device comprises an obtaining module and a detection module. Each software recorded in the detection strategy file stored by the client is used as the software to be detected, the detection is carried out according to the detection strategies which aim at the software to be detected and are provided in the detection strategy file in order to judge whether the software to be detected is installed or not, and the invention can provide more accurate detection on the software installation.

Description

Detection method and device that a kind of software is installed
Technical field
The present invention relates to field of computer technology, detection method and device that particularly a kind of software is installed.
Background technology
The development of Along with computer technology, client software is more and more, spreads all over each classes such as instant messaging, audio frequency and video broadcast, resource downloading, web page browsing, input method, system supplymentary.Along with popularizing of the Internet, client software was distributed as main mode through CD before 10 years, and being transformed into through network download is main mode, and this greatly facilitates the user and obtains client software.Simultaneously, the edition upgrading speed of client software is half a year before 10 years or annually also, become present every month once in addition several days once.The renewal version of client software can increase new function, and solves defective and leak in the legacy version, and the user uses latest edition can experience up-to-date function, and the security threat of avoiding the known bugs of software that computer is brought.Therefore, the relevant application program of software manager is arranged at present, can let the user obtain the upgraded version of adorning client software.In software manager, whether the function of basis and core is exactly how to detect on the subscriber set certain a software accurately to install, and obtains its version number, thereby judges whether this software need upgrade.
In the prior art; Software manager can utilize following technology to carry out the detection whether software is installed: in the interpolation delete program of Windows for example shown in Figure 1, each mounted software and version information thereof all be from registration table Software UninstallHKEY_CURRENT_USER CurrentVersion under key assignments scanning obtain.Referring to Fig. 2, it is that QQ2009 installs that scanning gets access to dbase, and the version of this software is 1.41.1451.0.
In realizing process of the present invention, the inventor finds that there is following shortcoming at least in prior art:
Because the detection that software is installed in the prior art only can detect the software under the Uninstall node of registration table, for there not being normal registration all can not to be checked normally by partial destruction or "Green" software etc. to software or registry information in the system; In addition, the form of software version number may be lack of standardization under the registration table Uninstall node, is not suitable for the contrast of software upgrading version etc., and the detection technique mode that causes existing software to be installed is single and then occur problems such as erroneous judgement, adaptability be bad easily.
Summary of the invention
Detection method and device that the embodiment of the invention provides a kind of software to install whether have been installed in the computer in order to detect software exactly.Said technical scheme is following:
The detection method that a kind of software is installed, said method comprises:
In the detection strategy file of client storage, obtain software to be detected and corresponding detection strategy thereof, the corresponding detection strategy of said software to be detected is at least one;
Judge that according to the detection strategy of said software to be detected whether said software to be detected is installed, specifically comprises:
According to the detection strategy of said software to be detected, detect the version number of said software to be detected;
If detect the version number of said software to be detected, judge that then said software to be detected installs;
If do not detect the version number of said software to be detected, judge that then said software to be detected is not for installing.
The preparation method of said detection strategy file comprises: server is the ID of its software distribution of collecting and the detection strategy of configuration; Said ID and corresponding detection strategy thereof are sent to said client; Said client is kept at ID that receives and corresponding detection strategy thereof in the detection strategy file.
Said detection strategy comprises at least:
Obtain the appointment PE file of software to be detected, from the attribute of said appointment PE file, obtain the version number of said software to be detected;
And/or
From registration table, obtain the version number of said software to be detected.
The appointment PE file of said acquisition software to be detected specifically comprises:
Obtain the installation path of said software to be detected through registration table, and obtain the appointment PE file of said software to be detected according to said installation path;
Or
Obtain the installation path of said software to be detected according to the shortcut of said software to be detected, and obtain the appointment PE file of said software to be detected according to said installation path.
The said version number that from registration table, obtains said software to be detected specifically comprises:
Obtain the value of the version number of the unloading node under the local computer and CurrentUser in the registration table.
When said detection strategy was many, said detection strategy according to said software to be detected detected the version number of said software to be detected, specifically comprises:
Many at said software to be detected are detected in the strategy, obtain a detection strategy that was not performed as the current detection strategy, and detect the version number of said software to be detected according to said current detection strategy;
If the detection strategy that can't obtain not to be performed is as the current detection strategy, then testing result is not for detecting the version number of said software to be detected.
When judging that said software to be detected has been installed, export said version number.
The checkout gear that a kind of software is installed, said device comprises:
Obtain module, be used for detection strategy file acquisition software to be detected and corresponding detection strategy thereof in the client storage at said checkout gear place, the corresponding detection strategy of said software to be detected is at least one;
Detection module, the detection strategy of the said software to be detected that is used for obtaining according to said acquisition module judges whether said software to be detected is installed;
Said detection module specifically comprises:
Version number's detecting unit, the detection strategy of the said software to be detected that is used for obtaining according to said acquisition module detects the version number of said software to be detected;
Identifying unit is the version number that detects said software to be detected if be used for the testing result of said version number detecting unit, judges that then said software to be detected installs; If the testing result of said version number detecting unit, judges then that said software to be detected is not for installing for not detecting the version number of said software to be detected.
Said checkout gear also comprises:
Detect strategy file and obtain module, be used for the said server that reception server issues and be the ID of its software distribution of collecting and the detection strategy of configuration, and it is kept in the detection strategy file.
When said detection strategy was many, said version number detecting unit comprised:
Obtain subelement, be used for many detection strategies, obtain a detection strategy that was not performed as the current detection strategy at said software to be detected;
Detection sub-unit is used for detecting according to the current detection strategy that said acquisition subelement obtains the version number of said software to be detected;
Judge subelement, if be used for detection strategy that said acquisition subelement can't obtain not to be performed as the current detection strategy, then testing result is not for detecting the version number of said software to be detected.
Said device also comprises:
Output module is used for when said identifying unit judges that said software to be detected has been installed, exporting the detected version number of said detection module.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is:
Give client through the unified detection strategy that sends software and correspondence thereof of server; And by client storage in detecting strategy file; Client will detect each software of writing down in the strategy file as software to be detected; Detect to the detection strategy that this software to be detected provided according to detecting in the strategy file, whether install, the detection of can provide accurately, reliable software being installed in order to judge this software to be detected; Simultaneously; Give client by the unified detection strategy that sends software and correspondence thereof of server, a server can send above-mentioned information for a plurality of clients, has saved the time that client disposes voluntarily; Improve the detection efficiency that software is installed, avoided the waste of resource.
Description of drawings
Fig. 1 is the sketch map of the interpolation delete program of Windows in the prior art;
Fig. 2 is the sketch map of scanning position of the interpolation delete program of Windows in the prior art;
Fig. 3 is the flow chart of the software that provides in the embodiment of the invention 1 detection method of installing;
Fig. 4 is the preparation method flow chart of the software that provides in the embodiment of the invention 2 detection method of installing;
Fig. 5 is the sketch map of the attribute of the software master EXE that provides in the embodiment of the invention 2;
Fig. 6 is the sketch map that from registration table, obtains the software installation path that provides in the embodiment of the invention 2;
Fig. 7 is the sketch map that shortcut is obtained the installation path of software that passes through that provides in the embodiment of the invention 2;
Fig. 8 is the sketch map that passes through to obtain in the registration table Uninstall node version number of software that provides in the embodiment of the invention 2;
Fig. 9 is the sketch map that from other paths of registration table, obtains the version number of software that provides in the embodiment of the invention 2;
Figure 10 is the flow chart of the software that provides in the embodiment of the invention 2 detection method of installing;
Figure 11 is the structural representation of the checkout gear installed of the software that provides in the embodiment of the invention 3.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Embodiment 1
In order to detect mounted software and version information thereof more exactly, the embodiment of the invention provides a kind of detection method of software installation, and referring to Fig. 3, this scheme comprises:
301: in the detection strategy file of client storage, obtain software to be detected and corresponding detection strategy thereof, wherein, the detection strategy that software to be detected is corresponding is at least one;
Wherein, the preparation method of detection strategy file comprises: server is the ID of its software distribution of collecting and the detection strategy of configuration; Above-mentioned ID and corresponding detection strategy thereof are sent to client; Client saves as the detection strategy file with ID that receives and corresponding detection strategy thereof.
302:, judge whether this software to be detected is installed according to the detection strategy of software to be detected;
Wherein, step 302 specifically can for: according to the detection strategy of software to be detected, detect the version number of software to be detected;
If detect the version number of software to be detected, judge that then software to be detected installs;
If do not detect the version number of software to be detected, judge that then software to be detected is not for installing.
Wherein, the detection strategy of software to be detected can comprise at least:
Obtain the appointment PE file of software to be detected, from the attribute of specifying the PE file, obtain the version number of this software to be detected;
And/or, the version number of acquisition software to be detected from registration table.
Concrete, obtain the appointment PE file of software to be detected, specifically comprise:
Obtain the installation path of software to be detected through registration table, and obtain the appointment PE file of software to be detected according to installation path; Or
Obtain the shortcut of software to be detected, in the attribute of shortcut, obtain the installation path of software to be detected, and obtain the appointment PE file of software to be detected according to installation path.
Concrete, the version number of acquisition software to be detected from registration table specifically comprises:
Obtain the value of the DisplayVersion (version number) of Uninstall (unloading) node under LocalMachine in the registration table (local computer) and the CurrentUser (active user).
Need to prove that when the detection strategy was many, step 302 specifically comprised:
Many at software to be detected are detected in the strategy, obtain a detection strategy that was not performed as the current detection strategy, and detect the version number of software to be detected according to the current detection strategy;
If the detection strategy that can't obtain not to be performed is as the current detection strategy, then testing result is not for detecting the version number of software to be detected.
Wherein, when judging that software to be detected has been installed, export said version number.
The detection method that the embodiment of the invention provides a kind of software to install; Give client through the unified detection strategy that sends software and correspondence thereof of server; And by client storage in detecting strategy file; Client will detect each software of writing down in the strategy file as software to be detected; Detect to the detection strategy that this software to be detected provided according to detecting in the strategy file, whether install, the detection of can provide accurately, reliable software being installed in order to judge this software to be detected; Simultaneously; Give client by the unified detection strategy that sends software and correspondence thereof of server, a server can send above-mentioned information for a plurality of clients, has saved the time that client disposes voluntarily; Improve the detection efficiency that software is installed, avoided the waste of resource; And, for each software to be detected at least a detection strategy is provided all, enriched the detection selection that software manager is installed for software.
Embodiment 2
In order to detect mounted software and version information thereof more exactly; The detection method that the embodiment of the invention provides a kind of software to install; Software manager with commonly used is that example describes as executive agent, but not in order to restriction protection scope of the present invention.Concrete, this method can comprise preparation part and method entity part.
Referring to Fig. 4, at first introduce the preparation part:
401: the software manager server is collected the relevant information of all kinds of softwares;
Wherein, collection process can be carried out through the network channel, also can be carried out through modes such as mutual exchange messages between each server.
Further; The collection process of server can be a perhaps Event triggered regularly; The benefit of doing like this is, in case a certain software has been issued a new version, perhaps the registry-location of software redaction and early version is different; Perhaps newly gone out a kind of software or the detection strategy of softwares such as a kind of software of having disappeared just might change, and server just can be collected above-mentioned information in time.For example, set server every other day the operating personnel that collect above-mentioned information or server of a certain set time of (perhaps other) trigger and collect software function etc.
402: server is each software distribution ID that collected number and preservation;
For each id number that software distributed of collecting is can software of unique identification in server (or server system).The id number that distributes can be numeral, letter, symbol, perhaps above-mentioned one or more combination etc.
Server-assignment ID number process can be manual operation, also can be that server automatically performs.
Need to prove that the execution sequence of step 402 and step 403 can exchange, or carries out simultaneously.
403: for each software of collecting provides its relevant detection strategy;
Need to prove; Detection for the software installation; Actual is to attend institute's installed software and version number thereof for the detection computations machine; So, provide software relevant detection strategy promptly can think to provide how to detect computer and attend institute's installed software, and the version number that how to detect software is provided.Because in embodiments of the present invention, how detecting computer, to attend institute's installed software be to be gone to accomplish by the client at software manager place, therefore, in this step 403, provides software relevant detection strategy to be version number how to detect software is provided.
Concrete detection strategy can provide according to Different software, is that example describes with several kinds of easy detection strategies here, but not in order to restriction protection scope of the present invention.
1,, can obtain the version number of software through the appointment PE file of software referring to Fig. 5:
Wherein, for specifying the PE file need to prove, the PE file refers to files such as EXE (can carry out) file or DLL (dynamic link library) file of software.The PE file of appointment is applicable to that a software comprises the situation of a plurality of EXE files or dll file, and server can be in the detection strategy that issues be specified the PE file of the version number that obtains software.
Wherein, all can there be one in the attribute of the PE file of regular software and be the version of this kind of software, therefore, can pass through the store path of the appointment PE file of acquisition software, and from the attribute of specifying the PE file, obtain the version number of software.
Concrete, the store path that obtains the appointment PE file (the main EXE with software is an example) of software can comprise:
(1) obtains the store path of main EXE through registration table
Since possibly contain the installation path of software in the registration table, as shown in Figure 6, if can in registration table, get access to the installation path of software, then can obtain the store path of the main EXE file of software according to installation path.
(2) obtain through shortcut
Since can navigate to the main EXE path of software through the attribute of shortcut, as shown in Figure 7, so can directly obtain the store path of the main EXE of software through shortcut.
Wherein, need to prove that the position of the shortcut of the main EXE of software includes but not limited to several as follows:
A) beginning-programs menu shortcut is under the active user
B) beginning-programs menu shortcut is under all users
C) desktop shortcuts is under the active user
D) desktop shortcuts is under all users
E) start the hurdle shortcut fast, under the active user
F) start the hurdle shortcut fast, under all users
Certainly, can also support through the main EXE store path of shortcut acquisition software: the shortcut file relative path is synthetic relatively.
2, can obtain the version number of software through registration table
(1) as shown in Figure 8, obtain the value of the DisplayVersion of the Uninstall node under the LocalMachine and CurrentUser in the registration table, the registration table path is:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall
(2) as shown in Figure 9, according to the difference setting of different software, obtain the information of the software version number that comprises in other paths of registration table, for example:
HKEY_LOCAL_MACHINE\SOFTWARE\TENCENT\QQDownload\\Version
Be that the registration table path does
SOFTWARE under key name be the information of obtaining software version number among the Version.
3, according to the difference of software, can certain data file under the installation directory of software in, obtain the version number of software
404: the client that server is given each software manager place with software I D number and corresponding detection policy distribution;
Wherein, when issuing first, can utilize notification message or other message body commonly used above-mentioned information to be sent to the client at each software manager place; Non-when issuing first, can above-mentioned information be handed down to each software manager place client through updating message or other message body commonly used., need to prove when issuing first non-, can select to adopt full dose to upgrade or the mode of incremental update issues above-mentioned information.
For example; Under non-situation about issuing first; Server acquiescence client has had the data of its last time when issuing, and then, server can adopt the mode of incremental update; The data that do not comprise in the data that the last time is issued, or the data distributing that changes give client, and the data that do not change are not handed down to client; Perhaps, the mode that server can adopt full dose to upgrade, will be all (comprise change with do not change) data distributing give client.
The time of issuing of data can be regularly, also can be instant.Situation regularly can be that every other day the set time of (perhaps other) issues above-mentioned data; Instant situation can be when any variation and the configuration of the detection strategy that causes that server was whenever collected redaction version or the software of new software or software change, and promptly begins to carry out issuing of data.The data that issue can be explained and execution by client.
Wherein, the server data that are handed down to client can be represented through the xml structure.
405: client receives the software I D that server issues and detects strategy, and it is made an explanation and preserves.
Need to prove that client receives software I D number and the corresponding detection strategy that server issues, and uses a data files to preserve above-mentioned data, in the present embodiment this data file is referred to as to detect strategy file (perhaps, feature database file).Why use data file to preserve software I D number and corresponding detection strategy thereof; Rather than be hard-coded in the program code of software manager; Be because the detection strategy of software may be a real-time update; If be hard-coded in the program code, just need to revise the program code of software manager, and that data file modifications is got up is very convenient quick and can to preserve multiple detections of various software tactful.The basic structure of the detection strategy file of client storage can be as shown in table 1; Wherein, need to prove, detect in the strategy file; Describe the detection strategy that is configured to each software successively, the detection strategy of each software can comprise one or more.
Table 1
Figure GDA0000091076880000091
Figure GDA0000091076880000101
Receive the data that server issues with client, parse software I D and detect strategy, and be kept to detect and be example in the strategy file, the detection strategy file shown in can reference table 2 only supplies the convenient usefulness of explanation, not in order to do the reference of actual file.
Table 2
Figure GDA0000091076880000102
Figure GDA0000091076880000111
Under the prerequisite of step 401 to step 405 as the preparation part of this method, the basic goal of the method for the software detection that the embodiment of the invention provides is: for its each software detection that detects in the strategy file goes out dbase and version number thereof.Because the detection method of each software all is similarly on flow process, so in the present embodiment, be the explanation that example is carried out this method with the detection that detects any software in the strategy file.Referring to Figure 10, the detection method that the software that present embodiment provides is installed specifically can comprise:
1001: the software manager of client receives the triggering signal of software detection;
Wherein, the triggering signal of software detection can but be not limited to comprise: software manager detect software startup operation, user start software detection function, software manager detect time of regularly detecting software to, detect that some (non-last) software executing in the strategy file is intact to be detected etc.
1002: software manager obtains pairing of not being performed of software I D to be detected and detects strategy in detecting strategy file, and according to the detection strategy that obtains whether this software to be detected has been installed and to have been detected;
For example, be example with the table 2 that provides in the step 405, be example with the audio-visual software of QQ of software I D2 representative as software to be detected, software manager obtains the pairing detection strategy that is not performed of ID2, and like strategy 1, according to strategy 1, the path does in the registration table
Software Uninstall under file QQPlayer under obtain the value that key name is DisplayIcon; Obtain the main exe of ID2 software through this key assignments, and from the attribute of main exe, obtain the version number of software.
Wherein, need to prove that the detection strategy that is not performed can be that software manager obtains according to the preservation order that detects strategy file one by one, also can be that software manager is therefrom obtained at random.
1003: the version number that judges whether to detect this software to be detected;
If then execution in step 1006;
If then execution in step 1004 not.
1004: judge to detect in the strategy file this software to be detected and whether detect strategy in addition and be not performed;
If then execution in step 1002;
If then execution in step 1005 not.
1005: detect and to finish, judge that this software to be detected is install software not;
1006: detect and to finish, judges that this software to be detected is install software, version number is the version number of acquisition in the step 1002.
Need to prove that software manager can be for each software executing above-mentioned steps 1001 of preserving in the detection strategy file to the method shown in the step 1006, the present invention does not do and gives unnecessary details.
Need to prove that also all there are a special case in step 1005 and step 1006.
Wherein, the special case of step 1005 is: software manager does not detect the version number of software, but software has been installed to client really, and in order to overcome the problem of above-mentioned special case, the step 1005 of present embodiment can be expressed as:
Whether the appointment PE file of judging this software to be detected exists;
If exist, then detect and finish, judge that this software to be detected is install software, version number adopts self-defining form, like 0.0.0.0 or the like;
If do not exist, then detect and finish, judge that this software to be detected is install software not.
There is a special case in the step 1006; It is the version number that software manager detects software; But this version number possibly be (like deletion software time make a mistake) and left version number because some special operational, and in order to overcome the problem of above-mentioned special case, the step 1006 of present embodiment can be expressed as:
Whether the appointment PE file of judging this software to be detected exists;
If exist, then detect and finish, judges that this software to be detected is install software, version number is the version number of acquisition in the step 1002;
If do not exist, then detect and finish, judge that this software to be detected is install software not.
The detection method that the embodiment of the invention provides a kind of software to install; Give client through the unified detection strategy that sends software and correspondence thereof of server; And by client storage in detecting strategy file; Client will detect each software of writing down in the strategy file as software to be detected; Detect to the detection strategy that this software to be detected provided according to detecting in the strategy file, whether install, the detection of can provide accurately, reliable software being installed in order to judge this software to be detected; Simultaneously; Give client by the unified detection strategy that sends software and correspondence thereof of server, a server can send above-mentioned information for a plurality of clients, has saved the time that client disposes voluntarily; Improve the detection efficiency that software is installed, avoided the waste of resource; And, for each software to be detected at least a detection strategy is provided all, enriched the detection selection that software manager is installed for software.
Embodiment 3
Referring to Figure 11, the checkout gear that the embodiment of the invention provides a kind of software to install need to prove, the method for work of this checkout gear can not done here and give unnecessary details referring to the method part that provides among embodiment 1 and the embodiment 2.This device comprises:
Obtain module 1101, be used for detection strategy file acquisition software to be detected and corresponding detection strategy thereof in the client storage at checkout gear place, wherein, the detection strategy that software to be detected is corresponding is at least one;
Detection module 1102 is used for the detection strategy according to the software to be detected that obtains module 1101 acquisitions, judges whether software to be detected is installed.
Further, checkout gear also comprises:
Detect strategy file and obtain module, be used for the server that reception server issues and be the ID of its software distribution of collecting and the detection strategy of configuration, and it is kept in the detection strategy file.
Wherein, detection module 1102 specifically comprises:
Version number's detecting unit is used for detecting according to the detection strategy that obtains the software to be detected that module 1101 obtains the version number of software to be detected;
Identifying unit is the version number that detects software to be detected if be used for the testing result of version number's detecting unit, judges that then software to be detected installs; If the testing result of version number's detecting unit, judges then that software to be detected is not for installing for not detecting the version number of software to be detected.
Wherein, when the detection strategy was many, version number's detecting unit comprised:
Obtain subelement, be used for many detection strategies, obtain a detection strategy that was not performed as the current detection strategy at software to be detected;
Detection sub-unit is used for according to obtaining the version number that current detection strategy that subelement obtains detects software to be detected;
Judge subelement, if be used for obtaining detection strategy that subelement can't obtain not to be performed as the current detection strategy, then testing result is not for detecting the version number of software to be detected.
Further, checkout gear also comprises:
Output module is used for when identifying unit judges that software to be detected has been installed the version number that trade edition this shop detection arrives.
The checkout gear that the embodiment of the invention provides a kind of software to install; Give client through the unified detection strategy that sends software and correspondence thereof of server; And by client storage in detecting strategy file; Client will detect each software of writing down in the strategy file as software to be detected; Detect to the detection strategy that this software to be detected provided according to detecting in the strategy file, whether install, the detection of can provide accurately, reliable software being installed in order to judge this software to be detected; Simultaneously; Give client by the unified detection strategy that sends software and correspondence thereof of server, a server can send above-mentioned information for a plurality of clients, has saved the time that client disposes voluntarily; Improve the detection efficiency that software is installed, avoided the waste of resource; And, for each software to be detected at least a detection strategy is provided all, enriched the detection selection that software manager is installed for software.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. the software detection method of installing is characterized in that said method comprises:
In the detection strategy file of client storage, obtain software to be detected and corresponding detection strategy thereof, the corresponding detection strategy of said software to be detected is at least one;
Judge that according to the detection strategy of said software to be detected whether said software to be detected is installed, specifically comprises:
According to the detection strategy of said software to be detected, detect the version number of said software to be detected;
If detect the version number of said software to be detected, judge that then said software to be detected installs;
If do not detect the version number of said software to be detected, judge that then said software to be detected is not for installing.
2. the detection method that software as claimed in claim 1 is installed is characterized in that the preparation method of said detection strategy file comprises:
Server is the ID of its software distribution of collecting and the detection strategy of configuration; Said ID and corresponding detection strategy thereof are sent to said client; Said client is kept at ID that receives and corresponding detection strategy thereof in the detection strategy file.
3. the detection method that software as claimed in claim 1 is installed is characterized in that said detection strategy comprises at least:
Obtain the appointment PE file of software to be detected, from the attribute of said appointment PE file, obtain the version number of said software to be detected;
And/or
From registration table, obtain the version number of said software to be detected.
4. the detection method that software as claimed in claim 3 is installed is characterized in that the appointment PE file of said acquisition software to be detected specifically comprises:
Obtain the installation path of said software to be detected through registration table, and obtain the appointment PE file of said software to be detected according to said installation path;
Or
Obtain the installation path of said software to be detected according to the shortcut of said software to be detected, and obtain the appointment PE file of said software to be detected according to said installation path.
5. the detection method that software as claimed in claim 3 is installed is characterized in that, the said version number that from registration table, obtains said software to be detected specifically comprises:
Obtain the value of the version number of the unloading node under the local computer and CurrentUser in the registration table.
6. the detection method that software as claimed in claim 1 is installed is characterized in that, when said detections is tactful when being many, said detection strategy according to said software to be detected detects the version number of said software to be detected, specifically comprises:
Many at said software to be detected are detected in the strategy, obtain a detection strategy that was not performed as the current detection strategy, and detect the version number of said software to be detected according to said current detection strategy;
If the detection strategy that can't obtain not to be performed is as the current detection strategy, then testing result is not for detecting the version number of said software to be detected.
7. the detection method that software as claimed in claim 1 is installed is characterized in that said method also comprises:
When judging that said software to be detected has been installed, export said version number.
8. the checkout gear installed of a software is characterized in that said device comprises:
Obtain module, the detection strategy file that is used for the client storage at said checkout gear place obtains software to be detected and corresponding detection strategy thereof, and the corresponding detection strategy of said software to be detected is at least one;
Detection module, the detection strategy of the said software to be detected that is used for obtaining according to said acquisition module judges whether said software to be detected is installed;
Said detection module specifically comprises:
Version number's detecting unit, the detection strategy of the said software to be detected that is used for obtaining according to said acquisition module detects the version number of said software to be detected;
Identifying unit is the version number that detects said software to be detected if be used for the testing result of said version number detecting unit, judges that then said software to be detected installs; If the testing result of said version number detecting unit, judges then that said software to be detected is not for installing for not detecting the version number of said software to be detected.
9. the checkout gear that software as claimed in claim 8 is installed is characterized in that said checkout gear also comprises:
Detect strategy file and obtain module, be used for the said server that reception server issues and be the ID of its software distribution of collecting and the detection strategy of configuration, and it is kept in the detection strategy file.
10. the checkout gear that software as claimed in claim 9 is installed is characterized in that, when said detection strategy was many, said version number detecting unit comprised:
Obtain subelement, be used for many detection strategies, obtain a detection strategy that was not performed as the current detection strategy at said software to be detected;
Detection sub-unit is used for detecting according to the current detection strategy that said acquisition subelement obtains the version number of said software to be detected;
Judge subelement, if be used for detection strategy that said acquisition subelement can't obtain not to be performed as the current detection strategy, then testing result is not for detecting the version number of said software to be detected.
11. the checkout gear that software as claimed in claim 9 is installed is characterized in that said device also comprises:
Output module is used for when said identifying unit judges that said software to be detected has been installed, exporting the version number that said version number detection arrives.
CN2010100005651A 2010-01-12 2010-01-12 Detection method and device for software installation Active CN101789888B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2010100005651A CN101789888B (en) 2010-01-12 2010-01-12 Detection method and device for software installation
PCT/CN2011/070025 WO2011085647A1 (en) 2010-01-12 2011-01-04 Method and apparatus for detecting software installation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010100005651A CN101789888B (en) 2010-01-12 2010-01-12 Detection method and device for software installation

Publications (2)

Publication Number Publication Date
CN101789888A CN101789888A (en) 2010-07-28
CN101789888B true CN101789888B (en) 2012-04-11

Family

ID=42532953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010100005651A Active CN101789888B (en) 2010-01-12 2010-01-12 Detection method and device for software installation

Country Status (2)

Country Link
CN (1) CN101789888B (en)
WO (1) WO2011085647A1 (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789888B (en) * 2010-01-12 2012-04-11 腾讯科技(深圳)有限公司 Detection method and device for software installation
CN101986283A (en) * 2010-11-16 2011-03-16 北京安天电子设备有限公司 Method and system for detecting existed Windows system bugs
CN102737028A (en) * 2011-04-01 2012-10-17 深圳市赛格导航科技股份有限公司 Synchronization method and synchronization system of database
CN102955911B (en) * 2011-08-18 2015-12-16 腾讯科技(深圳)有限公司 Wooden horse scan method and system
CN102722392B (en) * 2012-06-07 2015-11-25 腾讯科技(深圳)有限公司 Software running method and system
CN103514089B (en) * 2012-06-26 2016-03-09 腾讯科技(深圳)有限公司 The software of software manager installs detection method and system
CN102736978B (en) * 2012-06-26 2015-09-30 北京奇虎科技有限公司 A kind of method and device detecting the installment state of application program
CN103577217A (en) * 2012-08-10 2014-02-12 腾讯科技(深圳)有限公司 Method and device for displaying software
CN103177104A (en) * 2013-03-26 2013-06-26 北京小米科技有限责任公司 Searching method and device of application program
CN103294565B (en) * 2013-06-24 2016-08-31 贝壳网际(北京)安全技术有限公司 Method, device and equipment for detecting installed application
CN103440144B (en) * 2013-08-07 2016-09-28 北京奇虎科技有限公司 A kind of method to set up to the default software that equipment uses and device
CN103473163B (en) * 2013-09-11 2016-10-26 腾讯科技(深圳)有限公司 application program detection method and device
CN103631603A (en) * 2013-12-16 2014-03-12 北京奇虎科技有限公司 Software cleaning method and system
CN103810105B (en) * 2014-03-06 2016-08-31 中国工商银行股份有限公司 application version detection method and device
CN104239215B (en) * 2014-09-30 2018-02-02 北京奇虎科技有限公司 The investigation method and apparatus of garbageware
CN106294137A (en) * 2016-08-01 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of linux User space spin lock deadlock detection method and system
CN107767594A (en) * 2017-11-09 2018-03-06 福州汇思博信息技术有限公司 The detection method and system of a kind of pre installation software package
CN108920155A (en) * 2018-05-04 2018-11-30 天津猎鹰网络技术有限公司 Software installation treating method and apparatus
US11157583B2 (en) 2018-09-14 2021-10-26 International Business Machines Corporation Software detection based on user accounts
CN109324872B (en) * 2018-09-21 2020-12-25 北京隆普智能科技有限公司 Method and system for verifying virtual machine change request
CN110096443A (en) * 2019-04-28 2019-08-06 北京奇安信科技有限公司 It is a kind of to detect the method and device for having installed software
CN110647739A (en) * 2019-07-26 2020-01-03 平安科技(深圳)有限公司 Software installation detection method, device, terminal and storage medium
CN115865809B (en) * 2023-02-02 2023-06-02 爱集微咨询(厦门)有限公司 Data transmission method, device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525318A (en) * 2002-12-31 2004-09-01 鸿富锦精密工业(深圳)有限公司 Remote program installing system and method for mobile computing device
CN1797337A (en) * 2004-12-29 2006-07-05 北京软通科技有限责任公司 Method for installing software of computer automatically
CN101221511A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Automatic installation and upgrading method of terminal unit application software
CN101593121A (en) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 The method of on-line software updating, Apparatus and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7574481B2 (en) * 2000-12-20 2009-08-11 Microsoft Corporation Method and system for enabling offline detection of software updates
US8216071B2 (en) * 2002-03-20 2012-07-10 Intel Corporation Method and apparatus for software delivery and management
CN100501697C (en) * 2007-11-09 2009-06-17 中兴通讯股份有限公司 Software version upgrade mounting test system and method thereof
WO2009115367A1 (en) * 2008-03-20 2009-09-24 International Business Machines Corporation Method and system for detecting the installation and usage of software in an application virtualization environment
CN101789888B (en) * 2010-01-12 2012-04-11 腾讯科技(深圳)有限公司 Detection method and device for software installation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525318A (en) * 2002-12-31 2004-09-01 鸿富锦精密工业(深圳)有限公司 Remote program installing system and method for mobile computing device
CN1797337A (en) * 2004-12-29 2006-07-05 北京软通科技有限责任公司 Method for installing software of computer automatically
CN101221511A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Automatic installation and upgrading method of terminal unit application software
CN101593121A (en) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 The method of on-line software updating, Apparatus and system

Also Published As

Publication number Publication date
WO2011085647A1 (en) 2011-07-21
CN101789888A (en) 2010-07-28

Similar Documents

Publication Publication Date Title
CN101789888B (en) Detection method and device for software installation
EP2122561B1 (en) Web data usage platform
CN101794222A (en) Software version collecting method, management system and software upgrading detection method and system
US7735079B1 (en) Securely hooking installations for compatibility with other applications
US20060020937A1 (en) System and method for extraction and creation of application meta-information within a software application repository
US9548891B2 (en) Configuration of network devices
CN102043655A (en) Method and system for carrying out advanced uninstall on software
US20070174832A1 (en) Method for restoring software applications on desktop computers
US7774771B2 (en) Method and system for managing and organizing software package installations
JP5531692B2 (en) DEVICE MANAGEMENT DEVICE, DEVICE MANAGEMENT SYSTEM, INFORMATION MANAGEMENT METHOD, INFORMATION MANAGEMENT PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
US20100057905A1 (en) System and method for software usage discovery
CN102262544A (en) Method and device for upgrading software
US20090327630A1 (en) Software configuration item back-up facility
CN109298871B (en) Software version monitoring and deploying method for intelligent scheduling system of power grid
CN105653329A (en) Application management method, apparatus and system
CN102165419A (en) Computer system, method, and computer program for managing batch job
EP2013721A1 (en) A method for generating a robust software signature
CN105528205A (en) Update control method and update control system
CN103902562A (en) Method and device for upgrading terminal databases
EP2130164A1 (en) A method and system for populating a software catalogue with related product information
CN102156650B (en) Method and device capable of implementing automatic analysis of patch
WO2020001391A1 (en) Dynamic management method for menu, server and system
US8365165B2 (en) Dynamic addition of products and removal of software products on a distribution server
US20120096453A1 (en) Software Package Management Mechanism
US7272600B1 (en) Migrating large data sets for products upgrades

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant