CN106055370B - Drive programe installation method, device and terminal - Google Patents

Drive programe installation method, device and terminal Download PDF

Info

Publication number
CN106055370B
CN106055370B CN201610410915.9A CN201610410915A CN106055370B CN 106055370 B CN106055370 B CN 106055370B CN 201610410915 A CN201610410915 A CN 201610410915A CN 106055370 B CN106055370 B CN 106055370B
Authority
CN
China
Prior art keywords
equipment
driver
thread
install
terminal
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
CN201610410915.9A
Other languages
Chinese (zh)
Other versions
CN106055370A (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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Seal Interest Technology 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 Zhuhai Seal Interest Technology Co Ltd filed Critical Zhuhai Seal Interest Technology Co Ltd
Priority to CN201610410915.9A priority Critical patent/CN106055370B/en
Publication of CN106055370A publication Critical patent/CN106055370A/en
Application granted granted Critical
Publication of CN106055370B publication Critical patent/CN106055370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The invention discloses a kind of drive programe installation method, device and terminals.The described method includes: being scanned terminal to obtain the first equipment for needing to install driver, the driver of the first equipment is installed;After the driver of first equipment is installed, the terminal is scanned to detect in terminal with the presence or absence of the second equipment for needing to install driver, wherein, second equipment is the equipment for needing to install driver just shown after the driver of first equipment is installed;If testing result is to install in the presence of second equipment for needing to install driver to the driver of second equipment.The above method can correctly install the driver of the equipment there are dependence.

Description

Drive programe installation method, device and terminal
Technical field
The present invention relates to field of terminal more particularly to a kind of drive programe installation methods, device and terminal.
Background technique
Driver is the separate procedure that can make terminal and communication between devices.Operating system only passes through driver It is just able to achieve the control to equipment, if equipment is fitted without driver, equipment cisco unity malfunction.
Technical staff is in practice, it has been found that there are dependences between some equipment, that is, only in the driving of the first equipment After program is correctly installed, the second equipment can be just correctly displayed, so, user can take for the driving journey of all devices Sequence has been improperly seated, and is not aware that and is not properly installed there are also the driver of the second equipment actually, is given The use of user is made troubles.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that provide a kind of drive programe installation method, device and Terminal can correctly install the driver of the equipment there are dependence.
In a first aspect, providing a kind of drive programe installation method, comprising: be scanned terminal to obtain and need to install First equipment of driver installs the driver of first equipment;In the driver of first equipment After being installed, the terminal is scanned to detect in the terminal and set with the presence or absence of needing to install the second of driver It is standby, wherein second equipment be just shown after the driver of first equipment is installed need to install The equipment of driver;If testing result is to set in the presence of second equipment for needing to install driver to described second Standby driver is installed.
With reference to first aspect, in the first possible embodiment of first aspect, to the driving journey of second equipment After sequence is installed, the method also includes: the terminal is scanned to detect in the terminal with the presence or absence of needs The third equipment of driver is installed, wherein the third equipment is after the driver of second equipment is installed What is just shown needs to install the equipment of driver;If testing result is in the presence of needing to install described the of driver Three equipment install the driver of the third equipment.
With reference to first aspect, in second of first aspect possible embodiment, to the driver of the first equipment into Row installation specifically includes: creating M thread or process according to the quantity N of the first equipment, wherein M is the positive integer greater than zero, N For the positive integer greater than zero, M≤N;Driving by the M thread or process to M the first equipment in N number of first equipment Program is installed simultaneously, and carries out queue to the driver of remaining N-M in N number of first equipment the first equipment.
The possible embodiment of second with reference to first aspect, in the third possible embodiment of first aspect, Installation is carried out to the driver of second equipment to specifically include: judging whether the quantity S of second equipment is greater than M, In, S is the positive integer greater than zero;If it is judged that for greater than M, then by the M thread or process to S the second equipment In the driver of M the second equipment installed simultaneously, and by the driving journey of other the second equipment in S the second equipment Sequence carries out queue;If it is judged that for less than or equal to M, then the selection and described second from the M thread or process The equal thread of number of devices or process install the driver of second equipment simultaneously.
The possible embodiment of second with reference to first aspect, in the 4th kind of possible embodiment of first aspect, When creation is M thread, the M thread belongs to the same process, alternatively, the M thread belongs to multiple processes.
With reference to first aspect, in the 5th kind of possible embodiment of first aspect, to the driving journey of second equipment Sequence carries out installation and specifically includes: creating T thread or process according to the quantity S of the second equipment, wherein S is just whole greater than zero Number, T are the positive integer greater than zero, S≤T;By the T thread or process to T the second equipment in S the second equipment Driver is installed simultaneously, and carries out queue to the driver of remaining S-T the second equipment in S the second equipment.
The 5th kind of possible embodiment with reference to first aspect, in the 6th kind of possible embodiment of first aspect, When creation is T thread, the T thread belongs to the same process, alternatively, the T thread belongs to multiple processes.
With reference to first aspect, in the 7th kind of possible embodiment of first aspect, if testing result is that there is no need Second equipment for installing driver, then terminate process.
Second aspect, provides a kind of driver mounting device, and described device includes the first installation module, the first detection mould Block and the second installation module, the first installation module are used to be scanned terminal to obtain and need to install driver First equipment installs the driver of first equipment;The first detection module is used in first equipment Driver be installed after, the terminal is scanned with detect in the terminal with the presence or absence of need install driving journey Second equipment of sequence, wherein second equipment is just to show after the driver of first equipment is installed The equipment for needing to install driver;The second installation module is used in testing result be to exist to need to install driver Second equipment when, the driver of second equipment is installed.
In conjunction with second aspect, in the possible embodiment of the first of second aspect, described device further includes the second detection Module and third install module, and second detection module is for being scanned the terminal to detect in the terminal and be It is no to there is the third equipment for needing to install driver, wherein the third equipment is the driver in second equipment What is just shown after being installed needs to install the equipment of driver;Third installs module and is used in testing result be to exist When needing to install the third equipment of driver, the driver of the third equipment is installed.
In conjunction with second aspect, in the possible embodiment of second of second aspect, the first installation module includes the One creating unit and the first installation unit, first creating unit are used to create M thread according to the quantity N of the first equipment Or process, wherein M is the positive integer greater than zero, and N is the positive integer greater than zero, M≤N;First installation unit is for passing through The M thread or process install the driver of M the first equipment in N number of first equipment simultaneously, and to N number of the The driver of remaining N-M the first equipment carries out queue in one equipment.
In conjunction with second of possible embodiment of second aspect, in the third possible embodiment of second aspect, The second installation module includes judging unit and the second installation unit, and the judging unit is for judging second equipment Quantity S whether be greater than M, wherein S is positive integer greater than zero;Second installation unit is used for when judging result is greater than M, It is installed simultaneously by the driver of the M thread or process to M the second equipment in S the second equipment, and by S The driver of other the second equipment in a second equipment carries out queue;When judging result is less than or equal to M, from institute Selection is equal with second number of devices in M thread or process thread or process are stated to the driving journey of second equipment Sequence is installed simultaneously.
In conjunction with second of possible embodiment of second aspect, in the 4th kind of possible embodiment of second aspect, When creation is M thread, the M thread belongs to the same process, alternatively, the M thread belongs to multiple processes.
In conjunction with second aspect, in the 5th kind of possible embodiment of second aspect, the second installation equipment includes the Two creating units and the second installation unit, second creating unit are used to create T thread according to the quantity S of the second equipment Or process, wherein S is the positive integer greater than zero, and T is the positive integer greater than zero, S≤T;Second installation unit is for leading to The T thread or process are crossed to the driver of T the second equipment in S the second equipment while being installed, and to S The driver of remaining S-T the second equipment carries out queue in a second equipment.
In conjunction with the 5th kind of possible embodiment of second aspect, in the 6th kind of possible embodiment of second aspect, When creation is T thread, the T thread belongs to the same process, alternatively, the T thread belongs to multiple processes.
In conjunction with second aspect, in the 7th kind of possible embodiment of second aspect, the first detection module is also used to It is to terminate process there is no second equipment for needing to install driver in testing result.
The third aspect, the present invention provides a kind of terminals, comprising: processor, memory, communication interface and bus;It is described Processor, the memory are connected by the bus with the communication interface and complete mutual communication;The memory Store executable program code;The processor run by reading the executable program code stored in the memory with The corresponding program of the executable program code, with the installation method for executing a kind of driver;Wherein, the method is Such as the described in any item methods of first aspect.
Fourth aspect, the present invention provides a kind of storage mediums, wherein the storage medium is for storing application program, institute State any one of installation method of the application program for executing a kind of driver that first aspect present invention provides at runtime.
5th aspect, the present invention provides a kind of application programs, wherein the application program for executing this hair at runtime A kind of any one of the installation method for driver that bright first aspect provides.
By detecting and whether there is the second equipment in terminal, and depositing after the driver of the first equipment is installed In the second equipment, the driver of the second equipment is installed, realizes that correct installation is set dependent on the second of the first equipment Standby driver improves the experience of user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of the installation method of the first driver provided in an embodiment of the present invention;
Fig. 2 is the driver of the first equipment in the installation method of the first driver provided in an embodiment of the present invention Comparison diagram after being properly installed before being properly installed with the driver of the first equipment;
Fig. 3 is the flow chart of the installation method of second of driver provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the installation method of the third driver provided in an embodiment of the present invention;
Fig. 5 is that multiple threads or process be simultaneously in the installation method of the third driver provided in an embodiment of the present invention The schematic diagram of driver is installed;
Fig. 6 is the flow chart of the installation method of the 4th kind of driver provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the mounting device of the first driver provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of the mounting device of second of driver provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the mounting device of the third driver provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of the mounting device of the 4th kind of driver provided in an embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment , it is not intended to limit the invention." the one of the embodiment of the present invention and singular used in the attached claims Kind ", " described " and "the" are also intended to including most forms, unless the context clearly indicates other meaning.Explanation of the invention Term " includes " and " having " and their any deformations in book and claims and the attached drawing, it is intended that covering is not Exclusive includes.Such as it contains the process, method, system, product or equipment of a series of steps or units and is not limited to The step of listing or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these The intrinsic other step or units of process, method, product or equipment.
Terminal described in the embodiment of the present invention may include smart phone (such as Android phone, iOS mobile phone, Windows Phone mobile phone etc.), tablet computer, palm PC, laptop, mobile internet device (Mobile Internet Devices, MID) or wearable device etc..
Referring to Figure 1, Fig. 1 is the installation method of the first driver provided in an embodiment of the present invention.As shown in Figure 1, The installation method of the driver can include but is not limited to following steps.
110: terminal is scanned to obtain the first equipment for needing to install driver, to the driving journey of the first equipment Sequence is installed.
Two classes of the SetupDiGetClassDevs that terminal is provided by API, SetupDiEnumDeviceInfo are enumerated Hardware information in terminal, so that the hardware information for obtaining needing to install the hardware device of driver in terminal is as in terminal The first equipment hardware information.Wherein, the first equipment can be USB flash disk, printer, sound card, network interface card and video card etc. needs The equipment installed driver, but not yet successfully install driver.After the hardware information for acquiring the first equipment, eventually The driver of the first equipment is searched at end according to the hardware information of the first equipment, and is pacified to the driver of the first equipment Dress.When installation, terminal can the driver one by one to the first equipment install, also can establish multiple threads or process To be installed simultaneously to the first equipment.
120: after the driver of the first equipment is installed, terminal being scanned to detect in terminal and whether there is Need to install the second equipment of driver.
After the driver of the first equipment is installed, terminal is provided again by API Two classes of SetupDiGetClassDevs, SetupDiEnumDeviceInfo enumerate the hardware information in terminal, to detect Hardware information of the hardware information as the second equipment in terminal with the presence or absence of the hardware device for needing to install driver.Its In, the second equipment be just shown after the driver of the first equipment is installed need to install setting for driver It is standby.Second equipment can be USB flash disk, printer, sound card, network interface card and video card etc. and need to install driver, but not yet at The equipment of function installation driver.
For example, as shown in Fig. 2 (a), it is being installed the first equipment 1, the first equipment 2, the first equipment 3 and first is setting Before standby 4 driver, the first equipment 1, the first equipment 2, the first equipment 3 and the first equipment are illustrated only on list of devices 4, and the second equipment can't be revealed;As shown in Fig. 2 (b), it is being installed the first equipment 1, the first equipment 2, first After equipment 3 and the first equipment 4, on list of devices in addition to show installed the first equipment 1 of driver, the first equipment 2, Except first equipment 3 and the first equipment 4, the second equipment 1 and the second equipment 2 for not yet installing driver are also shown.
If there is the second equipment for needing to install driver in terminal, 130 are entered step, if be not present in terminal The second equipment for needing to install driver, then terminate the process of this method.
130: the driver of the second equipment is installed.
The driver that the second equipment is searched according to the hardware information of the second equipment carries out the driver of the second equipment Installation.When installation, terminal can the driver one by one to the second equipment install, also can establish multiple threads or into Journey is simultaneously to install the second equipment.
Fig. 3 is referred to, Fig. 3 is the installation method of second of driver provided in an embodiment of the present invention.Shown in Fig. 3 The installation method of driver is driving shown in Fig. 3 obtained from the installation method optimization of driver according to figure 1 The installation method of program is in addition to including step 110 shown in FIG. 1, except step 120 and step 130, further include step 140 with And step 150.
140: after the driver of the second equipment is installed, terminal being scanned to detect in terminal and whether there is Need to install the third equipment of driver.
After the driver of the second equipment is installed, terminal is provided again by API Two classes of SetupDiGetClassDevs, SetupDiEnumDeviceInfo enumerate the hardware information in terminal, to detect It whether there is the hardware device for needing to install driver in terminal as third equipment.Wherein, third equipment is to set second What standby driver was just shown after being installed needs to install the equipment of driver.Third equipment can be USB flash disk, beat Print machine, sound card, network interface card and video card etc. need to install driver, but the equipment for not yet successfully installing driver.
If there is the third equipment for needing to install driver in terminal, 150 are entered step, if be not present in terminal Third equipment then terminates the process of this method.
150: the driver of third equipment is installed.
The driver that third equipment is searched according to the hardware information of third equipment carries out the driver of third equipment Installation.When installation, terminal can the driver one by one to third equipment install, also can establish multiple threads or into Journey is simultaneously to install third equipment.
After third equipment is installed, continue to determine whether there is the 4th equipment for needing to install driver, if Then the driver of the 4th equipment is installed in the presence of the 4th equipment for needing to install driver ..., is so repeated, directly The equipment that needs install driver new to no longer appearance.Wherein, the 4th equipment is the driver installation in third equipment What is just shown after the completion needs to install the equipment of driver.4th equipment can be USB flash disk, printer, sound card, network interface card with And video card etc. needs to install driver, but the equipment for not yet successfully installing driver.
Fig. 4 is referred to, Fig. 4 is the installation method of the third driver provided in an embodiment of the present invention.As shown in figure 4, The installation method of the driver can include but is not limited to following steps.
210: M thread or process being created according to the quantity N of the first equipment, wherein M is the positive integer greater than zero, and N is big In zero positive integer, M≤N.
Two classes of the SetupDiGetClassDevs that terminal is provided by API, SetupDiEnumDeviceInfo are enumerated Hardware information in terminal, so that the hardware information for obtaining needing to install the hardware device of driver in terminal is as in terminal The first equipment hardware information.Wherein, the first equipment can be USB flash disk, printer, sound card, network interface card and video card etc. needs The equipment installed driver, but not yet successfully install driver.Terminal is according to the hardware of the first equipment acquired The quantity N of the first equipment of Information Statistics.Terminal creates M thread according to the quantity N of the first equipment, alternatively, can be according to first The quantity N of equipment creates M process.
It is understood that when creation is M thread, M thread may belong to the same process, alternatively, M line Journey may belong to multiple processes.For example, thread 1,2,3 may belong to the same process 1, alternatively, thread 1 belongs to process 1, thread 2 belong to process 2, and thread 3 belongs to process 3, alternatively, thread 1 and thread 2 belong to process 1, thread 3 belongs to process 2 etc..
220: the driver of M the first equipment in N number of first equipment being pacified simultaneously by M thread or process Dress, and queue is carried out to the driver of remaining N-M in N number of first equipment the first equipment.
After the hardware information for acquiring N number of first equipment, terminal searches N according to the hardware information of N number of first equipment The driver of a first equipment, by M thread or process to the driver of M the first equipment in N number of first equipment It is installed simultaneously, and queue is carried out to the driver of remaining N-M in N number of first equipment the first equipment.For example, as schemed Shown in 5, the driver for sharing 4 the first equipment needs to be mounted, and terminal establishes 3 threads to this 4 the first equipment Driver is installed, wherein the driver of 3 the first equipment in the driver of 4 the first equipment passes through 3 lines Journey is installed simultaneously, and the driver of remaining 1 the first equipment carries out queue, the first equipment installed when 3 There is driver to be installed in driver, then the driver of remaining 1 the first equipment, which will substitute, has installed At the driver of the first equipment installed.
230: after the driver of the first equipment is installed, terminal being scanned to detect in terminal and whether there is Need to install the second equipment of driver.
The step 230 of this implementation is identical as the step 120 in embodiment shown in FIG. 1, referring specifically to shown in Fig. 1 Step 120 in implementation no longer specifically describes herein.
240: judging whether the quantity S of the second equipment is greater than M, wherein S is the positive integer greater than zero.
After the hardware information for acquiring the second equipment, the hardware information of the second equipment is counted, to obtain the The quantity S of two equipment.Terminal judges whether the quantity S of the second equipment is greater than M, if it is judged that being the quantity S of the second equipment Greater than M, 250 are entered step;If it is judged that the quantity for the second equipment S is less than or equal to M, 260 are entered step.
250: the driver of M the second equipment in S the second equipment being pacified simultaneously by M thread or process Dress, and the driver of other the second equipment in S the second equipment is subjected to queue.
When the quantity S of the second equipment is greater than M, the driving of the second equipment can be searched according to the hardware information of the second equipment Program is carried out simultaneously using the driver of original M thread or process to M the second equipment in S the second equipment Installation, and the driver of remaining second equipment in S the second equipment is subjected to queue.
260: the drive of the thread or process equal with the second number of devices to the second equipment is selected from M thread or process Dynamic program is installed simultaneously.
When the quantity of the second equipment is less than or equal to M, second can be searched according to the hardware information of the second equipment and set Standby driver selects the thread or process equal with the second number of devices to the from M original thread or process The driver of two equipment is installed simultaneously.
Fig. 6 is referred to, Fig. 6 is the installation method of the 4th kind of driver provided in an embodiment of the present invention.As shown in fig. 6, The installation method of the driver can include but is not limited to following steps.
310: M thread or process being created according to the quantity N of the first equipment, wherein M is the positive integer greater than zero, and N is big In zero positive integer, M≤N.
320: the driver of M the first equipment in N number of first equipment being pacified simultaneously by M thread or process Dress, and queue is carried out to the driver of remaining N-M in N number of first equipment the first equipment.
330: after the driver of the first equipment is installed, terminal being scanned to detect in terminal and whether there is Need to install the second equipment of driver.
The step 310 of this implementation, 320 and 330 respectively in embodiment shown in Fig. 4 step 210,220 and 230 is identical, referring specifically to step 210,220 and 230 in implementation shown in Fig. 4, no longer specifically describes herein.
340: T thread or process being created according to the quantity S of the second equipment, wherein S is the positive integer greater than zero, and T is big In zero positive integer, S≤T.
The hardware information for acquiring the second equipment counts the hardware information of the second equipment, to obtain second The quantity S of equipment.Terminal creates T thread according to the quantity S of the second equipment, alternatively, can be created according to the quantity S of the second equipment Build T process.
It is understood that when creation is T thread, T thread may belong to the same process, alternatively, T line Journey may belong to multiple processes.For example, thread 1,2,3 may belong to the same process 1, alternatively, thread 1 belongs to process 1, thread 2 belong to process 2, and thread 3 belongs to process 3, alternatively, thread 1 and thread 2 belong to process 1, thread 3 belongs to process 2 etc..
350: the driver of T the second equipment in S the second equipment being pacified simultaneously by T thread or process Dress, and queue is carried out to the driver of remaining S-T the second equipment in S the second equipment.
After the hardware information for acquiring S the second equipment, terminal searches T according to the hardware information of S the second equipment The driver of a second equipment, by T thread or process to the driver of T the second equipment in S the second equipment It is installed simultaneously, and queue is carried out to the driver of remaining S-T the second equipment in S the second equipment.
It is above-mentioned to illustrate the method for the embodiment of the present invention, following for convenient for better implementing the embodiment of the present invention Correspondingly the mounting device for cooperating the driver for implementing above scheme is also provided below in above scheme.
Fig. 7 is referred to, Fig. 7 is the structural representation of the mounting device of the first driver provided in an embodiment of the present invention Figure.The mounting device 40 of the driver of the present embodiment includes the first installation module 410, first detection module 420 and second Module 430 is installed.
First installation module 410 is used to be scanned terminal to obtain the first equipment for needing to install driver, right The driver of first equipment is installed;
First detection module 420 is used for after the driver of first equipment is installed, and is carried out to the terminal Scanning is to detect in terminal with the presence or absence of the second equipment for needing to install driver, wherein second equipment is described What the driver of the first equipment was just shown after being installed needs to install the equipment of driver.
Second installation module 430 is used for when testing result is in the presence of second equipment for needing to install driver, The driver of second equipment is installed.
Optionally, the first detection module is also used in testing result be that there is no need to install described in driver Second equipment terminates process.
It will be appreciated that the function of each functional unit of the mounting device 40 of the driver of the present embodiment can be according to above-mentioned The method of Fig. 1 embodiment of the method implements, and details are not described herein again.
Fig. 8 is referred to, Fig. 8 is the structural representation of the mounting device of second of driver provided in an embodiment of the present invention Figure.The mounting device 40 of the driver of the present embodiment is obtained to the optimization of mounting device 40 of driver shown in Fig. 7. The mounting device 40 of the driver of the present embodiment is in addition to including the first installation module 410, first detection module 420 and second It installs except module 430, further includes the second detection module 440 and third installation module 450.
Second detection module 440 detects in terminal for being scanned to the terminal and installs driving with the presence or absence of needs The third equipment of program, wherein the third equipment is just to show after the driver of second equipment is installed The equipment for needing to install driver come.
Third installation module 450 is used for when testing result is in the presence of the third equipment for needing to install driver, The driver of the third equipment is installed.
It will be appreciated that the function of each functional unit of the mounting device 40 of the driver of the present embodiment can be according to above-mentioned The method of Fig. 3 embodiment of the method implements, and details are not described herein again.
Fig. 9 is referred to, Fig. 9 is the structural representation of the mounting device of the third driver provided in an embodiment of the present invention Figure.The mounting device 40 of the driver of the present embodiment is obtained to the optimization of mounting device 40 of driver shown in Fig. 7. Wherein, the first installation module 410 includes the first creating unit 411 and the first installation unit 413.Second installation module 430 is wrapped Include judging unit 431 and the second installation unit 433.
First creating unit 411 is used to create M thread or process according to the quantity N of the first equipment, wherein M for greater than Zero positive integer, N are the positive integer greater than zero, M≤N.
First installation unit 413 is used for through the M thread or process to M the first equipment in N number of first equipment Driver installed simultaneously, and team is carried out to the driver of the first equipment of remaining N-M in N number of first equipment Column.
Judging unit 431 is for judging whether the quantity S of second equipment is greater than M, wherein S is just whole greater than zero Number.
Second installation unit 433 is used for when judging result is greater than M, passes through the M thread or process a to S the The driver of M in two equipment the second equipment is installed simultaneously, and by other the second equipment in S the second equipment Driver carries out queue;Judging result be less than or equal to M when, from the M thread or process select with it is described The equal thread of second number of devices or process install the driver of second equipment simultaneously.
Optionally, when creation is M thread, the M thread belongs to the same process, alternatively, the M thread Belong to multiple processes.
It will be appreciated that the function of each functional unit of the mounting device 40 of the driver of the present embodiment can be according to above-mentioned The method of Fig. 4 embodiment of the method implements, and details are not described herein again.
0, Figure 10 is the structural representation of the mounting device of the 4th kind of driver provided in an embodiment of the present invention referring to Figure 1 Figure.The mounting device 40 of the driver of the present embodiment is obtained to the optimization of mounting device 40 of driver shown in Fig. 7. Wherein, the first installation module 410 includes the first creating unit 412 and the first installation unit 414.Second installation module 430 is wrapped Include the second creating unit 432 and the second installation unit 434.
First creating unit 412 is used to create M thread or process according to the quantity N of the first equipment, wherein M for greater than Zero positive integer, N are the positive integer greater than zero, M≤N.
First installation unit 414 is used for through the M thread or process to M the first equipment in N number of first equipment Driver installed simultaneously, and team is carried out to the driver of the first equipment of remaining N-M in N number of first equipment Column.
Second creating unit 432 is used to create T thread or process according to the quantity S of the second equipment, wherein S for greater than Zero positive integer, T are the positive integer greater than zero, S≤T;
Second installation unit 434 is used for through the T thread or process to T the second equipment in S the second equipment Driver installed simultaneously, and team is carried out to the driver of remaining S-T the second equipment in S the second equipment Column.
Optionally, when creation is M thread, the M thread belongs to the same process, alternatively, the M thread Belong to multiple processes.
Optionally, when creation is T thread, the T thread belongs to the same process, alternatively, the T thread Belong to multiple processes.
It will be appreciated that the function of each functional unit of the mounting device 40 of the driver of the present embodiment can be according to above-mentioned The method of Fig. 5 embodiment of the method implements, and details are not described herein again.
Referring to Figure 11, it is a kind of structural schematic diagram of terminal provided by the invention.Terminal as described in this embodiment 500 include: at least one processor 501, communication interface 502, user interface 503 and memory 504, processor 501, communication Interface 502, user interface 503 and memory 504 can be connected by bus or other way, and the embodiment of the present invention is by total For line 505 connects.Wherein,
Processor 501 can be general processor, such as central processing unit (Central Processing Unit, CPU)。
Communication interface 502 can be wireline interface (such as Ethernet interface) or wireless interface (such as cellular network interface Or use wireless lan interfaces), for being communicated with other terminals or server.In the embodiment of the present invention, communication interface 502 are specifically used for the link of the webpage of carrying target news in targeted website being sent to client.
The concretely touch panel, including touch screen and touch screen of user interface 503, for detecting the behaviour on touch panel It instructs, user interface 503 is also possible to physical button or mouse.In the embodiment of the present invention, user interface 503 is specifically used for Receive the title or keyword of the targeted news of user's input.User interface 503 can also be display screen, for exporting, showing Image or data.In the embodiment of the present invention, user interface 503 be specifically used for receive user input targeted news title or Keyword.
Memory 504 may include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory also may include nonvolatile memory (Non-Volatile ), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk Memory (Hard Disk Drive, HDD) or solid state hard disk (Solid-State Drive, SSD);Memory 504 can also include upper State the combination of the memory of type.Memory 504 is used to store a set of program code, and processor 501 is for calling memory 504 The program code of middle storage, performs the following operations:
Terminal is scanned to obtain and need to install the first equipment of driver, to the driver of the first equipment into Row installation;
After the driver of first equipment is installed, the terminal is scanned with detect in terminal whether In the presence of the second equipment for needing to install driver, wherein second equipment is the driver peace in first equipment The equipment for needing to install driver just shown after the completion of dress;
If testing result is the driving to second equipment in the presence of second equipment for needing to install driver Program is installed.
Optionally, processor 501 also performs the following operations:
The terminal is scanned to detect in terminal with the presence or absence of needing to install the third equipment of driver, In, the third equipment is the needs installation driving journey just shown after the driver of second equipment is installed The equipment of sequence;
If testing result is the driving to the third equipment in the presence of the third equipment for needing to install driver Program is installed.
Optionally, processor 501 also performs the following operations:
Create M thread or process according to the quantity N of the first equipment, wherein M is the positive integer greater than zero, N for greater than Zero positive integer, M≤N;
The driver of M the first equipment in N number of first equipment is pacified simultaneously by the M thread or process Dress, and queue is carried out to the driver of remaining N-M in N number of first equipment the first equipment.
Optionally, processor 501 also performs the following operations:
Judge whether the quantity S of second equipment is greater than M, wherein S is the positive integer greater than zero;
If it is judged that for greater than M, then by the M thread or process to M second in S the second equipment The driver of equipment is installed simultaneously, and the driver of other the second equipment in S the second equipment is carried out queue;
If it is judged that then being selected and second equipment from the M thread or process for less than or equal to M The equal thread of quantity or process install the driver of second equipment simultaneously.
Optionally, when creation is M thread, the M thread belongs to the same process, alternatively, the M thread Belong to multiple processes.
Optionally, processor 501 also performs the following operations:
Create T thread or process according to the quantity S of the second equipment, wherein S is the positive integer greater than zero, T for greater than Zero positive integer, S≤T;
The driver of T the second equipment in S the second equipment is pacified simultaneously by the T thread or process Dress, and queue is carried out to the driver of remaining S-T the second equipment in S the second equipment.
Optionally, when creation is T thread, the T thread belongs to the same process, alternatively, the T thread Belong to multiple processes.
Optionally, processor 501 also performs the following operations: if testing result is that there is no need to install driver Second equipment, then terminate process.
It will be appreciated that for details, reference can be made to Fig. 1 into Fig. 6 appoints content described in embodiment for the execution step of processor 501, Details are not described herein again.
By detecting and whether there is the second equipment in terminal, and depositing after the driver of the first equipment is installed In the second equipment, the driver of the second equipment is installed, realizes that correct installation is set dependent on the second of the first equipment Standby driver improves the experience of user.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the present invention Benefit requires made equivalent variations, still belongs to the scope covered by the invention.

Claims (17)

1. a kind of drive programe installation method characterized by comprising
The hardware information in terminal is enumerated by API, terminal is scanned to obtain and need to install the first of driver and set It is standby, the driver of first equipment is installed;
After the driver of first equipment is installed, the terminal is scanned with detect in the terminal whether In the presence of the second equipment for needing to install driver, wherein second equipment is the driver peace in first equipment The equipment for needing to install driver just shown after the completion of dress;
If testing result is in the presence of second equipment for needing to install driver, to the driver of second equipment It is installed.
2. the method according to claim 1, wherein carrying out installing it to the driver of second equipment Afterwards, the method also includes:
The terminal is scanned to detect in the terminal with the presence or absence of needing to install the third equipment of driver, In, the third equipment is the needs installation driving journey just shown after the driver of second equipment is installed The equipment of sequence;
If testing result is in the presence of the third equipment for needing to install driver, to the driver of the third equipment It is installed.
3. the method according to claim 1, wherein install to the driver of first equipment specific Include:
M thread or process are created according to the quantity N of first equipment, wherein M is the positive integer greater than zero, and N is greater than zero Positive integer, M≤N;
The driver of M the first equipment in N number of first equipment is installed simultaneously by the M thread or process, And queue is carried out to the driver of remaining N-M in N number of first equipment the first equipment.
4. according to the method described in claim 3, it is characterized in that, install to the driver of second equipment specific Include:
Judge whether the quantity S of second equipment is greater than M, wherein S is the positive integer greater than zero;
If it is judged that for greater than M, then by the M thread or process to M the second equipment in S the second equipment Driver is installed simultaneously, and the driver of other the second equipment in S the second equipment is carried out queue;
If it is judged that then being selected and second number of devices from the M thread or process for less than or equal to M Equal thread or process installs the driver of second equipment simultaneously.
5. according to the method described in claim 3, it is characterized in that, the M thread belongs to when creation is M thread The same process, alternatively, the M thread belongs to multiple processes.
6. the method according to claim 1, wherein install to the driver of second equipment specific Include:
T thread or process are created according to the quantity S of second equipment, wherein S is the positive integer greater than zero, and T is greater than zero Positive integer, S≤T;
The driver of T the second equipment in S the second equipment is installed simultaneously by the T thread or process, And queue is carried out to the driver of remaining S-T the second equipment in S the second equipment.
7. according to the method described in claim 6, it is characterized in that, the T thread belongs to when creation is T thread The same process, alternatively, the T thread belongs to multiple processes.
8. the method according to claim 1, wherein if testing result is that there is no need to install driver Second equipment, then terminate process.
9. a kind of driver mounting device, which is characterized in that described device include first installation module, first detection module with And second installation module,
The first installation module is used to enumerate the hardware information in terminal by API, is scanned terminal to obtain needs The first equipment for installing driver, installs the driver of first equipment;
The first detection module is used for after the driver of first equipment is installed, and is scanned to the terminal To detect in the terminal with the presence or absence of the second equipment for needing to install driver, wherein second equipment is described What the driver of the first equipment was just shown after being installed needs to install the equipment of driver;
The second installation module is used for when testing result is in the presence of second equipment for needing to install driver, to institute The driver for stating the second equipment is installed.
10. device according to claim 9, which is characterized in that described device further includes the second detection module and third Module is installed,
Second detection module is detected to install with the presence or absence of needs in the terminal for being scanned the terminal and be driven The third equipment of dynamic program, wherein the third equipment is just to show after the driver of second equipment is installed The equipment for needing to install driver out;
Third installation module is used for when testing result be the third equipment that presence needs to install driver, to described the The driver of three equipment is installed.
11. device according to claim 9, which is characterized in that it is described first installation module include the first creating unit with And first installation unit,
First creating unit is used to create M thread or process according to the quantity N of first equipment, wherein M for greater than Zero positive integer, N are the positive integer greater than zero, M≤N;
First installation unit is used for the drive by the M thread or process to M the first equipment in N number of first equipment Dynamic program is installed simultaneously, and carries out queue to the driver of remaining N-M in N number of first equipment the first equipment.
12. device according to claim 11, which is characterized in that the second installation module includes judging unit and the Two installation units,
The judging unit is for judging whether the quantity S of second equipment is greater than M, wherein S is the positive integer greater than zero;
Second installation unit is used for when judging result is greater than M, by the M thread or process in S the second equipment The driver of M the second equipment installed simultaneously, and by the driver of other the second equipment in S the second equipment Carry out queue;When judging result is less than or equal to M, selection and second equipment from the M thread or process The equal thread of quantity or process install the driver of second equipment simultaneously.
13. device according to claim 11, which is characterized in that when creation is M thread, the M thread category In the same process, alternatively, the M thread belongs to multiple processes.
14. device according to claim 9, which is characterized in that it is described second installation equipment include the second creating unit with And second installation unit,
Second creating unit is used to create T thread or process according to the quantity S of second equipment, wherein S for greater than Zero positive integer, T are the positive integer greater than zero, S≤T;
Second installation unit is used for the drive by the T thread or process to T the second equipment in S the second equipment Dynamic program is installed simultaneously, and carries out queue to the driver of remaining S-T the second equipment in S the second equipment.
15. device according to claim 14, which is characterized in that when creation is T thread, the T thread category In the same process, alternatively, the T thread belongs to multiple processes.
16. device according to claim 9, which is characterized in that the first detection module be also used to be in testing result There is no second equipment for needing to install driver, terminate process.
17. a kind of terminal characterized by comprising processor, memory, communication interface and bus;It is the processor, described Memory is connected by the bus with the communication interface and completes mutual communication;The memory stores executable journey Sequence code;The processor is run and the executable journey by reading the executable program code stored in the memory The corresponding program of sequence code, with the installation method for executing a kind of driver;Wherein, the method is such as claim 1 To method described in 8 any claims.
CN201610410915.9A 2016-06-13 2016-06-13 Drive programe installation method, device and terminal Active CN106055370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610410915.9A CN106055370B (en) 2016-06-13 2016-06-13 Drive programe installation method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610410915.9A CN106055370B (en) 2016-06-13 2016-06-13 Drive programe installation method, device and terminal

Publications (2)

Publication Number Publication Date
CN106055370A CN106055370A (en) 2016-10-26
CN106055370B true CN106055370B (en) 2019-07-23

Family

ID=57170208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610410915.9A Active CN106055370B (en) 2016-06-13 2016-06-13 Drive programe installation method, device and terminal

Country Status (1)

Country Link
CN (1) CN106055370B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649020A (en) * 2017-01-22 2017-05-10 郑州云海信息技术有限公司 Detecting method and device for storage case burn information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1277386A (en) * 1999-06-10 2000-12-20 神达电脑股份有限公司 Automatic installation of driver program for personal computer
CN102929665A (en) * 2012-10-17 2013-02-13 北京奇虎科技有限公司 System for mounting drive
CN104714814A (en) * 2013-12-13 2015-06-17 贝壳网际(北京)安全技术有限公司 Drive program mounting method and client terminal device
CN104881314A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Method for installing driver and driver installation device
CN105159729A (en) * 2015-09-25 2015-12-16 北京金山安全软件有限公司 Method and device for installing driver

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1277386A (en) * 1999-06-10 2000-12-20 神达电脑股份有限公司 Automatic installation of driver program for personal computer
CN102929665A (en) * 2012-10-17 2013-02-13 北京奇虎科技有限公司 System for mounting drive
CN104714814A (en) * 2013-12-13 2015-06-17 贝壳网际(北京)安全技术有限公司 Drive program mounting method and client terminal device
CN104881314A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Method for installing driver and driver installation device
CN105159729A (en) * 2015-09-25 2015-12-16 北京金山安全软件有限公司 Method and device for installing driver

Also Published As

Publication number Publication date
CN106055370A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CA2797451C (en) System for identifying and inferring web session events
US9824211B2 (en) System and method to visualize user sessions
US9201572B2 (en) A/B test configuration environment
CN106293365B (en) A kind of method and device obtaining content of pages
CN105320417B (en) Page switching method and client
CN110245069B (en) Page version testing method and device and page display method and device
CN105868096B (en) For showing the method, device and equipment of web page test result in a browser
US10175954B2 (en) Method of processing big data, including arranging icons in a workflow GUI by a user, checking process availability and syntax, converting the workflow into execution code, monitoring the workflow, and displaying associated information
CN106339146A (en) Method and device for recommending applications
CN102207812B (en) Touch electronic device and multi-window management method thereof
CN104881273B (en) A kind of analysis method and terminal device of webpage rendering
WO2016011879A1 (en) Web page display method and apparatus
CN109491736B (en) Display method and device of pop-up frame window
CN104484094B (en) The implementation method at the tunnel monitoring multiple web pages interface based on multi-screen work station
CN103577034A (en) Method and unit for accessing functional modules of client
CN109740092B (en) Browser system, message processing method, electronic device, and storage medium
US20170169122A1 (en) Webpage display method, mobile terminal, intelligent terminal, program and storage medium
US20150135141A1 (en) Method and apparatus for creating a control interface of a peripheral device
US9477399B1 (en) Automated interaction for mobile applications
CN111400575B (en) User identification generation method, user identification method and device
CN111309413B (en) Interface display method and device, electronic equipment and storage medium
CN106055370B (en) Drive programe installation method, device and terminal
US10628182B2 (en) Generation of an instruction guide based on a current hardware configuration of a system
US9201591B1 (en) Automated coverage monitoring of mobile applications
CN106095445B (en) Installation method, device and the terminal of driver

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20181128

Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Applicant after: Zhuhai Leopard Technology Co.,Ltd.

Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant