CN102937902B - A kind of method and apparatus of drive installation - Google Patents

A kind of method and apparatus of drive installation Download PDF

Info

Publication number
CN102937902B
CN102937902B CN201210395281.6A CN201210395281A CN102937902B CN 102937902 B CN102937902 B CN 102937902B CN 201210395281 A CN201210395281 A CN 201210395281A CN 102937902 B CN102937902 B CN 102937902B
Authority
CN
China
Prior art keywords
hardware device
driver
relied
installation
installation environment
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
CN201210395281.6A
Other languages
Chinese (zh)
Other versions
CN102937902A (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.)
Beijing Qizhi Business Consulting Co ltd
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210395281.6A priority Critical patent/CN102937902B/en
Publication of CN102937902A publication Critical patent/CN102937902A/en
Application granted granted Critical
Publication of CN102937902B publication Critical patent/CN102937902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The method and apparatus that the invention discloses a kind of drive installation, wherein, described method includes: the installation environment for hardware device driver detects;When detecting abnormal, the installation environment of described hardware device driver is repaired accordingly;The installation of hardware device driver is carried out in completing the installation environment repaired.The present invention can improve the success rate that driver is installed.

Description

A kind of method and apparatus of drive installation
Technical field
The present invention relates to the technical field that computer hardware equipment is installed, be specifically related to a kind of drive installation Method and the device of a kind of drive installation.
Background technology
Driver is a kind of separate procedure that computer can be made to communicate with hardware device, and it operates in The kernel of operating system, is equivalent to the operating system interface to hardware device, hardware equipment function Tell operating system, and also the instruction of operating system is conveyed to hardware device.Driver is A part for hardware device, hardware device that one script of every installation is not belonging in computer (as Mainboard, video card, sound card, network interface card etc.) time, it is required for installing correct driver, operation System can control the work of hardware device by this interface of driver, if certain hardware device Driver fail correctly to install, just cisco unity malfunction.Thus it is guaranteed that driver can become Merit is installed, and is the hardware device key factor that can normally work and improve work efficiency.
In existing technology, drive installation is directly to run driver installation procedure, by driving journey Sequence completes the installation of hardware device drivers, due to the reason such as design disappearance of driver, can reduce The success rate that driver is installed.
Therefore, the technical problem that those skilled in the art solution is presently required is: provide one The mechanism of drive installation, in order to improve the success rate that driver is installed.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide one to overcome the problems referred to above or at least Partly solve method and the dress of corresponding a kind of drive installation of a kind of drive installation of the problems referred to above Put.
According to one aspect of the present invention, it is provided that a kind of method of drive installation, including:
Installation environment for hardware device driver detects;
When detecting abnormal, the installation environment of described hardware device driver is repaiied accordingly Multiple;
The installation of hardware device driver is carried out in completing the installation environment repaired.
Alternatively, the described installation environment for hardware device driver carries out the step bag detected Include:
Whether the system file that detection hardware device is relied on lacks;
And/or,
The system service that detection hardware device is relied on the most normally works;
And/or,
Whether detection operating system there is the driver formerly installed;
And/or,
The detection registry entry that relied on of hardware device whether mistake.
Alternatively, described when detecting abnormal, to described hardware device driver mounting ring The step that border is repaired accordingly includes:
When detecting the system file disappearance that hardware device is relied on, described firmly from server acquisition System file that part equipment is relied on also is installed in this locality;
And/or,
When the system service detecting that hardware device is relied on the most normally works, open corresponding system System service;
And/or,
When being tested with the driver formerly installed, the driving formerly installed described in removing The All Files of program;
And/or,
When the registry entry detecting that hardware device is relied on exists mistake, repair corresponding registration List item.
Alternatively, the described step carrying out detecting for the driver installation environment of hardware device exists User performs when triggering the installation of hardware device driver.
According to a further aspect in the invention, it is provided that the device of a kind of drive installation, including:
Driver installation environment detection module, is suitable to the mounting ring for hardware device driver Border is detected;
Driver installation environment repair module, is suitable to when detecting abnormal, sets described hardware The installation environment of standby driver is repaired accordingly;
Driver installs module, is suitable to carry out hardware device in completing the installation environment repaired and drives The installation of dynamic program.
Alternatively, described driver installation environment detection module includes:
System file detection sub-module, is adapted to detect for whether the system file that hardware device relied on lacks Lose;
System service detection sub-module, is the most just being adapted to detect for system service that hardware device relied on Often work;
Old driver detection sub-module, is adapted to detect in described operating system the most formerly installing Driver;
Registry entry error detection submodule, is adapted to detect for the registration table that described hardware device is relied on Whether mistake.
Alternatively, described driver installation environment repair module includes:
System file downloads submodule, is suitable to detecting that the system file that hardware device is relied on lacks Miss the season, obtain the system file that relied on of described hardware device from server and install in this locality;
Submodule is opened in system service, is suitable to detecting that system service that hardware device is relied on is not When normally working, open corresponding system service;
Old driver unloading submodule, is suitable to when being tested with the driver formerly installed, The All Files of the driver formerly installed described in removing;
Registry entry errors repair submodule, is suitable at the registration table detecting that hardware device is relied on When item exists mistake, repair corresponding registry entry.
Alternatively, described device also includes:
Driver installs trigger module, is connected with described driver installation environment detection module, Be suitable to trigger the installation of hardware device driver.
The method and apparatus of a kind of drive installation according to the present invention, can be by pacifying at driver Before installing to operating system, the driver installation environment of hardware device is detected, it would be possible to The driver installation environment causing driver install failure is repaired accordingly, is then repairing Hardware device driver installation environment in be driven the installation of program, thus reached to carry The beneficial effect of the success rate that high driver is installed.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the present invention Technological means, and can be practiced according to the content of description, and the present invention's be upper in order to allow State and can become apparent with other objects, features and advantages, below especially exemplified by the concrete reality of the present invention Execute mode.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit pair Will be clear from understanding in those of ordinary skill in the art.Accompanying drawing is only used for illustrating preferred implementation Purpose, and be not considered as limitation of the present invention.And in whole accompanying drawing, with identical Reference marks represents identical parts.In the accompanying drawings:
Fig. 1 shows the embodiment of the method for a kind of drive installation Flow chart;
Fig. 2 shows the device embodiment of a kind of drive installation Structured flowchart.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although in accompanying drawing Show the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms this Disclose and should not limited by embodiments set forth here.On the contrary, it is provided that these embodiments be in order to The disclosure can be best understood from, and complete for the scope of the present disclosure can be conveyed to ability The technical staff in territory.
The configuration that driver Shi Ge hardware device manufacturer writes according to operating system for one's own side's product File, the driver that various brands product is corresponding is different, and same brand product is for different operations The driver of system adaptation is the most different, and each hardware device manufacturer is in order to ensure holding concurrently of hardware device Capacitive and strengthen the function of equipment and can constantly upgrade driver.The installation of driver is by one Little block code adds in operating system, wherein comprises relevant facility information etc. information data.Have These information, operating system just can communicate with hardware device.
In general, after hardware device completes the installation of driver when using for the first time, afterwards Use be no longer necessary to driver is installed, this has resulted in computer in use for some time, its The upper driver installed by each hardware device is not up-to-date.And old driver have can Can cannot solve some incompatible problem of this product and use to user and bring inconvenience.Such as, right For the driver of BIOS and video card, the driver that manufacturer is updated likely gets instant result Ground improves the performance of hardware device, plays the potential of computer to greatest extent, and the driving of hardware device Dynamic program does not the most update, and user can be made cannot to enjoy the benefit improving systematic function.
In prior art, hardware device driver is installed when, it is the most all directly to run Driver, is completed hardware device driver installation process by driver, but owing to driving There is the problems such as such as system file disappearance, registry error in program, thus easily causes occurring driving The problem of dynamic program install failure.
For above-mentioned technical problem, one of core idea proposing the embodiment of the present invention is, is driving Before dynamic program is installed, the installation environment of computer is detected, such as, to whether lacking pass The system file of key, whether there is the old driving of residual, whether have registry entry mistake, system service The situations such as the most abnormal work detect;If existing abnormal, carrying out repair process, then existing Complete the installation environment repaired is carried out the installation of hardware device driver, thus reach raising and drive The purpose of the success rate that dynamic program is installed.
With reference to Fig. 1, it is shown that the flow chart of the embodiment of the method for a kind of drive installation of the present invention, specifically May comprise steps of:
Step 101, installation environment for hardware device driver detect;
Step 102, when detecting abnormal, the installation environment of described hardware device driver is entered Row is corresponding to be repaired;
Step 103, in completing the installation environment repaired, carry out the installation of hardware device driver.
In practice, during the hardware device that one script of every installation is not belonging in computer, operation System is required for installing correct driver.In embodiments of the present invention, described operating system can To be the operating systems such as Windows, Unix, Linux, Netware, Xenix, except applying Outside operating system on computer, the operating system in the embodiment of the present invention can be applied in mobile Operating system in terminal, such as: PalmOS, Symbian, Windows mobile and Android, The operating system such as iPhoneOS, blackberry.
Described hardware device can include that printer, network interface card, modem, USB flash disk etc. are external Hardware device, it is also possible to including the hardware device that CD-ROM drive, video card, sound card etc. are internal, the present invention is outstanding It is applicable to the application that external hardware equipment driver is installed.Such as, install in a computer After Windows operating system, need to drive CD that mainboard, CD-ROM drive, video card, sound card are installed one by one Deng hardware device driver, drive in CD general with driver installation kit.If Need external other hardware device, corresponding driver, such as, external game to be the most also installed Hardware needs to install the driver of the hardware devices such as handle, steering wheel, rocking bar, DDR, outward Connect printer and need to install the driver of printer, online network interface card to be installed, modem etc. The driver of hardware device, etc..
Which in implementing, can identify current for hardware device according to facility information.With As a example by insertion equipment, insert equipment device descriptor all can Portable device information, in facility information Including device type, manufacturer's information and product information (range of models and performance parameter) etc., root Just can confirm that it is which insertion equipment according to described facility information, thus also can be obtained by insertion and set Standby driver.
A kind of example specifically applied as the embodiment of the present invention, can be by following several respects to firmly The installation environment of part device driver detects:
1) whether the system file that detection hardware device is relied on lacks;
System file refers to the file of deposit operation system master file, is typically installing operation Systematic procedure automatically create and associated documents is placed in the file of correspondence, file here Directly affect the properly functioning of system.
As a example by Windows operating system, the system file that hardware device is relied on generally includes and sets Standby message file (INF, Device INFormation File), be Microsoft be hardware device system Make business and issue a kind of file format that its driver is released, INF file comprises the letter of hardware device Breath or script are to control hardware operation.How this is installed to understand hardware driving in INF document In system, source file where (file to be copied), it is installed in which file (copy To destination path), in registration table, how to add self relevant information (in registration table to be added to Information), device type to be mounted, production firm, model etc..By reading and explaining these Word, Windows just knows how to install driver.
In practice, the system file that different hardware devices is relied on is different, such as, The system file that printer is relied on is usbprint.inf file, by be arranged on windows inf Under catalogue.The application embodiment of the present invention, windows detect whether under inf catalogue to exist Usbprint.inf file, if there is no being then considered as disappearance.In the case of disappearance this document, permissible Download from the server specified under this usbprint.inf file Xie Ru windows inf catalogue.
2) system service that detection hardware device is relied on the most normally works;
System service is a kind of Application Type, and it is at running background.Attendant application is usual Can be local and provide the user some functions by network, at Windows 2000/XP/2003 In system, system service refers to perform the program of appointing system function, routine or process, in order to Hold other programs, especially low layer (close to hardware) program.
As a example by the installation of printed driver, owing to the successful installation of printed driver depends on The Printing Spooler in system is relied to service (printing background service), if this service is not opened, Driver is installed can failure.Application the embodiment of the present invention, can install printed driver it The front Printing Spooler service to system is detected and (i.e. be can determine whether by query service status Whether this service opens), if this service is not opened, then use the order of the service of unlatching to open Printing Spooler services.
3) whether detection operating system there is the driver formerly installed;
Driver operates in the kernel of operating system, and the installation of driver is by a little block code Add in operating system, wherein comprise relevant facility information etc. information data.Certain computer If formerly program of overdriving being installed, it will usually have the information that some remain, such as, be discharged in During the driver failure first installed, just have partial document and cannot unload completely totally, or, The driver formerly installed is destroyed, and causes this driver invalid, but its major part file is still Residual is in a computer.In this case, use the embodiment of the present invention, can be formerly installing Driver unload completely totally, remove all of Stub File, new driving journey can be promoted The success rate that sequence is installed.
4) the detection registry entry that relied on of hardware device whether mistake.
Registration table is an important data base in Windows operating system, is used for storing system Configuration information with application program.It is said that in general, registration table is that a record 32 drives in systems Dynamic setting and the data base of position.When operating system needs access hardware equipment, and it uses driving Program, even equipment are the equipment that a BIOS supports.Prop up when holding equipment is installed necessary without BIOS Needing to drive, this drives and is independently of operating system, but operating system is it is to be appreciated that from which In find them, filename, version number, other arrange and information, there is no registration table to equipment Record, they cannot be used.
The registry entry that hardware device is relied on relates generally to some registration table key assignments, due to registration table Being stored in the form of a hierarchical structure, it is suitable that the element being stored therein is all based on certain logic Sequence, then registration table key assignments is appreciated that in registration table the elementary cell of tissue.When depositing in registration table During storage information, the position that type selecting based on information to be stored is suitable.
As a example by the installation of webcam driver program, it is however generally that, photographic head can be driven by third-party Dynamic one registry entry UpperFilter of carry, if certain third party of carry inside UpperFilter Drive file, but third party drives file not exist (the most unloaded or deleted), just Photographic head can be caused abnormal, and installing driver also can be failed.The application embodiment of the present invention, can Detect to drive for the third party of carry in registry entry UpperFilter, if detection is not Then the key assignments of registry entry UpperFilter can be modified to corresponding file.
In implementing, the above-mentioned installation environment to hardware device driver detect four Individual step can be selected one or a combination thereof to run by those skilled in the art according to actual demand, example As, when installing driver, whether detecting system file lacks and system service whether work in advance Make normal;Or, when installing driver, whether detect the driver formerly installed in advance Unloading is clean;Above-mentioned detection can arbitrarily be arranged by those skilled in the art and either synchronously or asynchronously perform, The present invention to this without being any limitation as.
In one preferred embodiment of the invention, described step 102 can include following sub-step:
Sub-step S11, when detecting system file that hardware device is relied on disappearance, from server Obtain system file that described hardware device relied on and install in this locality;
Sub-step S12, when the system service detecting that hardware device is relied on the most normally works, open Open corresponding system service;
Sub-step S13, when being tested with the driver formerly installed, formerly pacify described in removing The All Files of the driver filled;
Sub-step S24, when detecting that registry entry that hardware device is relied on exists mistake, repair Corresponding registry entry.
In implementing, if the installation environment of hardware device driver is not detected abnormal, Then can directly be driven the installation of program.
For making those skilled in the art be more fully understood that the present invention, below by way of a concrete application originally The example of inventive embodiments further illustrates.
1, user triggers the installation of hardware device driver;
2, detect according to the installation environment to Current hardware device driver that triggers of user, If detecting abnormal, repairing, specifically including:
1) whether the system file that detection hardware device is relied on lacks, the most then from specified services Device obtains the system file that relied on of described hardware device and installs in this locality;
2) system service that detection hardware device is relied on the most normally works, the most then open phase The system service answered;
3) whether detection operating system there is the driver formerly installed, the most then remove institute State the All Files of the driver formerly installed;
4) whether the registry entry that detection hardware device is relied on exists mistake, the most then repair phase The registry entry answered.
3, in the installation environment repaired, carry out the installation of hardware device driver.
Before the embodiment of the present invention is by being installed to operating system at driver, to hardware device Driver installation environment detects, it would be possible to cause the driver of driver install failure Installation environment is repaired accordingly, such as, to whether lack key system file, whether have residual The old driving stayed, the situations such as registry entry mistake, system service the most normal work whether are had to enter Row detection;If existing abnormal, the system file of key being installed accordingly, removing the old of residual Drive, repair the registry entry of mistake, open the system service etc. of abnormal work, then repairing The driver installation environment of multiple hardware device is driven the installation of program, thus effectively carries The success rate that high driver is installed.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as A series of combination of actions, but those skilled in the art should know, and the present invention is by being retouched The restriction of the sequence of movement stated because according to the present invention, some step can use other orders or Person is carried out simultaneously.Secondly, those skilled in the art also should know, reality described in this description Executing example and belong to preferred embodiment, involved action and module not necessarily present invention institute is necessary 's.
With reference to Fig. 2, it is shown that the structured flowchart of the device embodiment of a kind of drive installation of the present invention, Specifically can include such as lower module:
Driver installation environment detection module 201, is suitable to the installation for hardware device driver Environment detects;
Driver installation environment repair module 202, is suitable to when detecting abnormal, to described hardware The installation environment of device driver is repaired accordingly;
Driver installs module 203, is suitable to carry out hardware device in completing the installation environment repaired The installation of driver.
In one preferred embodiment of the invention, described driver installation environment detection module 201 Specifically can include following submodule:
System file detection sub-module, is adapted to detect for whether the system file that hardware device relied on lacks Lose;
System service detection sub-module, is the most just being adapted to detect for system service that hardware device relied on Often work;
Old driver detection sub-module, is adapted to detect in described operating system the most formerly installing Driver;
Registry entry error detection submodule, is adapted to detect for the registration table that described hardware device is relied on Whether mistake.
In one preferred embodiment of the invention, described driver installation environment repair module 202 Specifically can include following submodule:
System file downloads submodule, is suitable to detecting that the system file that hardware device is relied on lacks Miss the season, obtain the system file that relied on of described hardware device from server and install in this locality;
Submodule is opened in system service, is suitable to detecting that system service that hardware device is relied on is not When normally working, open corresponding system service;
Old driver unloading submodule, is suitable to when being tested with the driver formerly installed, The All Files of the driver formerly installed described in removing;
Registry entry errors repair submodule, is suitable at the registration table detecting that hardware device is relied on When item exists mistake, repair corresponding registry entry.
In implementing, the present embodiment can also include such as lower module:
Driver installs trigger module, with described driver installation environment detection module 201 phase Even, be suitable to trigger the installation of hardware device driver.
Before the embodiment of the present invention is by being installed to operating system at driver, to hardware device Driver installation environment detects, it would be possible to cause the driver of driver install failure Installation environment is repaired accordingly, then in the driver installation environment of the hardware device repaired It is driven the installation of program, thus is effectively increased the success rate that driver is installed.
For device embodiment, owing to it is with embodiment of the method basic simlarity, so describe Fairly simple, relevant part sees the part of embodiment of the method and illustrates.
The present invention also show a kind of system for drive installation, described system include client and Server, described client specifically can include such as lower module:
Driver installation environment detection module, is suitable to the mounting ring for hardware device driver Border is detected;
Driver installation environment repair module, is suitable to when detecting abnormal, sets described hardware The installation environment of standby driver is repaired accordingly;
Driver installs module, is suitable to carry out hardware device in completing the installation environment repaired and drives The installation of dynamic program.
In one preferred embodiment of the invention, described driver installation environment detection module tool Body can include following submodule:
System file detection sub-module, is adapted to detect for whether the system file that hardware device relied on lacks Lose;
System service detection sub-module, is the most just being adapted to detect for system service that hardware device relied on Often work;
Old driver detection sub-module, is adapted to detect in described operating system the most formerly installing Driver;
Registry entry error detection submodule, is adapted to detect for the registration table that described hardware device is relied on Whether mistake.
Described server can include responding operation module, for obtaining request in response to system file, Perform obtain corresponding system file and return to the operation of client;In implementing, described In server can the data base of preset preservation system file, when including of receiving that client sends When the system file of system file information obtains request, this system file information of direct basis is from its number Return again to client according to storehouse extracts corresponding system file.Certainly, described server Online search or alternate manner can also be used to obtain current desired system file, and the present invention is to this It is not restricted.
In this case, described driver installation environment repair module specifically can include as follows Submodule:
System file downloads submodule, is suitable to detecting that the system file that hardware device is relied on lacks Miss the season, send system file to server and obtain request, and, receive the institute returned from server State system file that hardware device relied on and install in this locality;
Submodule is opened in system service, is suitable to detecting that system service that hardware device is relied on is not When normally working, open corresponding system service;
Old driver unloading submodule, is suitable to when being tested with the driver formerly installed, The All Files of the driver formerly installed described in removing;
Registry entry errors repair submodule, is suitable at the registration table detecting that hardware device is relied on When item exists mistake, repair corresponding registry entry.
Each embodiment in this specification all uses the mode gone forward one by one to describe, each embodiment emphasis Illustrate is all the difference with other embodiments, identical similar part between each embodiment See mutually.
Provided herein algorithm and display not with any certain computer, virtual system or other set Standby intrinsic relevant.Various general-purpose systems can also be used together with based on teaching in this.According to upper The description in face, constructs the structure required by this kind of system and is apparent from.Additionally, the present invention is also It is not for any certain programmed language.It is understood that, it is possible to use various programming languages realize at this The present disclosure described, and the description above done language-specific is to disclose this Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that Embodiments of the invention can be put into practice in the case of not having these details.In some instances, It is not shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand in each inventive aspect One or more, above in the description of the exemplary embodiment of the present invention, each of the present invention Feature is grouped together in single embodiment, figure or descriptions thereof sometimes.But, and The method of the disclosure should be construed to reflect an intention that i.e. the present invention for required protection requirement Than the more feature of feature being expressly recited in each claim.More precisely, it is as follows As the claims in face are reflected, inventive aspect is less than single enforcement disclosed above All features of example.Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in This detailed description of the invention, the most each claim itself is as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can enter the module in the equipment in embodiment Row adaptively changes and they is arranged on the one or more equipment different from this embodiment In.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, And multiple submodule or subelement or sub-component can be put them in addition.Except such spy Levy and/or outside at least some in process or unit excludes each other, any combination can be used To all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) with And any method or all processes of equipment or unit are combined disclosed in so.Unless additionally It is expressly recited, every disclosed in this specification (including adjoint claim, summary and accompanying drawing) Individual feature can be replaced by the alternative features providing identical, equivalent or similar purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiment bags more described herein Some feature included by including in other embodiments rather than further feature, but different embodiment The combination of feature means to be within the scope of the present invention and formed different embodiments.Such as, In the following claims, embodiment required for protection one of arbitrarily can be with arbitrarily Compound mode use.
The all parts embodiment of the present invention can realize with hardware, or with at one or more The software module run on processor realizes, or realizes with combinations thereof.The technology of this area Personnel should be appreciated that and can use microprocessor or digital signal processor (DSP) in practice Realize some or all parts in daily record data transmission equipment according to embodiments of the present invention Some or all functions.The present invention is also implemented as performing method as described herein Part or all equipment or system program (such as, computer program and computer program Product).The program of such present invention of realization can store on a computer-readable medium, or can To have the form of one or more signal.Such signal can be downloaded from internet website Obtain, or provide on carrier signal, or provide with any other form.
The present invention will be described rather than limits the present invention to it should be noted above-described embodiment Make, and those skilled in the art can design without departing from the scope of the appended claims Go out alternative embodiment.In the claims, any reference marks structure between bracket should not will be located in Cause limitations on claims.Word " comprises " and does not excludes the presence of the element not arranged in the claims Or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such element. The present invention can be by means of including the hardware of some different elements and by means of properly programmed meter Calculation machine realizes.If in the unit claim listing dry systems, some in these systems Individual can be specifically to be embodied by same hardware branch.Word first, second and third Use do not indicate that any order.Can be title by these word explanations.

Claims (2)

1. a method for drive installation, including:
User triggers the installation of hardware device driver;
Detect according to the installation environment to Current hardware device driver that triggers of user;Described hardware device includes external hardware device and internal hardware device;
When detecting abnormal, the installation environment of described hardware device driver is repaired accordingly;
The installation of hardware device driver is carried out in completing the installation environment repaired;
Wherein, the step that the described installation environment for hardware device driver carries out detecting includes:
Whether the system file that detection hardware device is relied on lacks;Particularly as follows: whether there is facility information file under detection operating system catalogue, if there is no being then considered as disappearance;
And/or,
The system service that detection hardware device is relied on the most normally works;
And/or,
The detection registry entry that relied on of hardware device whether mistake ;
Wherein, described when detecting abnormal, the step repaired the driver installation environment of described hardware device accordingly includes:
When detecting system file that hardware device is relied on disappearance, obtain, from server, system file that described hardware device relied on and install under native operating sys-tern catalogue;
And/or,
When the system service detecting that hardware device is relied on the most normally works, open corresponding system service;
And/or,
When the registry entry detecting that hardware device is relied on exists mistake, repair corresponding registry entry.
2. a device for drive installation, including:
Driver installation environment detection module, is suitable to detect for the installation environment of hardware device driver;Described hardware device includes external hardware device and internal hardware device;
Driver installation environment repair module, is suitable to when detecting abnormal, repairs the installation environment of described hardware device driver accordingly;
Driver installs module, is suitable to carry out the installation of hardware device driver in completing the installation environment repaired;
Driver installs trigger module, is connected with described driver installation environment detection module, is suitable to trigger the installation of hardware device driver;
Wherein, described driver installation environment detection module includes:
System file detection sub-module, is adapted to detect for whether the system file that hardware device relied on lacks;Particularly as follows: whether there is facility information file under detection operating system catalogue, if there is no being then considered as disappearance;
System service detection sub-module, is adapted to detect for the system service that hardware device relied on and the most normally works;
Registry entry error detection submodule, is adapted to detect for registry entry that described hardware device relied on whether mistake ;
Wherein, described driver installation environment repair module includes:
System file downloads submodule, is suitable to when detecting system file that hardware device is relied on disappearance, obtains, from server, system file that described hardware device relied on and installs under native operating sys-tern catalogue;
Submodule is opened in system service, is suitable to, when the system service detecting that hardware device is relied on the most normally works, open corresponding system service;
Registry entry errors repair submodule, is suitable to, when the registry entry detecting that hardware device is relied on exists mistake, repair corresponding registry entry.
CN201210395281.6A 2012-10-17 2012-10-17 A kind of method and apparatus of drive installation Active CN102937902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210395281.6A CN102937902B (en) 2012-10-17 2012-10-17 A kind of method and apparatus of drive installation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210395281.6A CN102937902B (en) 2012-10-17 2012-10-17 A kind of method and apparatus of drive installation

Publications (2)

Publication Number Publication Date
CN102937902A CN102937902A (en) 2013-02-20
CN102937902B true CN102937902B (en) 2016-10-05

Family

ID=47696801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210395281.6A Active CN102937902B (en) 2012-10-17 2012-10-17 A kind of method and apparatus of drive installation

Country Status (1)

Country Link
CN (1) CN102937902B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166609A (en) * 2014-08-27 2014-11-26 贝壳网际(北京)安全技术有限公司 Computer hardware device repairing method and device
CN105117260B (en) * 2015-09-07 2019-11-26 北京金山安全软件有限公司 Method and system for installing hardware device driver
CN105159720B (en) * 2015-09-07 2019-06-28 珠海豹趣科技有限公司 Hardware device driver installation method and system
CN105843644B (en) * 2016-03-24 2020-01-10 珠海豹趣科技有限公司 Application program installation method and device and electronic equipment
CN107145602A (en) * 2017-06-06 2017-09-08 北京洋浦伟业科技发展有限公司 Foreign intervention formula system file complementing method and device
CN112579110A (en) * 2020-12-29 2021-03-30 北京神州飞航科技有限责任公司 Devicon-based hardware drive installation method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520975A (en) * 2011-11-16 2012-06-27 深圳创维-Rgb电子有限公司 Intelligent updating method of external equipment driver, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005267603A (en) * 2004-02-20 2005-09-29 Ricoh Co Ltd Installation control method, installation control program, and recording medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520975A (en) * 2011-11-16 2012-06-27 深圳创维-Rgb电子有限公司 Intelligent updating method of external equipment driver, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宏病毒也会使打印机罢工;王昌红;《电脑知识与技术(经验技巧)》;20120831;第45-46页 *

Also Published As

Publication number Publication date
CN102937902A (en) 2013-02-20

Similar Documents

Publication Publication Date Title
CN102937902B (en) A kind of method and apparatus of drive installation
CN102929665B (en) For the system of drive installation
CN103150231B (en) The method of computer booting and computer system
US9052977B2 (en) Installation of software onto a computer
US7334157B1 (en) Restore of data to a computer system having different hardware
CN104487960B (en) Automated disaster recovery and Data Migration
US8336044B2 (en) Method and system for deploying a software image
US8185884B2 (en) System and method for offline updation of software in virtual machine (VM) images
CN110888650B (en) Method and system for customizing operating system mirror image
TW201715395A (en) Method for recovering a baseboard management controller and baseboard management controller
US20180088932A1 (en) Multi-platform installer
US8171272B1 (en) Critical pre-OS driver verification
US7536687B1 (en) System and method for automatic installation of embedded software packages
CN105607972A (en) Abnormity remedying method and device
US20050108704A1 (en) Software distribution application supporting verification of external installation programs
US9250942B2 (en) Hardware emulation using on-the-fly virtualization
CN107704249A (en) A kind of system and method for installing configuration automatically for physical machine
CN111338751B (en) Cross-pool migration method and device for data in same ceph cluster
EP2490122A2 (en) Hardware turnkey mobility
TWI764454B (en) Firmware corruption recovery
CN115291925A (en) BMC upgrading method, system, equipment and storage medium
EP1160666A2 (en) Switching versions of software in a system background
CN108008965A (en) A kind of system firmware upgrade mechanism of middle and high end storage
KR20190130903A (en) Method and system for swapping booting disk
US12099612B2 (en) Firmware corruption recovery

Legal Events

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

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Beijing Qizhi Business Consulting Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20240116

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Beijing Qizhi Business Consulting Co.,Ltd.

TR01 Transfer of patent right