CN103500109B - Method and device for achieving file collection and software package automatic installation - Google Patents
Method and device for achieving file collection and software package automatic installation Download PDFInfo
- Publication number
- CN103500109B CN103500109B CN201310452753.1A CN201310452753A CN103500109B CN 103500109 B CN103500109 B CN 103500109B CN 201310452753 A CN201310452753 A CN 201310452753A CN 103500109 B CN103500109 B CN 103500109B
- Authority
- CN
- China
- Prior art keywords
- installation
- file
- software kit
- interface
- realizing
- 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
Links
- 238000009434 installation Methods 0.000 title claims abstract description 516
- 238000000034 method Methods 0.000 title claims abstract description 84
- 238000011900 installation process Methods 0.000 claims description 69
- 238000004513 sizing Methods 0.000 claims description 36
- 238000012856 packing Methods 0.000 claims description 33
- 238000012544 monitoring process Methods 0.000 claims description 22
- 230000009471 action Effects 0.000 claims description 17
- 238000007599 discharging Methods 0.000 claims description 16
- 230000004048 modification Effects 0.000 claims description 10
- 238000012986 modification Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 abstract description 12
- 230000006870 function Effects 0.000 description 22
- 238000004088 simulation Methods 0.000 description 15
- 230000000694 effects Effects 0.000 description 7
- 241000894007 species Species 0.000 description 6
- 230000006837 decompression Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000012216 screening Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 244000118350 Andrographis paniculata Species 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 210000004247 hand Anatomy 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000029058 respiratory gaseous exchange Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method and device for achieving file collection and a method and device for achieving software package automatic installation. The method for achieving file collection comprises the steps that a software package capable of being installed is obtained; the software package capable of being installed is operated; when an installation interface of the software package appears, an installation template matched with the installation interface is inquired in an installation template library; corresponding installation operation is conducted on the installation interface according to an order corresponding to the matched installation template, and a next installation interface is obtained until installation of the software package is completed; files released in the process of installation of the software package are monitored; the needed files released in the process of installation of the software package are collected; the needed files released in the process of installation of the software package are collected. According to the method and device, the files can be collected more completely and efficiently.
Description
Technical field
The present invention relates to information gathering techniques field, more particularly to a kind of method and dress for realizing file collection
Put.The invention further relates to a kind of method and apparatus for realizing the automatic installation of software kit.
Background technology
It is growing with the Internet, requirement of the user to the service provider of various Internet services also more and more higher, in
It is that these service providers must improve constantly the service for itself providing the user, the demand of user could be met, this also requires this
A little service providers itself will obtain more valuable information.In these valuable information, the collection of various files is particularly
It is important, such as file of PE class files and script type etc..
Universal Extractor of the prior art(General extraction)Be one can be from some conventional archives texts
The program of extraction document in part, is capable of achieving the collection to file by the Program extraction file.Either simple ZIP file,
Installation procedure(Such as Wise or NSIS), or Windows setup (.msi) bag.As long as specifying file to be extracted and target
File, Universal Extractor can automatically analyze file type and complete to extract.But, Universal
Extractor can only will pack format identification out known to some, and then extraction document, although known packing form is very
It is many, but still have many emerging unknown packing form None- identifieds, and then these emerging unknown packings cannot be extracted
The file of form.
In the prior art, another is that first file is decompressed to the usual way that file is collected,
Operation is manual after installing or is collected using other third party's file collection instruments.But existing file collection instrument is needed
Decompression to be carried out in decompression instrument to contract after installation to file bag, start-up by hand using the collection that can just carry out file, text
Part collects process complexity, and collection efficiency is low.
A kind of method and system for realizing that patch is installed automatically is also disclosed in prior art, the receipts to file are realized
Collection;In the method, by the hiding desktop that calling system function creation is new, patch is run on the newly hiding desktop and installed
Program;Patch installation steps are completed by simulating click.The program is a kind of installation process of customization, before the mounting
Know need what control clicked on, where clicking on, which type of completes to install.The installation of this customization just can be with
Realized using QMacro.But the different program that this mode cannot process batch is installed, poor universality.
On the basis of the above-mentioned method and system for realizing the automatic installation of patch, also disclose in prior art a kind of logical
The method for crossing the artificial intelligence click being analyzed to installation interface is installed to software kit, and realizes file collection.However,
But in practice, software kit installation process is extremely complex, different software is larger in the interface difference of different erection stages, described
Artificial intelligence is clicked on method and is usually terminated as a variety of causes cannot continue installation in installation process, causes install failure,
So as to also have no way of collecting file.
Therefore, in the urgent need to the technical problem that those skilled in the art solve is that, how to provide it is a kind of more comprehensively, it is high
The file collection method of effect.
The content of the invention
In view of the above problems, the invention provides a kind of method and apparatus for file collection, can more comprehensively, it is higher
The collection file of effect.Present invention also offers a kind of method and apparatus for realizing the automatic installation of software kit, it is possible to increase soft
The installation effectiveness of part bag, and go for the automatic installation of different type software kit.
According to one aspect of the present invention, there is provided a kind of method for realizing file collection, including:Acquisition can be installed
Software kit;Run the installable software kit;When there is the installation interface of the software kit, look in installation form storehouse
The installation form matched with the installation interface by inquiry;Order according to corresponding to the installation form for being matched is held to installation interface
The corresponding installation action of row, into next installation interface, till the software kit installation;Monitor the software kit
The file discharged in installation process;Collect the file needed for discharging in the installation process of the software kit.
Optionally, the installation form matched with the installation interface of inquiring about in installation form storehouse is included:Obtain
The characteristic information of the installation interface;By the installation form in the characteristic information of the installation interface and the installation form storehouse
Character pair information is compared;It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
Optionally, the characteristic information include control quantity on the size of installation interface, installation interface, control location with
And control species.
Optionally, the characteristic information by the installation interface is corresponding with the installation form in the installation form storehouse
Characteristic information compare including:Coarse sizing is carried out to the installation form in the installation form storehouse, installation form group is selected;By institute
The character pair information for stating the installation form in the characteristic information of installation interface and the installation form group is contrasted.
Optionally, the installation form to the installation form storehouse carries out coarse sizing, and selecting installation form group includes:Root
The packing lattice are selected in the installation form storehouse according to producer's information of the packing form or the software kit of software kit to be installed
All installation forms that formula is adopted, as installation form group.
Optionally, the file for discharging in the monitoring software kit installation process includes:By calling Hook Function
File operation stream is captured, the file path of the file discharged in the software kit installation process is obtained;
File needed for the collection is discharged in the installation process of software kit includes:According to the file road of the file
Footpath, collects the file needed for discharging in the installation process of the software kit.
Optionally, the file needed for the collection is discharged in the installation process of the software kit includes:
Identify in the file discharged from the software kit installation process and belong to PE class files and/or script class file;
Copy the PE class files and/or script class file;The PE class files and/or script are obtained by calling system api function
The file attribute information of file.
Optionally, the file attribute information of the acquisition PE class files and/or script file includes:Obtain the PE classes text
Any one or more in the size of part and/or script class file, creation time, modification time, file signature.
According to another aspect of the present invention, there is provided a kind of device for realizing file collection, including:
Software kit obtaining unit, for obtaining installable software kit;Running unit, it is described installable soft for running
Part bag;Matching unit, for when there is the installation interface of the software kit, inquiring about in installation form storehouse and installation circle
The installation form matched by face;Performance element, holds to installation interface for the order according to corresponding to the installation form for being matched
The corresponding installation action of row, into next installation interface, till the software kit installation;Monitoring unit, is used for
The file discharged in monitoring the software kit installation process;Collector unit, for collecting in the installation process of the software kit
The required file of release.
Optionally, the matching unit includes:Characteristic acquisition unit, the feature for obtaining the installation interface are believed
Breath;Comparison unit, for will be the characteristic information of the installation interface corresponding with the installation form in the installation form storehouse special
Reference breath is compared;It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
Optionally, the characteristic acquisition unit is specifically for obtaining on the size of the installation interface, installation interface
Control quantity, control location and control kind of information.
Optionally, the comparison unit also includes:Coarse sizing unit, is carried out slightly to the installation form in the installation form storehouse
Screening, selects installation form group;
Optionally, the coarse sizing unit is specifically for the packing form or the system of the software kit according to software kit to be installed
Author information selects all installation forms that the packing form is adopted in the installation form storehouse, used as installation form group.
Optionally, the monitoring unit, specifically for capturing file operation stream by calling Hook Function, obtains in institute
The file path of the file discharged in stating software kit installation process;The collector unit, specifically for according to the monitoring unit
The file path of offer, collects the file needed for discharging in the installation process of the software kit.
Optionally, the collector unit is specifically included:Identification subelement, for discharging from the software kit installation process
File in identify the file of the file and/or script type that belong to PE classes;Copy subelement, for copying the PE class files
And/or script class file;Attribute obtains subelement, for obtaining the PE class files and/or foot by calling system api function
The file attribute information of presents.
Optionally, the attribute obtains subelement, specifically for obtaining the big of the PE class files and/or script class file
Any one or more in little, creation time, modification time, file signature.
According to another aspect of the present invention, there is provided a kind of for realizing the automatic method installed of software kit, including:Obtain
Obtain installable software kit;Run the installable software kit;When there is the installation interface of the software kit, mould is being installed
The installation form matched with the installation interface is inquired about in plate storehouse;Order according to corresponding to the installation form for being matched is to peace
Dress interface performs corresponding installation action, into next installation interface, till the software kit installation.
Optionally, the installation form matched with the installation interface of inquiring about in installation form storehouse is included:Obtain
The characteristic information of the installation interface;By the installation form in the characteristic information of the installation interface and the installation form storehouse
Character pair information is compared;It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
Optionally, the characteristic information include control quantity on the size of installation interface, installation interface, control location with
And control species.
Optionally, the characteristic information by the installation interface is corresponding with the installation form in the installation form storehouse
Characteristic information compare including:Coarse sizing is carried out to the installation form in the installation form storehouse, installation form group is selected;By institute
The character pair information for stating the installation form in the characteristic information of installation interface and the installation form group is contrasted.
Optionally, the installation form to the installation form storehouse carries out coarse sizing, and selecting installation form group includes:Root
The packing lattice are selected in the installation form storehouse according to producer's information of the packing form or the software kit of software kit to be installed
All installation forms that formula is adopted, as installation form group.
According to another aspect of the present invention, there is provided a kind of for realizing the automatic device installed of software kit, including:It is soft
Part bag obtaining unit, for obtaining installable software kit;Running unit, for running the installable software kit;Matching
Unit, for when there is the installation interface of the software kit, inquiring about in installation form storehouse and being matched with the installation interface
Installation form;Performance element, performs to installation interface for the order according to corresponding to the installation form for being matched corresponding
Installation action, into next installation interface, till the software kit installation.
Optionally, the matching unit includes:Characteristic acquisition unit, the feature for obtaining the installation interface are believed
Breath;Comparison unit, for will be the characteristic information of the installation interface corresponding with the installation form in the installation form storehouse special
Reference breath is compared;It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
Optionally, the characteristic acquisition unit is specifically for obtaining on the size of the installation interface, installation interface
Control quantity, control location and control kind of information.
Optionally, the comparison unit also includes:Coarse sizing unit, is carried out slightly to the installation form in the installation form storehouse
Screening, selects installation form group;
Optionally, the coarse sizing unit is specifically for the packing form or the system of the software kit according to software kit to be installed
Author information selects all installation forms that the packing form is adopted in the installation form storehouse, used as installation form group.
According to a kind of method and apparatus specific embodiment for realizing file collection that the present invention is provided, the present invention is disclosed
Following technique effect:The automatic installation of software kit is realized by way of installation interface is matched with installation form, and then
Realize the collection of the file to discharging in installation process so that the file collected is more comprehensively.Being additionally, since is carrying out installing
Cheng Zhong, is the installation by installation interface is matched with installation form, after the match is successful by defining to installation form
Order performs installation, is not only able to realize the automatic installation of software kit, and can realize the accurate installation of each step, and this is significantly
The successful efficiency of installation is improve, and, can also realize that various types of software kits are installed by template matching, with very high
Versatility, and then cause file collection efficiency and comprehensive being obtained for significantly improve.
According to a kind of method and apparatus embodiment for realizing the automatic installation of software kit that the present invention is provided, the present invention is public
Following technique effect is opened:In installation process is carried out, it is, by installation interface is matched with installation form, to match into
By performing installation to the installation order that installation form is defined after work(, it is not only able to realize the automatic installation of software kit, Er Qieke
To realize the accurate installation of each step, the successful efficiency of installation is which greatly enhances;And, can also be realized by template matching
Various types of software kits are installed, with very high versatility, from the automatic mount scheme of software kit for causing the embodiment of the present invention,
Go for the installation of all kinds software kit, therefore range of application is wider, that what is installed automatically is in hgher efficiency.
Description of the drawings
By the detailed description for reading hereafter preferred implementation, various other advantages and benefit are common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for the purpose for illustrating preferred implementation, and is not considered as to the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 is for a kind of embodiment of the method flow chart for realizing file collection of the present invention;
Fig. 2 is a kind of device embodiment schematic diagram for realizing file collection of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Fig. 1 is referred to, which is a kind of method first embodiment flow chart for realizing file collection of the present invention.In this reality
Apply in example, comprise the steps:
Step 110:Obtain installable software kit.
During this step is implemented, there are various specific embodiments.Such as, software can be passed through by server
Collect or artificially collect the link of the installable software kit of download provided in current network, then downloaded by server automatically or
Person manually downloads installable software kit.For another example, monitor the software of renewal in need on certain computer, then can
To go to download the AKU of the software.Installable software kit can be the software kit of upgrading, or it is brand-new it is a can
The software kit of installation.The embodiment of the present invention is not restricted to how to obtain installable software kit, can as long as can get
The software kit of installation, you can using the technical scheme of the embodiment of the present invention.
Step 120:Run the installable software kit.
When implementing, installable software kit can be run by clicking on.Calling system API letters can also be passed through
Number creat process, the installable software kit of automatic running, to reach the effect of automatic running.
Step 130:When there is the installation interface of the software kit, inquire about in installation form storehouse and the installation interface
The installation form for being matched.
After installable software kit is run, it may appear that various installation interfaces.Further, it is necessary to which installation interface is carried out
Analysis, by the characteristic information for analyzing installation interface, then according in the characteristic information and installation form storehouse of the installation interface
Installation form matched.The characteristic information of the installation interface described in the embodiment of the present invention includes that the size of installation interface is big
It is little, the species of the quantity of control, the position of control and control on installation interface.Wherein, the control is referred on installation interface
Can realize the Action Button that be controlled to installation process by clicking on or simulating to click on.For example, it is arranged at installation interface
On in buttons such as " continue install ", " continuation ", " next step ", " next ", " return " " previous step ", " stopping " or " stop ".
The control species refers to that the action of control realizes purpose for example, continues to install class, returns class, stop installing class, completes to install
Class etc.." continuing to install ", " continuation ", " next step ", " next " belong to continue to install class button, belong to similar control.
Wherein, the specific implementation for obtaining the positional information of control button has various, only provides several concrete realities below
The example of existing mode.
(One)Obtain the first specific implementation of the positional information of control button:
A:Call to enumerate the API calls of control type on interface, lookup is currently installed on type of button on interface
Control;B:Analyze the content of text of the control of the type of button;C:By calling to obtain system API of positional information
Function, obtains the positional information of the control button.Specifically, for different operating system, the api function for calling is not to the utmost
It is identical, by taking windows as an example, EnumChildWindows this Windows API can be called to enumerate the control on installation interface
Part type and control value, control type are varied, such as Static, various Button, TRzBitBtn etc..Wherein, if
Control type for " Button, TButton, TNewButton, TTntButton.UnicodeClass, obj_BUTTON,
The types such as TRzBitBtn ", then show that the control is type of button.After the control of type of button is found out, it is possible to analyze these
The content of text of control, such as content of text are " continuing to install ", " continuation ", " next step " etc..Finally, by call can be with
The api function for obtaining control location information obtains the positional information of control button, such as with api function FindWindow and
After FindWindowEx finds control handle, then the information needed such as the position of control are got with GetWindowRect.
(Two)Obtain the second specific embodiment of the positional information of control button:
The position of the control button of the installation interface in certain software kit installation process has been obtained by certain mode
Information, that can obtain the positional information of control button on the software kit subsequent installation interface by following manner:According to control
Button location information in a upper installation interface, the identical location recognition in interface is currently installed on go out the current peace
The positional information of control button in dress interface.In general, for same software kit, on each installation interface, corresponding control is pressed
Position of the button on interface is all relatively-stationary, therefore, it can the residing position in a upper installation interface according to control button
Put, judge the position of control button in next installation interface.
After the characteristic information for obtaining the installation interface, by the characteristic information of the installation interface and the installation mould
The character pair information of the installation form in plate storehouse is compared.
Wherein, the installation form storehouse described in the present embodiment is installation circle of the different installation steps for including different software bag
The data base of surface information.After installable software kit is run, it may appear that various installation interfaces, can be obtained by above-mentioned method
The characteristic information of installation interface is obtained, according to the characteristic information, is found in the installation form storehouse and the installation interface is special
The installation form that reference manner of breathing coordinates.
Wherein, the characteristic information by the installation interface is corresponding with the installation form in the installation form storehouse special
Reference breath compare including:Coarse sizing is carried out to the installation form in the installation form storehouse, installation form group is selected;Will be described
The character pair information of the installation form in the characteristic information of installation interface and the installation form group is contrasted.It is concrete and
Speech, after a certain installation interface for obtaining software to be installed, first can be according to the packing form of software kit to be installed in institute
All installation forms that the packing form is adopted are selected in stating installation form storehouse, as installation form group.Identical packing lattice
Installation interface and form of the software packaging of formula after installation is extracted is substantially coincident, but also otherwise varied, for example, uses
Nsis packing installation kit, start installation interface be it is the same, but some installation processes have popularization select page, some installations
Process does not promote selection page, so has and promotes software one template of needs for selecting page, does not promote and select the software of page to need
Want another template;The pattern of installation form can substantially be determined according to Software package form, but not can determine which uses
Template is installing software, so multiple installation forms can be matched, forms installation form group.This equivalent to coarse sizing, further
Screening matching can be carried out on the basis of the coarse sizing.This can reduce matching times, record relative to ergodic data storehouse one by one
Pattern, efficiency can be improved.Certainly, the coarse sizing can also be carried out otherwise, such as by same producer or system
Its installation interface of software kit and FormatStyle for making team's making is substantially coincident, it is also possible to according to producer or production team
Information is carrying out coarse sizing.
On the basis of coarse sizing has been performed, you can installation form group is accurately screened, to filter out and software kit
The installation form that installation interface matches.The factor that needs consider when judging whether installation form matches is as follows, i.e., interface is
Whether no size is consistent, and whether control quantity is identical, and whether control type is identical, and whether the content on control is identical etc., can
To set as needed, above-mentioned condition fully meets or part is met to match, otherwise not match that.
Step 130:Order according to corresponding to the installation form for being matched performs corresponding installation action to installation interface,
Into next installation interface, till the software kit installation;
After matching template is found by step 120, installation interface is performed defined in the installation form click on or
Order is clicked in simulation, is completed the installation action of the installation interface, is entered into next installation interface.Each installation interface is performed both by
The condition coupling exectorial action, until completing installation site, that is, occur comprising " finish " or " installation "
Till installation interface appearance on the button of printed words.
That is, above-mentioned installation process is conceptualized as " according to the corresponding installation order of condition-execution ", wherein, institute
The condition of stating is template matching, and installation order is clicked on for simulation.The example of template is as follows:
The simulation click is specifically as follows analog mouse click, and the specific implementation that analog mouse is clicked on is a lot, than
By sending the message to realize as, realize mainly by SendMessage and PostMessage, it is as follows:
SendMessage(hWnd,WM_COMMAND,MAKELPARAM(BN_CLICK,ID),hButto nWnd).For another example, may be used also
The position coordinateses for needing to click are set with firstly the need of by SetCursorPos functions, then by mouse_event etc.
Function(The many kinds of parameters such as including MOUSEEVENTF_LEFTDOWN, MOUSEEVENTF_LEFTUP, MOUSEEVENTF_MOVE)
Simulation presses the operations such as mouse, release mouse, mobile mouse in corresponding position, so as to reach the effect that simulation is clicked on.Also
Mode is clicked in a lot of other simulations, and for example, simulating keyboard is clicked on and simulated touch is clicked on.Using the concrete of simulating keyboard click
Realization is similar with the scheme clicked on using analog mouse, simply by SendMessage and PostMessage after button is chosen
The parameter of click replaces with the parameter of keyboard click(The parameter of carriage return is replaced with such as), here is omitted.Simulation is touched
Touch the mode of click, and similar, it is also possible to realized by SendMessage and PostMessage.It is any to realize
The technical implementation way that simulation is clicked on can be using in embodiments of the present invention.Additionally, simulation click mode described herein,
It is not limited to simulation and clicks on continuation installation class button, applies also for simulation and click on other buttons, be also applied in the embodiment of the present invention
Other need the technology point that simulation is clicked on, because realizing that principle is the same, therefore other parts for being related to simulate click repeat no more, please
Referring to being described herein as.
The installation process of software kit can typically be related to multiple installation interfaces, that is, need simulation to click on multiple installation interfaces
On installation class button, can just be finally completed installation process, it is possible to repeat matching and simulate click on the step of, directly
To installation.Whether the general information by interface can be installed with automatic decision and be completed, such as, if had in interface
Control type is ctrl1 and is worth the control comprising value1, and has control type for control that ctrl2 and value are value2(Example
Rule can such as be write a Chinese character in simplified form into<rule value="ctrl1@@value1@@ctrl2@@value2"/>), then be considered as the software into
Work(is installed.Other may determine that the completed mode of installation should be also applied in the embodiment of the present invention, such as using analysis circle
The mode of button content of text in face, if analyzing the word that " completing ", " installation " etc. state installation class,
Also provable installation, the button for clicking on installation class terminate whole installation process.
By more than, each step can just complete the automatic installation of most softwares.The agreement page of software, component page, language choosing
The installation interface selected and prompting frame by way of above-mentioned template matching can complete simulation and click through next step.
Some installable software kits are compressed packages when downloading, it is therefore desirable to decompressed.In most cases run
Meeting automatic identification compressed format during software kit, and then decompressed by corresponding decompression tool.In decompression procedure, boundary is being installed
The control of progress bar typically occurs on face, therefore can be currently installed in interface with the presence or absence of progress bar type by analysis
Control, judges current whether in decompressed state.Optionally, cause because correctly decompressing under individual cases to process
Normal mounting is unable to, a timeout mechanism can be set, when still not disappearing more than Preset Time decompression progress bar, then stop peace
Class button is installed in the stopping that dress, i.e. analog mouse are clicked on certain installation interface.
It is possible that including the installation interface of speech selection in installation process, by analyzing the word on installation interface
Information can identify language selection interface, have the content such as " language " or " language " on such as interface, then confirm current peace
Dress interface is language selection interface, it is generally the case that selected according to default option, then simulation is clicked on the installation interface
Continuation install class button.
Additionally, it is also possible that in the stage of environmental preparation process, this stage is basic to installing in installation process
Without affecting, in the stage, class button usually ash is installed in the continuation in installation interface, i.e., cannot click on state, only ring
After border set-up procedure terminates, continue installation class button and can just click on, and then click on continuation by analog mouse class button is installed
Next installation interface can be entered.
Additionally, be also possible to the process stage in installing occurs in software installation process, can in this stage
So that by the installation progress bar control on installation interface, judgement is currently installed on the stage in installing, general in the stage
Any button of click need not be simulated, the next installation interface of automatic spring just after installation process terminates only is needed to wait for, typically
The interface of installation.
By each step above, the installation of the software kit for having completed, then subsequently just can be in installation process
The file of middle release is collected.
Step 150:The file discharged in monitoring the software kit installation process.
Specifically, file operation stream can be captured by calling Hook Function, is obtained in software kit installation process
The file path of the file of release.In Windows operating system, Windows operating system works in the protected mode of CPU
Under, operating system nucleus and device driver work in 0 ring(ring0), referred to as kernel mode;Application program, dynamic link library
Work in 3 rings, referred to as User space.The API to file operation that Windows is provided works in User space, can only be for applying journey
Prologue is used.Realize filtering file operation(Monitoring can also be claimed), it is necessary to realize in file system driver.When should
Use program(Such as during software kit is installed)When operating to file, operation requests are descended in kernel state
I/O managers, I/O managers set up corresponding IRP bags according to the request from User space(I/O request packet),
And IRP is sent to into file system driver process.File system driver is the driving model of a layering in itself, on
Layer is file system filter driver, and centre is NTFS(New Technology File System, new technique archives system
System)、FAT(File Allocation Table, FAT)Etc. file system driver, bottom is that storage device is driven
Dynamic program.The monitoring of the file to discharging in software kit installation process, is exactly the upper strata in file system driver layering
Hook, filters IRP bags, obtains the file operation being concerned about, such as obtains the file path of the file discharged in installation process.Tool
For body, hook can be installed by fnInstall functions, hook is started by fnStartHookEx, add call back function,
Then filtering rule is added by fnAddRule, obtains the file path of the various files discharged in software kit installation process
Etc. information.
Step 160:Collect the file needed for discharging in the installation process of the software kit.
The file path of the file for obtaining is monitored according to step 150, the institute discharged in the installation process of software kit is collected
The file for needing.Specifically, identify from the file of release and belong to desirable type(Such as PE classes and/or script type)File,
Then the file path according to these files, copies these files, and the file of collection includes but is not limited to newly-increased file, may be used also
With including modification or the file deleted(May be related to during AKU is such as installed), and can according to file path,
Copied before original file is modified or deleted, so as to preserve more fully file.
Additionally, in order to more fully collect file, the file that calling system api function obtains the file collected can be passed through
Any one or more in attribute information, size, creation time, modification time, file signature such as including file etc..
The size of file when implementing, for example, can be obtained by GetFileSize, file wound is obtained by FindFirstFile
Build, modification time, by CertGetNameString obtain signature string, by WinVerifyTrust obtain checking signature string
Effectiveness etc..
A kind of embodiment of the method for realizing file collection of the present invention is disclosed above, it is relative with methods described embodiment
Should, the invention also discloses a kind of device embodiment for realizing file collection, refer to Fig. 2, which is a kind of use of the invention
In the device first embodiment schematic diagram for realizing file collection.As device embodiment is substantially similar to embodiment of the method, so
Describe fairly simple, related part is illustrated referring to the part of embodiment of the method.Device embodiment described below is only
It is schematic.
Described device embodiment includes:
Software kit obtaining unit 201, for obtaining installable software kit;Running unit 202, described can pacify for running
The software kit of dress;Matching unit 203, for for when there is the installation interface of the software kit, looking in installation form storehouse
The installation form matched with the installation interface by inquiry;Performance element 204, for according to corresponding to the installation form for being matched
Order performs corresponding installation action to installation interface, into next installation interface, until the software kit installation is
Only;Monitoring unit 205, for monitoring the file discharged in the software kit installation process;Collector unit 206, for collecting
The required file discharged in the installation process of the software kit.
Optionally, matching unit 203 includes:Characteristic acquisition unit, the feature for obtaining the installation interface are believed
Breath;Comparison unit, for will be the characteristic information of the installation interface corresponding with the installation form in the installation form storehouse special
Reference breath is compared;It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
Optionally, the characteristic acquisition unit is specifically for obtaining on the size of the installation interface, installation interface
Control quantity, control location and control kind of information.
Optionally, the comparison unit also includes:Coarse sizing unit, is carried out slightly to the installation form in the installation form storehouse
Screening, selects installation form group;
Optionally, the coarse sizing unit is specifically for the packing form or the system of the software kit according to software kit to be installed
Author information selects all installation forms that the packing form is adopted in the installation form storehouse, used as installation form group.
Optionally, monitoring unit 205, specifically for capturing file operation stream by calling Hook Function, obtain in institute
The file path of the file discharged in stating software kit installation process;Collector unit 206, specifically for being carried according to the monitoring unit
For file path, collection discharge in the installation process of the software kit needed for file.
Optionally, collector unit 206 is specifically included:Identification subelement, for discharging from the software kit installation process
File in identify the file of the file and/or script type that belong to PE classes;Copy subelement, for copying the PE class files
And/or script class file;Attribute obtains subelement, for obtaining the PE class files and/or foot by calling system api function
The file attribute information of presents.Wherein, attribute obtains subelement, specifically for obtaining the PE class files and/or script type
Any one or more in the size of file, creation time, modification time, file signature.
The embodiment of the present invention be can be seen that by a kind of above-mentioned method and apparatus embodiment for realizing file collection to lead to
Cross mode that installation interface is matched with installation form to realize the automatic installation of software kit, and then realize to installation process
The collection of the file of middle release so that the file collected is more comprehensively.It is additionally, since in installation process is carried out, is by inciting somebody to action
Installation interface is matched with installation form, by performing installation to the installation order that installation form is defined after the match is successful,
It is not only able to realize the automatic installation of software kit, and the accurate installation of each step can be realized, which greatly enhances and be mounted to
The efficiency of work(, and, can also realize that various types of software kits are installed by template matching, with very high versatility, enter
And the efficiency of file collection and comprehensive being obtained for are significantly improved.
Additionally, the invention also discloses a kind of for realizing method and apparatus that file is automatically installed, wherein, this is used for reality
The method that existing file is installed automatically is compared with the above-mentioned method for realizing file collection, it is not necessary to perform the monitoring software kit peace
The step of file discharged during dress is with the file needed for discharging in the installation process of the software kit is collected;The use
In realizing device that file is automatically installed compared with the device for realizing file collection, not comprising monitoring unit and collection
Unit.The method and apparatus remainder for realizing the automatic installation of file in the present embodiment is with above-mentioned for realizing file
The appropriate section of the method and apparatus of collection is identical, not reinflated here to repeat.
With the present embodiment for realize method and apparatus that file is installed automatically relative to technique effect it is as follows:Soft
Part bag, in installation process is carried out, is by installation interface is matched with installation form, by peace after the match is successful
The installation order of decking definition performs installation, is not only able to realize the automatic installation of software kit, and can realize each step
Accurate installation, which greatly enhances the successful efficiency of installation;And, can also be realized by template matching various types of soft
Part bag is installed, and with very high versatility, from the automatic mount scheme of software kit for causing the embodiment of the present invention, is gone for each
The installation of type software kit, therefore range of application is wider, that what is installed automatically is in hgher efficiency.
The application can apply to computer system/server, and which can be with numerous other universal or special computing system rings
Border or configuration are operated together.The well-known computing system that is suitable to be used together with computer system/server, environment and/
Or the example of configuration is included but is not limited to:Personal computer system, server computer system, thin client, thick client computer, handss
Hold or laptop devices, based on the system of microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC, small-sized meter
Calculation machine Xi Tong ﹑ large computer systems and the distributed cloud computing technology environment including any of the above described system, etc..
Computer system/server can be in the computer system executable instruction performed by computer system(Such as journey
Sequence module)General linguistic context under describe.Generally, program module can include routine, program, target program, component, logic, number
According to structure etc., they perform specific task or realize specific abstract data type.Computer system/server can be with
Implement in distributed cloud computing environment, in distributed cloud computing environment, task is by by the long-range of communication network links
What reason equipment was performed.In distributed cloud computing environment, program module may be located at the Local or Remote meter including storage device
On calculation system storage medium.Provided herein algorithm and show not with any certain computer, virtual system or miscellaneous equipment
It is intrinsic related.Various general-purpose systems can also be used together based on teaching in this.As described above, construct this kind of system
The required structure of system is obvious.Additionally, the present invention is also not for any certain programmed language.It should be understood that can be with
Realize the content of invention described herein using various programming languages, and the above description done by language-specific be in order to
Disclose the preferred forms of the present invention.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case where not having these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist
Above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.However, should the method for the disclosure be construed to reflect following intention:I.e. required guarantor
The more features of feature is expressly recited in each claim by the application claims ratio of shield.More precisely, such as following
Claims it is reflected as, inventive aspect is less than all features of single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more different from embodiment equipment.Can be the module or list in embodiment
Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requires, makes a summary and accompanying drawing)Disclosed in each feature can be by providing identical, equivalent or the alternative features of similar purpose carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In some included features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint
One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor(DSP)It is according to embodiments of the present invention for updating index data base device to realize
In some or all parts some or all functions.The present invention is also implemented as described herein for performing
Some or all equipment of method or program of device(For example, computer program and computer program).So
Realization the present invention program can store on a computer-readable medium, or can have one or more signal shape
Formula.Such signal can be downloaded from internet website and be obtained, or provide on carrier signal, or with any other shape
Formula is provided.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame
Claim.
The invention also discloses A1, a kind of method for realizing file collection, including:
Obtain installable software kit;
Run the installable software kit;
When there is the installation interface of the software kit, inquire about what is matched with the installation interface in installation form storehouse
Installation form;
Order according to corresponding to the installation form for being matched performs corresponding installation action to installation interface, into next
Individual installation interface, till the software kit installation;
The file discharged in monitoring the software kit installation process;
Collect the file needed for discharging in the installation process of the software kit.
A2, as described in A1 for the method for realizing file collection, it is described to inquire about in installation form storehouse and the installation
The installation form matched by interface includes:
Obtain the characteristic information of the installation interface;
The character pair information of the installation form in the characteristic information of the installation interface and the installation form storehouse is entered
Row is compared;
It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
A3, as described in A2 for the method for realizing file collection, the characteristic information includes the size of installation interface, peace
Control quantity, control location and control species on dress interface.
A4, as described in A2 for the method for realizing file collection, it is described by the characteristic information of the installation interface and institute
State the installation form in installation form storehouse character pair information compare including:
Coarse sizing is carried out to the installation form in the installation form storehouse, installation form group is selected;
The character pair information of the installation form in the characteristic information of the installation interface and the installation form group is entered
Row contrast.
A5, as described in A4 for the method for realizing file collection, the installation form to the installation form storehouse enters
Row coarse sizing, selecting installation form group includes:
Selected in the installation form storehouse according to producer's information of the packing form or the software kit of software kit to be installed
Go out all installation forms that the packing form is adopted, as installation form group.
A6, as described in A1 for the method for realizing file collection, discharge in the monitoring software kit installation process
The file for going out includes:
File operation stream is captured by calling Hook Function, the file discharged in the software kit installation process is obtained
File path;
File needed for the collection is discharged in the installation process of software kit includes:
According to the file path of the file, the file needed for discharging in the installation process of the software kit is collected.
A7, as described in A1 for the method for realizing file collection, installation process of the collection in the software kit
The required file of middle release includes:
Identify in the file discharged from the software kit installation process and belong to PE class files and/or script class file;
Copy the PE class files and/or script class file;
The file attribute information of the PE class files and/or script file is obtained by calling system api function.
The file attribute information of A8, the method as described in A7, the acquisition PE class files and/or script file includes:
Obtain in the size of the PE class files and/or script class file, creation time, modification time, file signature
Any one or more.
The invention also discloses B1, a kind of device for realizing file collection, including:
Software kit obtaining unit, for obtaining installable software kit;
Running unit, for running the installable software kit;
Matching unit, for when there is the installation interface of the software kit, inquiring about in installation form storehouse and the peace
The installation form matched by dress interface;
Performance element, performs corresponding installation for the order according to corresponding to the installation form for being matched to installation interface
Action, into next installation interface, till the software kit installation;
Monitoring unit, for monitoring the file discharged in the software kit installation process;
Collector unit, for collecting the file needed for discharging in the installation process of the software kit.
B2, the device for realizing file collection as described in B1, the matching unit include:
Characteristic acquisition unit, for obtaining the characteristic information of the installation interface;
Comparison unit, for by the right of the installation form in the characteristic information of the installation interface and the installation form storehouse
Characteristic information is answered to compare;It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
B3, the device for realizing file collection as described in B2, the characteristic acquisition unit is specifically for obtaining
Control quantity, control location and control kind of information on the size of the installation interface, installation interface.
B4, the device for realizing file collection as described in B2, the comparison unit also include:
Coarse sizing unit, carries out coarse sizing to the installation form in the installation form storehouse, selects installation form group;
B5, the device for realizing file collection as described in B4, the coarse sizing unit is specifically for according to be installed
Producer's information of the packing form or the software kit of software kit is selected the packing form in the installation form storehouse and is adopted
All installation forms, as installation form group.
B6, the device for realizing file collection as described in B1, the monitoring unit, specifically for by calling hook
Function captures file operation stream, obtains the file path of the file discharged in the software kit installation process;
The collector unit, specifically for the file path provided according to the monitoring unit, collects in the software kit
Installation process in the required file that discharges.
B7, the device for realizing file collection as described in B1, the collector unit are specifically included:
Identification subelement, for identifying the file for belonging to PE classes in the file that discharges from the software kit installation process
And/or the file of script type;
Copy subelement, for copying the PE class files and/or script class file;
Attribute obtains subelement, for obtaining the PE class files and/or script file by calling system api function
File attribute information.
B8, the device for realizing file collection as described in B7, the attribute obtain subelement, specifically for obtaining institute
State any one or more in the size of PE class files and/or script class file, creation time, modification time, file signature.
The invention also discloses C1, a kind of method for realizing the automatic installation of software kit, including:
Obtain installable software kit;
Run the installable software kit;
When there is the installation interface of the software kit, inquire about what is matched with the installation interface in installation form storehouse
Installation form;
Order according to corresponding to the installation form for being matched performs corresponding installation action to installation interface, into next
Individual installation interface, till the software kit installation.
C2, as described in C1 for realizing method that software kit is automatically installed, inquiry and the institute in installation form storehouse
Stating the installation form matched by installation interface includes:
Obtain the characteristic information of the installation interface;
The character pair information of the installation form in the characteristic information of the installation interface and the installation form storehouse is entered
Row is compared;
It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
C3, as described in C2 for realizing method that software kit is automatically installed,
The characteristic information includes control quantity on the size of installation interface, installation interface, control location and control
Species.
C4, as described in C2 for realizing method that software kit is automatically installed, the feature by the installation interface is believed
Cease with the installation form storehouse in installation form character pair information compare including:
Coarse sizing is carried out to the installation form in the installation form storehouse, installation form group is selected;
The character pair information of the installation form in the characteristic information of the installation interface and the installation form group is entered
Row contrast.
C5, as described in C4 for realizing method that software kit is automatically installed, the installation to the installation form storehouse
Template carries out coarse sizing, and selecting installation form group includes:
Selected in the installation form storehouse according to producer's information of the packing form or the software kit of software kit to be installed
Go out all installation forms that the packing form is adopted, as installation form group.
The invention also discloses D1, a kind of device for realizing the automatic installation of software kit, including:
Software kit obtaining unit, for obtaining installable software kit;
Running unit, for running the installable software kit;
Matching unit, for when there is the installation interface of the software kit, inquiring about in installation form storehouse and the peace
The installation form matched by dress interface;
Performance element, performs corresponding installation for the order according to corresponding to the installation form for being matched to installation interface
Action, into next installation interface, till the software kit installation.
D2, the device for realizing the automatic installation of software kit as described in D1, the matching unit include:
Characteristic acquisition unit, for obtaining the characteristic information of the installation interface;
Comparison unit, for by the right of the installation form in the characteristic information of the installation interface and the installation form storehouse
Characteristic information is answered to compare;It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
D3, the device for realizing the automatic installation of software kit as described in D2, the characteristic acquisition unit are specifically used
The control quantity in size, installation interface, control location and control kind of information in the acquisition installation interface.
D4, the device for realizing the automatic installation of software kit as described in D2, the comparison unit also include:
Coarse sizing unit, carries out coarse sizing to the installation form in the installation form storehouse, selects installation form group;
D5, the device for realizing the automatic installation of software kit as described in D4, the coarse sizing unit is specifically for basis
Producer's information of the packing form or the software kit of software kit to be installed selects the packing form in the installation form storehouse
The all installation forms for being adopted, as installation form group.
Claims (26)
1. a kind of method for realizing file collection, it is characterised in that include:
Obtain installable software kit;
Run the installable software kit;
When there is the installation interface of the software kit, by the installation in the characteristic information of the installation interface and installation form storehouse
The character pair information of template is compared, so that the installation mould matched with the installation interface is inquired about in installation form storehouse
Plate;
Order according to corresponding to the installation form for being matched performs corresponding installation action to installation interface, into next peace
Dress interface, till the software kit installation;
The file discharged in monitoring the software kit installation process;
Collect the file needed for discharging in the installation process of the software kit.
2. the method for realizing file collection according to claim 1, it is characterised in that
It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
3. the method for realizing file collection according to claim 2, it is characterised in that the characteristic information includes peace
Control quantity, control location and control species on the dress size at interface, installation interface.
4. the method for realizing file collection according to claim 2, it is characterised in that described by the installation interface
Characteristic information and the installation form storehouse in installation form character pair information compare including:
Coarse sizing is carried out to the installation form in the installation form storehouse, installation form group is selected;
It is right that the character pair information of the installation form in the characteristic information of the installation interface and the installation form group is carried out
Than.
5. the method for realizing file collection according to claim 4, it is characterised in that described to the installation form
The installation form in storehouse carries out coarse sizing, and selecting installation form group includes:
This is selected according to producer's information of the packing form or the software kit of software kit to be installed in the installation form storehouse
All installation forms that packing form is adopted, as installation form group.
6. the method for realizing file collection according to claim 1, it is characterised in that the monitoring software kit
The file discharged in installation process includes:
File operation stream is captured by calling Hook Function, the text of the file discharged in the software kit installation process is obtained
Part path;
File needed for the collection is discharged in the installation process of software kit includes:
According to the file path of the file, the file needed for discharging in the installation process of the software kit is collected.
7. according to the method described in claim 1 for realizing file collection, it is characterised in that the collection is described soft
The required file discharged in the installation process of part bag includes:
Identify in the file discharged from the software kit installation process and belong to PE class files and/or script class file;
Copy the PE class files and/or script class file;
The file attribute information of the PE class files and/or script class file is obtained by calling system api function.
8. method according to claim 7, it is characterised in that the text of the acquisition PE class files and/or script class file
Part attribute information includes:
Obtain any in the size of the PE class files and/or script class file, creation time, modification time, file signature
One or more.
9. a kind of device for realizing file collection, it is characterised in that include:
Software kit obtaining unit, for obtaining installable software kit;
Running unit, for running the installable software kit;
Matching unit, for when there is the installation interface of the software kit, by the characteristic information of the installation interface and installation
The character pair information of the installation form in template base is compared, to inquire about in installation form storehouse and the installation interface institute
The installation form of matching;
Performance element, performs corresponding installation for the order according to corresponding to the installation form for being matched and moves to installation interface
Make, into next installation interface, till the software kit installation;
Monitoring unit, for monitoring the file discharged in the software kit installation process;
Collector unit, for collecting the file needed for discharging in the installation process of the software kit.
10. the device for realizing file collection according to claim 9, it is characterised in that the matching unit
It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
11. devices for realizing file collection according to claim 10, it is characterised in that the device includes that feature is believed
Breath acquiring unit, for obtaining the characteristic information of the installation interface, the characteristic information include the installation interface size,
Control quantity, control location and control kind of information on installation interface.
12. devices for realizing file collection according to claim 10, it is characterised in that the matching unit is also wrapped
Include:
Coarse sizing unit, carries out coarse sizing to the installation form in the installation form storehouse, selects installation form group;And by the peace
The character pair information of the installation form in characteristic information and the installation form group at dress interface is contrasted.
13. devices for realizing file collection according to claim 12, it is characterised in that the coarse sizing unit tool
Body is selected in the installation form storehouse for producer's information of packing form or the software kit according to software kit to be installed
All installation forms that the packing form is adopted, as installation form group.
14. devices for realizing file collection according to claim 9, it is characterised in that
The monitoring unit, specifically for capturing file operation stream by calling Hook Function, obtains and pacifies in the software kit
The file path of the file discharged during dress;
The collector unit, specifically for the file path provided according to the monitoring unit, collects the peace in the software kit
The required file discharged during dress.
15. devices for realizing file collection according to claim 9, it is characterised in that the collector unit is concrete
Including:
Identification subelement, for identify in the file that discharges from the software kit installation process belong to PE class files and/or
Script class file;
Copy subelement, for copying the PE class files and/or script class file;
Attribute obtains subelement, for the text of the PE class files and/or script class file is obtained by calling system api function
Part attribute information.
16. devices for realizing file collection according to claim 15, it is characterised in that:It is single that the attribute obtains son
Unit, in the size, creation time, modification time, file signature specifically for the acquisition PE class files and/or script class file
Any one or more.
A kind of 17. methods for realizing the automatic installation of software kit, it is characterised in that include:
Obtain installable software kit;
Run the installable software kit;
When there is the installation interface of the software kit, by the installation in the characteristic information of the installation interface and installation form storehouse
The character pair information of template is compared, so that the installation mould matched with the installation interface is inquired about in installation form storehouse
Plate;
Order according to corresponding to the installation form for being matched performs corresponding installation action to installation interface, into next peace
Dress interface, till the software kit installation.
18. methods for realizing the automatic installation of software kit according to claim 17, it is characterised in that
It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
19. methods for realizing the automatic installation of software kit according to claim 18, it is characterised in that
The characteristic information includes control quantity on the size of installation interface, installation interface, control location and control species.
20. is according to claim 18 for realizing methods that software kit is automatically installed, it is characterised in that it is described will be described
The character pair information of the installation form in the characteristic information of installation interface and the installation form storehouse compare including:
Coarse sizing is carried out to the installation form in the installation form storehouse, installation form group is selected;
It is right that the character pair information of the installation form in the characteristic information of the installation interface and the installation form group is carried out
Than.
21. methods for realizing the automatic installation of software kit according to claim 20, it is characterised in that described to described
The installation form in installation form storehouse carries out coarse sizing, and selecting installation form group includes:
This is selected according to producer's information of the packing form or the software kit of software kit to be installed in the installation form storehouse
All installation forms that packing form is adopted, as installation form group.
22. a kind of devices for realizing the automatic installation of software kit, it is characterised in that include:
Software kit obtaining unit, for obtaining installable software kit;
Running unit, for running the installable software kit;
Matching unit, for when there is the installation interface of the software kit, by the characteristic information of the installation interface and installation
The character pair information of the installation form in template base is compared, to inquire about in installation form storehouse and the installation interface institute
The installation form of matching;;
Performance element, performs corresponding installation for the order according to corresponding to the installation form for being matched and moves to installation interface
Make, into next installation interface, till the software kit installation.
23. devices for realizing the automatic installation of software kit according to claim 22, it is characterised in that the matching list
Unit
It is considered as when the two characteristic information meets matching prerequisite that the match is successful.
24. devices for realizing the automatic installation of software kit according to claim 23, it is characterised in that the device includes
Characteristic acquisition unit, for obtaining the characteristic information of the installation interface, the characteristic information includes the installation interface
Size, the control quantity on installation interface, control location and control kind of information.
25. devices for realizing the automatic installation of software kit according to claim 23, it is characterised in that the matching list
Unit also includes:
Coarse sizing unit, carries out coarse sizing to the installation form in the installation form storehouse, selects installation form group;And by the peace
The character pair information of the installation form in characteristic information and the installation form group at dress interface is contrasted.
26. devices for realizing the automatic installation of software kit according to claim 25, it is characterised in that the coarse sizing
Unit specifically for according to software kit to be installed packing form or the software kit producer's information in the installation form storehouse
In select all installation forms that the packing form is adopted, as installation form group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310452753.1A CN103500109B (en) | 2013-09-27 | 2013-09-27 | Method and device for achieving file collection and software package automatic installation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310452753.1A CN103500109B (en) | 2013-09-27 | 2013-09-27 | Method and device for achieving file collection and software package automatic installation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103500109A CN103500109A (en) | 2014-01-08 |
CN103500109B true CN103500109B (en) | 2017-04-19 |
Family
ID=49865324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310452753.1A Active CN103500109B (en) | 2013-09-27 | 2013-09-27 | Method and device for achieving file collection and software package automatic installation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103500109B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104503778A (en) * | 2014-12-09 | 2015-04-08 | 北京奇虎科技有限公司 | Installation method and installation device for applications |
CN104765630B (en) * | 2015-04-10 | 2019-02-01 | 百度在线网络技术(北京)有限公司 | Software installation method and device |
CN105955943A (en) * | 2016-05-06 | 2016-09-21 | 长沙市麓智信息科技有限公司 | Patent writing auxiliary system and auxiliary method |
CN108228265A (en) * | 2016-12-14 | 2018-06-29 | 北京国双科技有限公司 | Application management method and device |
CN107832284A (en) * | 2017-11-29 | 2018-03-23 | 百望电子发票数据服务有限公司 | A kind of method and system filled invoice and come back |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102207880A (en) * | 2011-06-28 | 2011-10-05 | 用友软件股份有限公司 | Software updating method and device |
CN102830991A (en) * | 2012-07-31 | 2012-12-19 | 北京奇虎科技有限公司 | Methods and devices used for realizing document collection and automatic installation of software package |
-
2013
- 2013-09-27 CN CN201310452753.1A patent/CN103500109B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102207880A (en) * | 2011-06-28 | 2011-10-05 | 用友软件股份有限公司 | Software updating method and device |
CN102830991A (en) * | 2012-07-31 | 2012-12-19 | 北京奇虎科技有限公司 | Methods and devices used for realizing document collection and automatic installation of software package |
Also Published As
Publication number | Publication date |
---|---|
CN103500109A (en) | 2014-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10162611B2 (en) | Method and apparatus for business rule extraction | |
CN103500109B (en) | Method and device for achieving file collection and software package automatic installation | |
US11042471B2 (en) | System and method for providing a test manager for use with a mainframe rehosting platform | |
US8930918B2 (en) | System and method for SQL performance assurance services | |
CN102567051B (en) | Method and device for preparing graphical installation system of Loongson platform | |
EP2228726B1 (en) | A method and system for task modeling of mobile phone applications | |
CN1755647A (en) | Test automation stack layering | |
CN1755645A (en) | System and method for selecting test case execution behaviors for reproducible test automation | |
WO2016196701A1 (en) | Natural language engine for coding and debugging | |
US8875102B1 (en) | Multiple browser architecture and method | |
JP2013517565A (en) | Operating system automatic update procedure | |
JP2013534019A5 (en) | ||
CN107273145A (en) | A kind of method of managing software and device, terminal | |
CN104067226A (en) | Continuous deployment of code changes | |
JPH0934723A (en) | Commitment of introduction plan object for introduction of application program at network | |
CN102830991B (en) | Methods and devices used for realizing document collection and automatic installation of software package | |
CN113553269B (en) | Page embedded point reporting method and related device | |
CN105912473A (en) | BDD-based mobile APP automatic testing platform and testing method | |
US20200327043A1 (en) | System and a method for automated script generation for application testing | |
CN110765483A (en) | Configured log desensitization method and device and electronic equipment | |
CN109313547A (en) | Query optimizer for cpu busy percentage and code refactoring | |
CN104503778A (en) | Installation method and installation device for applications | |
CN109583192A (en) | A kind of fixed safety system of mobile terminal application and method based on emulation | |
CN114297961A (en) | Chip test case processing method and related device | |
CN112527655B (en) | Software version quality abnormality detection method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220708 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co., Ltd |
|
TR01 | Transfer of patent right |