CN105824649B - Determine driver application installation whether successful method, apparatus and electronic equipment - Google Patents

Determine driver application installation whether successful method, apparatus and electronic equipment Download PDF

Info

Publication number
CN105824649B
CN105824649B CN201610405331.2A CN201610405331A CN105824649B CN 105824649 B CN105824649 B CN 105824649B CN 201610405331 A CN201610405331 A CN 201610405331A CN 105824649 B CN105824649 B CN 105824649B
Authority
CN
China
Prior art keywords
hardware
driver application
installation
application
unit
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
CN201610405331.2A
Other languages
Chinese (zh)
Other versions
CN105824649A (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 CN201610405331.2A priority Critical patent/CN105824649B/en
Publication of CN105824649A publication Critical patent/CN105824649A/en
Application granted granted Critical
Publication of CN105824649B publication Critical patent/CN105824649B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

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

Abstract

The embodiment of the present invention disclose a kind of determining driver application installation whether successful method, apparatus and electronic equipment, be related to application program mounting technique, be able to ascend the installation success rate of driver application.Whether successful method includes: to monitor that the driver application currently just installed output is installed information for the determining driver application installation;Obtain the corresponding hardware state mark of the driver application;If the hardware state is identified as unavailable, reboot operation system;Record the os starting temporal information of reboot operation system;If the os starting temporal information and the os starting temporal information of the reboot operation system when installation driver application of record are inconsistent;It calls the hardware state to be identified as unavailable corresponding hardware, runs whether the hardware is succeeded with the determination driver application installation.The present invention is suitable for installation driver application.

Description

Determine driver application installation whether successful method, apparatus and electronic equipment
Technical field
The present invention relates to whether application program mounting technique more particularly to a kind of determining driver application installation are successful Method, apparatus and electronic equipment.
Background technique
With computer communication and the continuous development of Internet technology, electronic equipment, for example, intelligent mobile phone, a The application such as personal digital assistant, palm PC, laptop is more and more extensive, and electronic equipment is made of hardware and software, In, software includes functional application (App, Application) and driver application, and functional application is that user holds Application program needed for industry business, driver application are the bridges of hardware and software communication, are in computer or electronic equipment Essential special software, to drive hardware to execute the operation of functional application, it is believed that be a part of hardware. Specifically, driver application operates in a kind of kernel of operating system (functional application), is equivalent to operating system extremely The interface of hardware, hardware capability is notified operating system, meanwhile, the instruction of operating system is communicated to hardware.
Electronic equipment reinstall every time operating system or access new hardware when, for example, access mainboard, video card, sound card, Network interface card etc. needs to install corresponding driver application, if the corresponding driver application of hardware fails correctly to install, this is hard Part just cisco unity malfunction.Therefore, it identifies and ensures that driver application is successfully installed, be that hardware works normally and improve work An important factor for efficiency.
But existing determining driver application installation whether successful method, it is special due to some driver applications Property, after such driver application is installed and driver application is prompted to be installed, need user in no prompt user In the case of needing to restart, electronic equipment (computer) is restarted manually, the driving of installation could be made to answer program success, to drive Corresponding hardware is moved to work normally, and after driver application is installed, since user can not know the driving of the installation Whether application program, which needs, restarts, and thus, not can determine that the driving answers program at whether installing success.If user is not being restarted Scene under use corresponding hardware, it is unavailable to will lead to hardware so that user thinks that driver application does not install success, from And other corresponding driver applications are searched for, cause the time needed for installing driver application long, driver application peace It is lower to dress up power;In turn, for same hardware, different driver applications is continually installed, also will lead to each driving and answer With the conflict between program, operating-system resources occupancy has been increased significantly, has reduced the operating rate of electronic equipment.
Summary of the invention
In view of this, the embodiment of the present invention provide a kind of determining driver application installation whether successful method, apparatus And electronic equipment, it is able to ascend the installation success rate of driver application, to solve existing determining driver application installation Whether in successful method, user is unavailable using hardware caused by hardware under the scene that do not restart, and installation success rate is lower The problem of.
In a first aspect, the embodiment of the present invention provide a kind of determining driver application installation whether successful method, comprising:
Monitor that the driver application currently just installed output is installed information;
Obtain the corresponding hardware state mark of the driver application;
If the hardware state is identified as unavailable, reboot operation system;
Record the os starting temporal information of reboot operation system;
If os starting temporal information and the reboot operation when installation driver application of record The os starting temporal information of system is inconsistent;
It calls the hardware state to be identified as unavailable corresponding hardware, runs the hardware with the determination driving application Whether program installation succeeds.
With reference to first aspect, described to obtain the driver application pair in the first embodiment of first aspect The hardware state answered identifies
The corresponding hardware of the driver application is called, pre-set application function is executed;
If execute application function can complete, be arranged the hardware state be identified as it is available, if execute application Function can not be completed, be arranged the hardware state be identified as it is unavailable.
With reference to first aspect, in second of embodiment of first aspect, the method also includes:
The instruction for receiving the corresponding hardware operation of the calling driver application exported by user, runs described hard Part;
If the hardware is not normally functioning, the set-up time letter of the corresponding driver application of the hardware is extracted Breath;
Judge the operating system reboot time letter that operating system is restarted whether is recorded after the set-up time information Breath;
If do not recorded, Xiang Suoshu user prompts reboot operation system.
With reference to first aspect, in the third embodiment of first aspect, if identified in the hardware state After unavailable, before reboot operation system, the method also includes:
Judge whether operating system currently runs pre-set functional application, if so, postponing reboot operation system System;If it is not, the step of executing the reboot operation system.
With reference to first aspect, the first of first aspect any embodiment into the third, the of first aspect In four kinds of embodiments, the operation hardware with the determination driver application installation whether successfully include:
The hardware is run, pre-set application function is executed;
If the application function executed can not be completed, determine that the driver application installation is unsuccessful, according to preparatory The strategy of setting is handled;If the application function executed can be completed, determine that the driver application is installed successfully.
The 4th kind of embodiment with reference to first aspect, it is described according to pre- in the 5th kind of embodiment of first aspect The strategy being first arranged carries out processing
The installation scenario of the driver application is installed in detection;
If the installation scenario is detected as exception, the installation scenario is repaired;
The driver application is installed in the installation scenario for completing to repair.
Second aspect, the embodiment of the present invention provide a kind of determining driver application installation whether successful device, comprising: Monitoring modular, identifier acquisition module restart module and installation condition determining module, wherein
Monitoring modular, for monitoring that the driver application currently just installed output is installed information;
Identifier acquisition module, for obtaining the corresponding hardware state mark of the driver application;
Module is restarted, if being identified as unavailable, reboot operation system for the hardware state;
Installation condition determining module, for recording the os starting temporal information of reboot operation system;If record The installation driver application when os starting temporal information and the operating system of the reboot operation system open Dynamic temporal information is inconsistent;It calls the hardware state to be identified as unavailable corresponding hardware, runs the hardware to determine State whether driver application installation succeeds.
In conjunction with second aspect, in the first embodiment of second aspect, the identifier acquisition module includes: using function Energy execution unit and mark setting unit, wherein
Application function execution unit executes pre-set answer for calling the corresponding hardware of the driver application Use function;
Identify setting unit, if execute application function can complete, be arranged the hardware state be identified as it is available, such as Fruit execute application function can not complete, be arranged the hardware state be identified as it is unavailable.
In conjunction with second aspect, in second of embodiment of second aspect, described device further include:
Hardware runs processing module, for receiving the corresponding hardware fortune of the calling driver application by user's output Capable instruction runs the hardware;If the hardware is not normally functioning, the corresponding driver application of the hardware is extracted Set-up time information;Judge that whether recording the operating system that operating system is restarted after the set-up time information restarts Temporal information;If do not recorded, Xiang Suoshu user prompts reboot operation system.
In conjunction with second aspect, in the third embodiment of second aspect, described to restart module include: that mark judgement is single Member, is postponed restarting unit and restarts unit functional application operation judging unit, wherein
Identify judging unit, for judge the hardware state be identified as it is unavailable after, informing function application program transport Row judging unit;
Functional application runs judging unit, answers for judging whether operating system currently runs pre-set function With program, if so, notice is postponed restarting unit;If it is not, notice restarts unit;
Unit is restarted in postponement, for postponing reboot operation system;
Restart unit, is used for reboot operation system.
In conjunction with second aspect, second aspect the first into the third any embodiment, the of second aspect In four kinds of embodiments, the installation condition determining module includes: recording unit, matching unit, hardware running unit and peace Fill status determining unit, wherein
Recording unit, for recording the os starting temporal information of reboot operation system;
Matching unit, if record install the driver application when os starting temporal information with it is described The os starting temporal information of reboot operation system is inconsistent, notifies hardware running unit;
Hardware running unit executes pre-set application function for running the hardware;
Installation condition determination unit determines the driver application peace if the application function executed can not be completed It fills unsuccessful, is handled according to pre-set strategy;If the application function executed can be completed, determine that the driving is answered It is installed successfully with program.
It is described according to pre- in the 5th kind of embodiment of second aspect in conjunction with the 4th kind of embodiment of second aspect The strategy being first arranged carries out processing
The installation scenario of the driver application is installed in detection;
If the installation scenario is detected as exception, the installation scenario is repaired;
The driver application is installed in the installation scenario for completing to repair.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: shell, processor, deposits Reservoir, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory setting On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing and can hold Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory The program answered, for execute aforementioned any determination driver application installation whether successful method.
Whether successful method, apparatus and electronics are set for a kind of determining driver application installation provided in an embodiment of the present invention It is standby, by monitoring that the driver application currently just installed output is installed information;Obtain the driver application pair The hardware state mark answered;If the hardware state is identified as unavailable, reboot operation system;Record reboot operation system Os starting temporal information;If record install the driver application when os starting temporal information with The os starting temporal information of the reboot operation system is inconsistent;The hardware state is called to be identified as unavailable correspondence Hardware, run whether the hardware is succeeded with determination driver application installation, be able to ascend driver application Success rate is installed, to solve existing determining driver application installation whether in successful method, user is in the field that do not restart It is unavailable using hardware caused by hardware under scape, the lower problem of success rate is installed.
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 Other attached drawings are obtained according to these attached drawings.
Fig. 1 be the embodiment of the present invention one determine driver application installation whether successful method flow schematic diagram;
Fig. 2 be the embodiment of the present invention two determine driver application installation whether successful method flow schematic diagram;
Fig. 3 be the embodiment of the present invention three determine driver application installation whether successful apparatus structure schematic diagram;
Fig. 4 is the structural schematic diagram of electronic equipment one embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 be the embodiment of the present invention one determine driver application installation whether successful method flow schematic diagram, such as Shown in Fig. 1, the method for the present embodiment may include:
Step 101, monitor that the driver application currently just installed output is installed information;
In the present embodiment, the installation of driver application can be automatic installation, be also possible to install manually.Wherein, certainly Dynamic installation can be electronic equipment after having detected relevant upgrade version driver application, and automatic trigger is installed upgrade version and driven Dynamic application program;Alternatively, having detected new hardware insertion, the new hardware information of foundation insertion searches for the corresponding drive of new hardware Dynamic application program is installed automatically.Installation can be user's downloading upgrade version driver application manually or new hardware is corresponding After driver application, installed manually.
In the present embodiment, if after the installation process operation of driver application, can show and install in installation interface Complete information.
It, can be by injecting the side of pre-set hook (Hook) function in an operating system as an alternative embodiment Formula, what monitoring installation interface was shown is installed information.
Currently, since driver application is the configuration text that each hardware vendor writes for one's own side's product according to operating system Part, the corresponding driver application of different hardware is different, same hardware, for different manufacturers and different operation systems System, the driver application of adaptation is also different, thus, in hardware use process, in order to guarantee the compatibility and enhancing of hardware The function of hardware needs constantly to upgrade by corresponding website and installs driver application.Thus, due to driver application The problem of upgrading causes hardware to be not normally functioning is increasing, needs to expend user and a large amount of time goes to solve.
In the present embodiment, as an alternative embodiment, hardware includes but is not limited to: printer, network interface card, modem, U Disk, CD-ROM drive, video card, sound card etc..
Step 102, the corresponding hardware state mark of the driver application is obtained;
In the present embodiment, as an alternative embodiment, the corresponding hardware state mark packet of the driver application is obtained It includes:
A11 calls the corresponding hardware of the driver application, executes pre-set application function;
Whether in the present embodiment, setting calls the corresponding hardware of driver application by operating system, can with testing hardware Enough to operate normally, if driver application is printer driver application program, corresponding hardware is printer, then can call Printer prints one pre-set test sheets of a blank document or printing;For another example if driver application is USB flash disk driving Application program, then corresponding hardware is the USB flash disk being newly inserted into, then can execute and read a file from USB flash disk.
A12, if execute application function can complete, be arranged the hardware state be identified as it is available, if execute Application function can not be completed, be arranged the hardware state be identified as it is unavailable.
In the present embodiment, if printer can print, alternatively, can from USB flash disk reading folder, then it represents that printer Driver application or USB flash disk driver application are installed successfully, and printer or USB flash disk are available;If can not print or cannot read Take file, then it represents that although printer driver application program or USB flash disk driver application are installed, but printer or USB flash disk It not can be used also, driver application does not install success also, and may also need to be implemented operating system and restart could install successfully.
Step 103, if the hardware state is identified as unavailable, reboot operation system;
In the present embodiment, after driver application is installed, the driver application pair is called using operating system The hardware answered executes pre-set application function, if hardware cannot normally execute application function, passes through reboot operation system System, as one of the method that hardware cannot normally execute application function is repaired.
In the present embodiment, as an alternative embodiment, this method can also include:
A21, receives the instruction that the corresponding hardware of calling driver application export by user is run, described in operation Hardware;
A22 extracts the set-up time of the corresponding driver application of the hardware if the hardware is not normally functioning Information;
In the present embodiment, after the corresponding driver application of installation hardware, user may need using the hardware, but should Hardware is also not carried out and restarts after driver application is installed, thus, it will lead to hardware operation failure, it is then desired to really The fixed hardware is after installing driver application, if executed and restarts, and if be not carried out, user can be notified to pass through weight It opens, the operation problem of the hardware can be can solve.
A23, when judging that whether recording the operating system that operating system is restarted after the set-up time information restarts Between information;
In the present embodiment, operating system can all record the time of starting after starting each time in operating system log Information, thus, by read operation system log, available operating system reboot time information.
A24, if do not recorded, Xiang Suoshu user prompts reboot operation system.
In the present embodiment, user may also carry out other application function during installing driver application Application, for example, carry out Office work, game etc., in order to not influence the normal work of user, as an alternative embodiment, If the hardware state be identified as it is unavailable after, before reboot operation system, this method further include:
Judge whether operating system currently runs pre-set functional application, if so, postponing reboot operation system System;If it is not, the step of executing the reboot operation system.
It, can be according to pre-set time cycle, monitoring operation system after postponing reboot operation system in the present embodiment Whether system currently runs pre-set functional application, if not provided, the step of executing the reboot operation system, if Have, then waits subsequent time period to be monitored again.
As another alternative embodiment, if the hardware state be identified as it is unavailable after, reboot operation system Before system, this method further include:
The hardware state is recorded to be identified as unavailable corresponding hardware instance mark and the driving is installed using journey Os starting temporal information when sequence.
In the present embodiment, after driver application installation, if corresponding hardware operation (state) is abnormal, record is worked as Preceding os starting temporal information, that is, os starting temporal information and hardware when the driver application is installed Instance identification.
In practical application, the driver application version information of installation can also be recorded.
Step 104, the os starting temporal information of reboot operation system is recorded;
Step 105, if record install the driver application when os starting temporal information with it is described The os starting temporal information of reboot operation system is inconsistent;
Step 106, it calls the hardware state to be identified as unavailable corresponding hardware, runs the hardware described in determination Whether driver application installation succeeds.
The operation hardware with the determination driver application installation whether successfully include:
C11 runs the hardware, executes pre-set application function;
C12 determines that the driver application installation is unsuccessful if the application function executed can not be completed, according to Pre-set strategy is handled;If the application function executed can be completed, determine that the driver application is mounted to Function.
In the present embodiment, after operating system is restarted, the operating system when installation driver application of record is opened The os starting temporal information of dynamic temporal information and the reboot operation system can be inconsistent, shows in installation driving application It after program, performs and restarts, it may be possible to eliminate hardware and run abnormal technical problem, therefore, it is hard that this can be run again Part shows to overcome the abnormal technical problem of hardware operation by restarting, if still if the hardware can operate normally It runs abnormal, then can confirm driver application install failure.
In the present embodiment, as an alternative embodiment, carrying out processing according to pre-set strategy includes:
Prompt user downloads new driver application.
As another alternative embodiment, carrying out processing according to pre-set strategy includes:
The installation scenario of the driver application is installed in D11, detection;
D12 repairs the installation scenario if the installation scenario is detected as exception;
In the present embodiment, as an alternative embodiment, if the installation scenario is detected as exception, to the installation Scene repair
If the system file missing that the driver application relies on, obtains from pre-set system file server It is installed after the system file that the driver application relies on.
In the present embodiment, the system file that different driver applications relies on is different, for example, printer driver application journey The system file that sequence relies on is usbprint.inf file, be mounted on windows under inf catalogue, if it is installation printer Program is answered in driving, and windows usbprint.inf file is not detected under inf catalogue, then confirm that printer driver is answered The system file missing relied on program.
As another alternative embodiment, if the installation scenario is detected as exception, the installation scenario is carried out Reparation includes:
If being equipped with the driver application in operating system, the driver application installed is removed All Files.
In the present embodiment, the driver application is installed and has referred to the driver application for being equipped with other versions, Or there are the fragment files of the driver application of unfinished installation.
D13 installs the driver application in the installation scenario for completing to repair.
The embodiment of the present invention one determine driver application installation whether successful method, by monitoring current Zhengan County The driver application output of dress is installed information;Obtain the corresponding hardware state mark of the driver application;If The hardware state is identified as unavailable, reboot operation system;Record the os starting temporal information of reboot operation system; If the behaviour of os starting temporal information and the reboot operation system when installation driver application of record It is inconsistent to make system start-up time information;It calls the hardware state to be identified as unavailable corresponding hardware, runs the hardware Whether succeeded with the determination driver application installation.In this way, being restarted automatically operation by after installing driver application System can increase the installation success rate of driver application, so that user is clicking the corresponding hardware of the driver application Afterwards, hardware can operate normally, to avoid user unavailable using hardware caused by hardware under the scene that do not restart, need Other corresponding driver applications are searched for, the time needed for reducing installation driver application;In turn, it is driven due to improving The installation success rate of dynamic application program can effectively reduce driver application installation number, to avoid each driving of installation Conflict between application program reduces operating-system resources and occupies, promotes the operating rate of electronic equipment.
Embodiment two
Fig. 2 be the embodiment of the present invention two determine driver application installation whether successful method flow schematic diagram, such as Shown in Fig. 2, the method for the present embodiment may include:
Step 201, it is reinstalling operating system or is monitoring new hardware access computer;
Step 202, corresponding driver application is installed;
Step 203, after driver application is installed, the corresponding hardware of driver application is called, judges that hardware is It is no normal, if so, step 209 is executed, if it is not, executing step 204;
Step 204, starting time and the hardware instance mark of operating system are recorded;
Step 205, reboot operation system records the reboot time of reboot operation system;
Step 206, if the starting time of operating system and the reboot time of reboot operation system are inconsistent;
Step 207, the corresponding hardware of driver application is called again, whether normal hardware is judged, if so, executing step Rapid 209, if it is not, executing step 208;
Step 208, confirm driver application install failure;
Step 209, confirmation driver application is installed successfully.
The method that the embodiment of the present invention two manages application program is recorded by comparing with record hardware instance mark simultaneously Operating system the starting time, and, the reboot time of the reboot operation system recorded after the record, if the two is not Unanimously, then hardware is run to determine whether the corresponding driver application of the hardware installs success.
Embodiment three
Fig. 3 be the embodiment of the present invention three determine driver application installation whether successful apparatus structure schematic diagram, such as Shown in Fig. 3, the device of the present embodiment may include: monitoring modular 31, identifier acquisition module 32, restart module 33 and installation shape State determining module 34, wherein
Monitoring modular 31, for monitoring that the driver application currently just installed output is installed information;
It, can be by injecting the side of pre-set hook (Hook) function in an operating system as an alternative embodiment Formula, what monitoring installation interface was shown is installed information.
In the present embodiment, as an alternative embodiment, hardware includes but is not limited to: printer, network interface card, modem, U Disk, CD-ROM drive, video card, sound card etc..
Identifier acquisition module 32, for obtaining the corresponding hardware state mark of the driver application;
In the present embodiment, as an alternative embodiment, identifier acquisition module 32 includes: application function execution unit and mark Know setting unit (not shown), wherein
Application function execution unit executes pre-set answer for calling the corresponding hardware of the driver application Use function;
Identify setting unit, if execute application function can complete, be arranged the hardware state be identified as it is available, such as Fruit execute application function can not complete, be arranged the hardware state be identified as it is unavailable.
Module 33 is restarted, if being identified as unavailable, reboot operation system for the hardware state;
In the present embodiment, as an alternative embodiment, restarting module 33 includes: mark judging unit, functional application Operation judging unit is postponed restarting unit and restarts unit (not shown), wherein
Identify judging unit, for judge the hardware state be identified as it is unavailable after, informing function application program transport Row judging unit;
Functional application runs judging unit, answers for judging whether operating system currently runs pre-set function With program, if so, notice is postponed restarting unit;If it is not, notice restarts unit;
Unit is restarted in postponement, for postponing reboot operation system;
It, can be according to pre-set time cycle, monitoring operation system after postponing reboot operation system in the present embodiment Whether system currently runs pre-set functional application, if not provided, the step of executing the reboot operation system, if Have, then waits subsequent time period to be monitored again.
Restart unit, is used for reboot operation system.
As an alternative embodiment, module 33 is restarted further include:
Information recording unit, for mark judging unit judge the hardware state be identified as it is unavailable after, record institute State operating system when hardware state is identified as unavailable corresponding hardware instance mark and installs the driver application Start temporal information.
Installation condition determining module 34, for recording the os starting temporal information of reboot operation system;If note The operating system of os starting temporal information and the reboot operation system when installation driver application of record It is inconsistent to start temporal information;It calls the hardware state to be identified as unavailable corresponding hardware, runs the hardware with determination Whether the driver application installation succeeds.
In the present embodiment, as an alternative embodiment, installation condition determining module 34 include: recording unit, matching unit, Hardware running unit and installation condition determination unit, wherein
Recording unit, for recording the os starting temporal information of reboot operation system;
Matching unit, if record install the driver application when os starting temporal information with it is described The os starting temporal information of reboot operation system is inconsistent, notifies hardware running unit;
Hardware running unit executes pre-set application function for running the hardware;
Installation condition determination unit determines the driver application peace if the application function executed can not be completed It fills unsuccessful, is handled according to pre-set strategy;If the application function executed can be completed, determine that the driving is answered It is installed successfully with program.
In the present embodiment, as an alternative embodiment, carrying out processing according to pre-set strategy includes:
Prompt user downloads new driver application.
As another alternative embodiment, carrying out processing according to pre-set strategy includes:
The installation scenario of the driver application is installed in detection;
If the installation scenario is detected as exception, the installation scenario is repaired;
The driver application is installed in the installation scenario for completing to repair.
In the present embodiment, as an alternative embodiment, if the installation scenario is detected as exception, to the installation Scene repair
If the system file missing that the driver application relies on, obtains from pre-set system file server It is installed after the system file that the driver application relies on.
As another alternative embodiment, if the installation scenario is detected as exception, the installation scenario is carried out Reparation includes:
If being equipped with the driver application in operating system, the driver application installed is removed All Files.
In the present embodiment, as an alternative embodiment, which can also include:
Hardware runs processing module 35, for receiving the corresponding hardware of the calling driver application exported by user The instruction of operation runs the hardware;If the hardware is not normally functioning, the corresponding driving of the hardware is extracted using journey The set-up time information of sequence;Judge the operating system weight that operating system is restarted whether is recorded after the set-up time information Open temporal information;If do not recorded, Xiang Suoshu user prompts reboot operation system.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1 and Fig. 2, realize former Reason is similar with technical effect, and details are not described herein again.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
For Installation practice, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.
In the above-described embodiment, multiple steps or method can be with storages in memory and by suitable instruction execution The software or firmware that system executes are realized.For example, in another embodiment, can be used if realized with hardware Any one of following technology well known in the art or their combination are realized: being had for realizing logic function to data-signal The discrete logic of the logic gates of energy, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate Array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes dress described in aforementioned any embodiment It sets.
Fig. 4 is the structural schematic diagram of electronic equipment one embodiment of the present invention, may be implemented to implement shown in Fig. 1-3 of the present invention The process of example, as shown in figure 4, above-mentioned electronic equipment may include: shell 41, processor 42, memory 43, circuit board 44 and electricity Source circuit 45, wherein circuit board 44 is placed in the space interior that shell 41 surrounds, and processor 42 and memory 43 are arranged in circuit On plate 44;Power circuit 45, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 43 is for storing and can hold Line program code;Processor 42 is run and executable program generation by reading the executable program code stored in memory 43 The corresponding program of code, for execute the installation of determination driver application described in aforementioned any embodiment whether successful method.
Processor 42 to the specific implementation procedures of above-mentioned steps and processor 42 by operation executable program code come The step of further executing may refer to the description of Fig. 1-3 illustrated embodiment of the present invention, and details are not described herein.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist Implement to realize each unit/module function in the same or multiple software and or hardware when the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that this
Invention can be realized by means of software and necessary general hardware platform.Based on this understanding, of the invention Technical solution substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) execute each embodiment of the present invention or Method described in certain parts of person's embodiment.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (13)

1. a kind of determining driver application installation whether successful method characterized by comprising
Monitor that the driver application currently just installed output is installed information;
Obtain the corresponding hardware state mark of the driver application;
If the hardware state is identified as unavailable, reboot operation system;
Record the os starting temporal information of reboot operation system;
If os starting temporal information and institute when the installation driver application that operating system records before restarting The os starting temporal information for stating reboot operation system is inconsistent;
It calls the hardware state to be identified as unavailable corresponding hardware, runs the hardware with the determination driver application Whether installation succeeds.
2. determining driver application installation according to claim 1 whether successful method, which is characterized in that it is described to obtain The driver application corresponding hardware state mark is taken to include:
The corresponding hardware of the driver application is called, pre-set application function is executed;
If execute application function can complete, be arranged the hardware state be identified as it is available, if execute application function Can not complete, be arranged the hardware state be identified as it is unavailable.
3. determining driver application installation according to claim 1 whether successful method, which is characterized in that the side Method further include:
The instruction for receiving the corresponding hardware operation of the calling driver application exported by user, runs the hardware;
If the hardware is not normally functioning, the set-up time information of the corresponding driver application of the hardware is extracted;
Judge the operating system reboot time information that operating system is restarted whether is recorded after the set-up time information;
If do not recorded, Xiang Suoshu user prompts reboot operation system.
4. determining driver application installation according to claim 1 whether successful method, which is characterized in that described If the hardware state be identified as it is unavailable after, before reboot operation system, the method also includes:
Judge whether operating system currently runs pre-set functional application, if so, postponing reboot operation system;Such as Fruit is not the step of executing the reboot operation system.
5. determining driver application installation according to any one of claims 1 to 4 whether successful method, feature exists In, the operation hardware with the determination driver application installation whether successfully include:
The hardware is run, pre-set application function is executed;
If the application function executed can not be completed, determine that driver application installation is unsuccessful, according to presetting Strategy handled;If the application function executed can be completed, determine that the driver application is installed successfully.
6. determining driver application installation according to claim 5 whether successful method, which is characterized in that it is described to press Carrying out processing according to pre-set strategy includes:
The installation scenario of the driver application is installed in detection;
If the installation scenario is detected as exception, the installation scenario is repaired;
The driver application is installed in the installation scenario for completing to repair.
7. a kind of determining driver application installation whether successful device characterized by comprising monitoring modular, mark obtain Modulus block restarts module and installation condition determining module, wherein
Monitoring modular, for monitoring that the driver application currently just installed output is installed information;
Identifier acquisition module, for obtaining the corresponding hardware state mark of the driver application;
Module is restarted, if being identified as unavailable, reboot operation system for the hardware state;
Installation condition determining module, for recording the os starting temporal information of reboot operation system;If operating system Os starting temporal information and the reboot operation system when installation driver application recorded before restarting Os starting temporal information is inconsistent;It calls the hardware state to be identified as unavailable corresponding hardware, runs described hard Whether part is succeeded with the determination driver application installation.
8. determining driver application installation according to claim 7 whether successful device, which is characterized in that the mark Knowing acquisition module includes: application function execution unit and mark setting unit, wherein
Application function execution unit executes pre-set using function for calling the corresponding hardware of the driver application Energy;
Identify setting unit, if execute application function can complete, be arranged the hardware state be identified as it is available, if held Capable application function can not be completed, be arranged the hardware state be identified as it is unavailable.
9. determining driver application installation according to claim 7 whether successful device, which is characterized in that the dress It sets further include:
Hardware runs processing module, for receiving by the corresponding hardware operation of the calling driver application of user's output Instruction, runs the hardware;If the hardware is not normally functioning, the peace of the corresponding driver application of the hardware is extracted ETL estimated time of loading information;Judge the operating system reboot time that operating system is restarted whether is recorded after the set-up time information Information;If do not recorded, Xiang Suoshu user prompts reboot operation system.
10. determining driver application installation according to claim 7 whether successful device, which is characterized in that it is described Restart module to include: mark judging unit, functional application operation judging unit, postpone restarting unit and restart unit, Wherein,
Identify judging unit, for judge the hardware state be identified as it is unavailable after, informing function application program run sentences Disconnected unit;
Functional application runs judging unit, for judging whether operating system currently runs pre-set functional application journey Sequence, if so, notice is postponed restarting unit;If it is not, notice restarts unit;
Unit is restarted in postponement, for postponing reboot operation system;
Restart unit, is used for reboot operation system.
11. according to the described in any item determining driver applications installations of claim 7 to 10 whether successful device, feature It is, the installation condition determining module includes: that recording unit, matching unit, hardware running unit and installation condition determine Unit, wherein
Recording unit, for recording the os starting temporal information of reboot operation system;
Matching unit, if the os starting temporal information when installation driver application of record is restarted with described The os starting temporal information of operating system is inconsistent, notifies hardware running unit;
Hardware running unit executes pre-set application function for running the hardware;
Installation condition determination unit determines the driver application installation not if the application function executed can not be completed Success, is handled according to pre-set strategy;If the application function executed can be completed, determine the driving using journey Sequence is installed successfully.
12. determining driver application installation according to claim 11 whether successful device, which is characterized in that it is described Carrying out processing according to pre-set strategy includes:
The installation scenario of the driver application is installed in detection;
If the installation scenario is detected as exception, the installation scenario is repaired;
The driver application is installed in the installation scenario for completing to repair.
13. a kind of electronic equipment, which is characterized in that the electronic equipment includes: shell, processor, memory, circuit board and electricity Source circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power supply Circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing executable program code;Processing Device runs program corresponding with executable program code by reading the executable program code stored in memory, for holding Determination driver application installation described in the aforementioned any claim 1-6 of row whether successful method.
CN201610405331.2A 2016-06-08 2016-06-08 Determine driver application installation whether successful method, apparatus and electronic equipment Active CN105824649B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610405331.2A CN105824649B (en) 2016-06-08 2016-06-08 Determine driver application installation whether successful method, apparatus and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610405331.2A CN105824649B (en) 2016-06-08 2016-06-08 Determine driver application installation whether successful method, apparatus and electronic equipment

Publications (2)

Publication Number Publication Date
CN105824649A CN105824649A (en) 2016-08-03
CN105824649B true CN105824649B (en) 2019-04-09

Family

ID=56532226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610405331.2A Active CN105824649B (en) 2016-06-08 2016-06-08 Determine driver application installation whether successful method, apparatus and electronic equipment

Country Status (1)

Country Link
CN (1) CN105824649B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844205B (en) * 2017-01-12 2021-01-22 和宇健康科技股份有限公司 Driver debugging method and system
CN108040159B (en) * 2017-11-30 2021-01-29 江苏觅丰电商科技有限公司 Restart positioning method based on hardware drive, mobile terminal and readable storage medium
CN108228259A (en) * 2017-12-28 2018-06-29 珠海市君天电子科技有限公司 Installation method, server, client and the electronic equipment of hardware driving
CN112416378B (en) * 2020-12-02 2021-08-17 北京航智信息技术有限公司 Cloud architecture system for silent installation of student mobile terminal application

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1441352A (en) * 2002-02-14 2003-09-10 佳能株式会社 Information processor, control method and storage medium for said information processor
CN1527199A (en) * 2003-03-07 2004-09-08 联想(北京)有限公司 Drive program installing process
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101671795B1 (en) * 2010-01-18 2016-11-03 삼성전자주식회사 Computer system and method for preventing dynamic link library injection attack

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1441352A (en) * 2002-02-14 2003-09-10 佳能株式会社 Information processor, control method and storage medium for said information processor
CN1527199A (en) * 2003-03-07 2004-09-08 联想(北京)有限公司 Drive program installing process
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program

Also Published As

Publication number Publication date
CN105824649A (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN105824649B (en) Determine driver application installation whether successful method, apparatus and electronic equipment
CN105094927B (en) A kind of device firmware upgrade method and apparatus
CN103150231B (en) The method of computer booting and computer system
CN103428333B (en) Mobile terminal, server and errors repair method
CN103458086B (en) A kind of smart mobile phone and fault detection method thereof
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
CN104834575A (en) Firmware recovery method and device
CN102662701A (en) Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN105607972B (en) A kind of method and device repaired extremely
CN106155638A (en) In configuration computer, basic input output system usefulness sets the system and method for shelves
CN111158968B (en) BIOS configuration information self-checking method, device and storage medium
CN103186393A (en) Electronic device with substrate management controller firmware and firmware loading method
CN110489287B (en) Method, system and storage medium for testing hot plug through Ipomitool
CN104281479A (en) Firmware upgrading method and device
CN102520975A (en) Intelligent updating method of external equipment driver, device and system
CN109783390A (en) PSU firmware promotion and demotion stability test method, apparatus, terminal and storage medium
CN108874414A (en) Software upgrading method and device, readable storage medium and television equipment
CN103136005A (en) Method of updating firmware
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN109408282A (en) Application Backup restoration methods, equipment and computer readable storage medium
CN115562900B (en) AMD server system installation power-off processing method, device, equipment and medium
CN110362430A (en) A kind of method being restarted automatically, system and the storage medium of server
CN105653412A (en) Fingerprint device compatibility detection method and terminal
CN110134546A (en) Batch restarts windows systems approach, electronic device and storage medium
CN109634782A (en) A kind of detection method of system robustness, device, storage medium and terminal

Legal Events

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

Effective date of registration: 20190111

Address after: 519031 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.

GR01 Patent grant
GR01 Patent grant