WO2015085774A1 - Installation method of driver program and client apparatus - Google Patents

Installation method of driver program and client apparatus Download PDF

Info

Publication number
WO2015085774A1
WO2015085774A1 PCT/CN2014/082689 CN2014082689W WO2015085774A1 WO 2015085774 A1 WO2015085774 A1 WO 2015085774A1 CN 2014082689 W CN2014082689 W CN 2014082689W WO 2015085774 A1 WO2015085774 A1 WO 2015085774A1
Authority
WO
WIPO (PCT)
Prior art keywords
driver
file
hardware
user terminal
information
Prior art date
Application number
PCT/CN2014/082689
Other languages
French (fr)
Chinese (zh)
Inventor
王晔
张跃辉
汪洋
Original Assignee
贝壳网际(北京)安全技术有限公司
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 贝壳网际(北京)安全技术有限公司 filed Critical 贝壳网际(北京)安全技术有限公司
Publication of WO2015085774A1 publication Critical patent/WO2015085774A1/en

Links

Classifications

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

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a driver installation method and a client device. Background technique
  • the present invention aims to solve at least one of the above technical problems.
  • a first object of the present invention is to provide a method of installing a driver, which enables a user to install a driver conveniently and quickly.
  • a second object of the present invention is to propose a client device.
  • a third object of the present invention is to propose an application.
  • a fourth object of the present invention is to provide a storage medium.
  • the installation method of the driver of the first aspect of the present invention is performed by a first application client installed in a user terminal, and the user terminal acquires an installation file of the first application client and passes the
  • the installation file is configured to install the first application client, the installation file is provided with a driver file, the user terminal is provided with a first hardware, and the driver file includes a driver file corresponding to the first hardware;
  • the method includes: detecting whether a driver of the first hardware has been installed in the user terminal; if a driver of the first hardware is not installed in the user terminal, from a driver file in the installation file Obtaining a driver file corresponding to the first hardware; and installing, in the user terminal, the driver file corresponding to the acquired first hardware Installing the driver of the first hardware.
  • the installation method of the driver carried the driver file of the first hardware in the installation file of the first application client. After the first application client is installed in the user terminal, the first application client detects the user terminal. Whether to install the driver of the first hardware, and extract the driver file of the first hardware from the installation file of the first application client when not installed, and then install the driver of the first hardware in the user terminal according to the driver file. This method does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, which enables the user to install the driver conveniently and quickly.
  • the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
  • the client device of the second aspect of the present invention is installed in a user terminal, the user terminal acquires an installation file of the client device, and installs the client device through the installation file.
  • a driver file is provided in the sending installation file, the user terminal is provided with a first hardware, and the driver file includes a driver file corresponding to the first hardware;
  • the client device includes: a detecting module, configured to: Detecting whether the driver of the first hardware has been installed in the user terminal; and an acquiring module, configured to: when the detecting module detects that the driver of the first hardware is not installed in the user terminal, Obtaining, in the driver file in the installation file, the driver file corresponding to the first hardware; the installing module, configured to install the first hardware in the user terminal according to the obtained driver file corresponding to the first hardware Drivers.
  • the client device provided by the embodiment of the present invention carries a driver file of the first hardware in the installation file, and after the user terminal is installed, the client device can detect whether the user terminal installs the driver of the first hardware, and The driver file of the first hardware is extracted from the installation file during installation, and then the driver of the first hardware is installed in the user terminal according to the driver file, which does not require the user terminal to connect to the network, and does not require the user to manually search and Installing driver files enables users to install drivers quickly and easily.
  • the client device provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet, and the user terminal can be conveniently connected to the Internet. The user's operation, which in turn causes the user terminal to download other drivers through the Internet to complete the remaining driver installation work.
  • an application program of a third aspect of the present invention is for performing a method of installing a driver according to the first embodiment of the present invention at runtime.
  • the application program of the embodiment of the present invention after being installed to the user terminal, can detect whether the user terminal installs the driver of the first hardware, and extracts the driver file of the first hardware from the installation file of the application when not installed, Further, the driver of the first hardware can be installed in the user terminal according to the driver file.
  • This method does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, so that the user can quickly and easily install the driver.
  • the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
  • a storage medium for storing an application for executing a method for installing a driver according to the first aspect of the present invention at runtime.
  • the storage medium of the embodiment of the present invention after installing the stored application to the user terminal, after installing to the user terminal, can detect whether the user terminal installs the driver of the first hardware, and from the application when not installed
  • the driver file of the first hardware is extracted from the installation file, and then the driver of the first hardware is installed in the user terminal according to the driver file, which does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file.
  • the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
  • FIG. 1 is a flow chart showing a method of installing a driver according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for implementing step S102 in the method for installing a driver in the embodiment shown in FIG. 1.
  • FIG. 3 is a flowchart of a method for implementing step S202 in the embodiment shown in FIG.
  • FIG. 4 is a schematic diagram of a driver list interface after the driver is installed in the driver installation method of the embodiment shown in FIG. 1;
  • FIG. 5 is a schematic diagram of a first prompt box for prompting a user to install a driver in the method for installing a driver in the embodiment shown in FIG. 1;
  • FIG. 6 is a schematic diagram of a first prompt box in a driver installation process in the driver installation method of the embodiment shown in FIG. 1;
  • FIG. 7 is a structural block diagram of a client device according to an embodiment of the present invention.
  • FIG. 8 is a structural block diagram of a client device according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a client device according to another embodiment of the present invention. detailed description
  • the present invention proposes a method of installing the driver.
  • FIG. 1 is a flow chart of a method of installing a driver in accordance with one embodiment of the present invention.
  • the method is performed by a first application client installed in a user terminal, and the user terminal acquires an installation file of the first application client and installs the first application client through the installation file.
  • the first application client may be an application installed at the user terminal.
  • the user terminal can be a device such as a personal computer or a notebook computer that has an operating system and the hardware of which requires the driver to operate normally.
  • the user terminal can download the installation file of the first application client through the Internet and save the installation file locally on the user terminal, or the user copies the installation file of the first application client to the user terminal, and installs the first application.
  • the user terminal can install the first application client according to the local installation file.
  • the user terminal is a personal computer, which is well known to those skilled in the art. Downloading or installing an application client installation file from an external device connected to the computer, such as an instant messaging tool qq, an anti-virus software, and the like, and storing the installation file in the system disk.
  • an instant messaging tool qq, an anti-virus software, and the like Downloading or installing an application client installation file from an external device connected to the computer, such as an instant messaging tool qq, an anti-virus software, and the like, and storing the installation file in the system disk.
  • an instant messaging tool qq, an anti-virus software, and the like and storing the installation file in the system disk.
  • the files on the disk other than the system disk can be completely retained
  • the driver file is set in the installation file of the first application client, and the first hardware is set in the user terminal, and the driver file includes the driver file corresponding to the first hardware.
  • the first hardware is hardware in the user terminal.
  • the first hardware may preferably be a network card.
  • a piece of hardware can also be used for other hardware, such as graphics cards, sound cards, cameras, and so on.
  • the driver file may include only a driver file of the first hardware, such as a network card, and the driver files of the hardware may have multiple factors due to factors such as an operating system.
  • the driver file may also include a driver of the first hardware, and also includes a plurality of driver files of various other hardware, and each of the hardware may have more than one driver file, that is, the driver file may be At least two driver files are included, the driver files corresponding to at least one type of hardware, and each hardware corresponding to at least one driver file.
  • the driver file can be sorted by the server according to the download ranking (ie popularity) of the driver files of each hardware in the most recent period of time, and then the driver file is packaged and released together with the installation file of the first application client.
  • the server can separately sort out common driver files of common hardware, such as network card, video card, sound card, camera, etc., and generate driver files according to the compiled driver files, or generate each according to the hot driver files of each hardware.
  • the driver file corresponding to the hardware can be as shown in Table 1, and each result is recorded in the following way (take the results shown in Table 1 as an example): ⁇ USB ⁇ Vid_1761&Pid_0B05, Ralink Ralink Wireless USB NIC Driver 3.2.4.0 version, Win7, ralink_win7.zip ⁇ .
  • the server reads the driver file corresponding to each record in the order of binary data stream (according to the download ranking), and writes the read data stream to the driver file. .
  • the driver file in the installation file of the first client, may exist in the form of a dynamic link library DLL (Dynamic Link Library) file, that is, the driver file is set as a DLL file and is placed in the installation. In the file.
  • DLL Dynamic Link Library
  • the installation method of the driver of this embodiment includes:
  • the first application client may be automatically started or started according to a user instruction, and automatically detected after startup or detected according to a user instruction whether the first hardware has been installed in the user terminal.
  • Drivers may be automatically started or started according to a user instruction, and automatically detected after startup or detected according to a user instruction whether the first hardware has been installed in the user terminal.
  • the first application client may provide a user interaction interface, where the user interaction interface may receive the driver detection instruction of the user, so that the first application client detects whether the first hardware is installed in the user terminal according to the user's driver detection instruction.
  • Drivers may provide a user interaction interface, where the user interaction interface may receive the driver detection instruction of the user, so that the first application client detects whether the first hardware is installed in the user terminal according to the user's driver detection instruction.
  • the driver file is installed in the installation file of the first application client. Therefore, in this step, the driver file of the first hardware may be obtained from the installation file of the first application client stored locally by the user terminal.
  • the user can view the driver of the installed first hardware in the device manager.
  • the first hardware is a network card
  • the user terminal after the user terminal installs the driver of the network card, for the intranet user, the user terminal can connect to the Internet by manually or automatically obtaining an IP address to perform more networking operations, for ADSL or For a 3G network card user, the user terminal can connect to the network through dial-up.
  • the installation method of the driver carried the driver file of the first hardware in the installation file of the first application client. After the first application client is installed in the user terminal, the first application client detects the user terminal. Whether to install the driver of the first hardware, and extract the driver file of the first hardware from the installation file of the first application client when not installed, and then install the driver of the first hardware in the user terminal according to the driver file. This method does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, which enables the user to install the driver conveniently and quickly.
  • the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. , facilitating user operations, thereby enabling user terminals to download via the Internet Other drivers to complete the rest of the driver installation work.
  • the driver file for driving the first hardware installed in the user terminal is accurately obtained in the file, and the driver file also includes operating system information applicable to each driver file and hardware information of the hardware to which the driver file is applicable.
  • the driver file may include a driver file of the hardware card of the network card and the sound card, wherein the driver file of the network card may further include a driver file of the wireless network card of the model (hardware information) A for the XP system. And driver files for the A-type wireless network card for Win7 systems.
  • the driver files include operating system information and hardware information for these driver files.
  • the driver file when multiple driver files of one or several hardware are included in the driver file of the installation file, the driver file also includes operating system information applicable to each driver file and The hardware information of the hardware to which the driver file is applicable.
  • the driver file corresponding to the first hardware can be obtained from the driver file in the installation file by the method shown in FIG. 2. Specifically, the method includes the following steps:
  • the operating system information applicable to the driver file may be an operating system type such as Win7, Vista, XP, Linux, and the corresponding version; the hardware information may include the model number and name of the hardware.
  • a file header information may be set in the driver file, where the file header information is placed in a file header portion of the driver file, and the file header information is set in the driver file.
  • Each driver file has a one-to-one corresponding driver entry.
  • the operating system information for each driver file and the hardware information for the hardware for which the driver file applies are marked in the driver entry for that driver file.
  • the driver entry corresponding to each driver file is also marked with the location information of the driver file in the driver file.
  • the location information of the driver file in the driver file includes the file size of the driver file and the offset address of the driver file in the driver file.
  • the offset address is the offset of the start position of the driver file relative to the start position of the drive file. Therefore, the driver file of the first hardware can be extracted by the method as shown in FIG. As shown in FIG. 3, the method can include:
  • S301. Scan the file header information according to the acquired hardware information and operating system information to determine a driver item whose marked operating system information is the same as the acquired operating system information and the marked hardware information matches the acquired hardware information.
  • the driver entry in the header information can be as shown in Table 2.
  • Table 2 is the driver entry corresponding to the driver file of a certain network card. It can be understood that the header information shown in Table 2 is only an example. , only some of the contents of the file header information and their corresponding contents are listed.
  • the file header information corresponds to six parts, which are the network card hardware information and operating system information applicable to the driver file, the driver package name of the driver file, and the name displayed when the driver file is displayed to the user. , and the location information of the driver file in the driver file, that is, the offset address and size.
  • the first application client can determine the file header information by scanning the driver file.
  • the location information includes the size of the driver file and the offset address of the driver file in the driver file.
  • the location information of the tag includes: offset address 320350, size 120140.
  • data of a size in the acquired location information may be extracted from a location corresponding to the offset address of the driver file according to the offset address in the acquired location information to extract a driver file of the first hardware.
  • the driver item shown in Table 2 the data of length 120140 bytes can be read at the position of 320350 bytes from the beginning of the drive file, and the extracted data is packaged into the name "mlink_win7. Zip" driver file.
  • the first application client can connect to the server, obtain the latest version of the installed driver, and the driver file of the hardware without the driver installed. And display the driver list interface on the first application client.
  • the first application client is named as the driver wizard.
  • the driver wizard can display the latest version of the network card driver in the driver list interface or The most stable version of the information, as well as the driver that is not installed in the user terminal, the user can conveniently select the driver that the user terminal has not installed, such as the driver of the graphics card, sound card, motherboard, etc., and choose whether to update the installed one according to the need. driver.
  • the driver files in the installation file of the first application client may include drivers for hardware necessary for installation, such as a network card, a graphics card, a sound card, a motherboard, etc., and the first application client may separately extract the driver files.
  • the driver files of the corresponding hardware in the user terminal are installed and installed to complete the hardware driver of the user terminal, and these drivers are updated after being connected to the Internet.
  • the first application client detects the installation of the driver of the first hardware in the user terminal.
  • the first prompt box may be displayed to notify the user of the user terminal that the driver of the first hardware is not installed in the user terminal, and the user is asked whether to install the first A hardware driver.
  • the first application client may obtain the driver file of the first hardware from the driver file in the installation file, and install the driver file.
  • a second prompt box may be displayed, where the second prompt box displays description information of the first hardware acquired from the driver file, for example, a display of the first hardware acquired from the file header information.
  • the name, and the installation process of the driver is displayed, so that the user can understand the progress of the installation.
  • the first application client is named as the driver sprite.
  • the driver wizard detects that the driver of the network card with the hardware information [USB ⁇ Vid_1761&Pid_0B05] is not installed in the user terminal, the prompt box shown in FIG. 5 can be displayed.
  • the network cannot be connected properly. The reason may be that the NIC driver is not installed and the user is prompted to choose whether to install the NIC driver.
  • the user can select whether to install the driver of the network card by clicking the "Yes” or "No” button in the prompt box in FIG. If the user clicks "Yes", the driver wizard can obtain the driver file of the network card in the driver file in the installation file, and display a prompt box as shown in FIG. 6, which displays a progress bar and "Installing Ralink” Ralink Wireless USB NIC driver 3.2.4.0 version of the prompt information. In order to meet the different needs of users, the user can cancel the installation of the driver by clicking "No" in Figure 6.
  • the present invention also proposes a client device.
  • FIG. 7 is a structural block diagram of a client device according to an embodiment of the present invention.
  • the client device is installed in the user terminal, and the user terminal can obtain the installation file of the client device and install the client device through the installation file.
  • the user terminal can download the installation file of the client device through the Internet and save the installation file locally on the user terminal, or the user copies the installation file of the client device to the user terminal, and installs the client.
  • the user terminal can install the client device according to the local installation file.
  • the client device may be an application installed at the user terminal.
  • the user terminal can be a device that has an operating system such as a personal computer or a notebook computer and that needs to be driven for the normal operation of the hardware therein.
  • the driver file is set in the installation file of the client device, and the user terminal is provided with the first hardware, and the driver file includes the driver file corresponding to the first hardware.
  • the driver file can be sorted by the server according to the download ranking (ie popularity) of the driver files of the hardware in the most recent period of time, and then the driver file is packaged and released together with the installation file of the first application client.
  • the server can separately sort out common driver files of common hardware, such as network card, video card, sound card, camera, etc., and generate driver files according to the compiled driver files, or generate each according to the hot driver files of each hardware.
  • the driver file corresponding to the hardware can be sorted by the server according to the download ranking (ie popularity) of the driver files of the hardware in the most recent period of time, and then the driver file is packaged and released together with the installation file of the first application client.
  • the server can separately sort out common driver files of common hardware, such as network card, video card, sound card, camera, etc., and generate driver files according to the
  • the driver file in the installation file of the client device, may exist in the form of a dynamic link library DLL (Dynamic Link Library) file, that is, the driver file is set as a DLL file and is placed in the installation. In the file.
  • DLL Dynamic Link Library
  • the client device includes a detection module 100, an acquisition module 200, and an installation module 300.
  • the detecting module 100 is configured to detect whether a driver of the first hardware has been installed in the user terminal.
  • the detecting module 100 can be automatically started or started according to a user instruction, and automatically detects after starting or detects whether the driver of the first hardware has been installed in the user terminal according to a user instruction, or according to the user.
  • the driver detection instruction input by the user interface provided by the client device detects whether the driver of the first hardware has been installed in the user terminal.
  • the first hardware is the hardware in the user terminal.
  • the first hardware may be a network card, in order to enable the user terminal to implement the network connection function as soon as possible. It should be understood that in other embodiments of the present invention, the first hardware may also be used. For other hardware, such as graphics cards, sound cards, cameras, etc.
  • the obtaining module 200 is configured to obtain, from the driver file in the installation file, the driver file corresponding to the first hardware when the detecting module 100 detects that the driver of the first hardware is not installed in the user terminal.
  • the driver file for driving the first hardware installed in the user terminal is accurately obtained in the file, and the driver file also includes operating system information applicable to each driver file and hardware information of the hardware to which the driver file is applicable.
  • the driver file may include a driver file of the hardware card of the network card and the sound card, wherein the driver file of the network card may further include a driver file of the wireless network card of the model (hardware information) A for the XP system. And type A wireless network card for Win7 system Driver file.
  • the driver files include operating system information and hardware information for these driver files. More specifically, in one embodiment of the present invention, when multiple driver files of one or several hardware are included in the driver file of the installation file, the driver file also includes operating system information applicable to each driver file. And the hardware information of the hardware that is applicable to the driver file, in the client device shown in FIG. 8, the obtaining module 200 specifically includes an obtaining sub-module 210 and an extracting sub-module 220, wherein the extracting sub-module 220 further includes a determining unit 221, The location acquisition unit 222 and the extraction unit 223.
  • the obtaining sub-module 210 is configured to acquire hardware information of the first hardware in the user terminal and operating system information of the user terminal.
  • the operating system information for the driver files can be Win7, Vista, XP, Linux and other operating system types and corresponding versions; hardware information can include the hardware model and name.
  • the extraction sub-module 220 is configured to obtain, according to the hardware information and the operating system information acquired by the acquisition sub-module 210, the operating system information applicable to the driver file included in the driver file, and the hardware information of the hardware to which the driver file is applicable, from the installation file.
  • a driver file for the first hardware installed in the user terminal is extracted from the driver file.
  • a file header information may be set in the driver file, where the file header information is placed in a file header portion of the driver file, and the file header information is set in the driver file.
  • Each driver file has a one-to-one corresponding driver entry.
  • the operating system information for each driver file and the hardware information for the hardware for which the driver file applies are marked in the driver entry for that driver file.
  • the driver entry corresponding to each driver file is also marked with the location information of the driver file in the driver file.
  • the location information of the driver file in the driver file includes the file size of the driver file and the offset address of the driver file in the driver file.
  • the offset address is the offset of the start position of the driver file relative to the start position of the drive file.
  • the extracting sub-module 220 may first scan the file header information by the determining unit 221 according to the hardware information and the operating system information acquired by the obtaining sub-module 210 to determine that the marked operating system information is the same as the obtained operating system information and is marked. A driver entry that matches the hardware information with the acquired hardware information.
  • the extraction sub-module 220 acquires the position information marked by the driver item determined by the determination unit 221 through the position acquisition unit 222.
  • the location information includes the size of the driver file and the offset address of the driver file in the driver file.
  • the extracting unit 223 extracts the driver file of the first hardware from the driver file according to the location information acquired by the location obtaining unit 222. More specifically, the data of the size in the acquired location information may be extracted from the location corresponding to the offset address of the driver file according to the offset address in the acquired location information to extract the driver file of the first hardware. .
  • the installation module 300 is configured to install a driver of the first hardware in the user terminal according to the driver file corresponding to the first hardware acquired by the acquisition module 200.
  • the user can view the driver of the installed first hardware in the device manager.
  • the first hardware is a network card
  • the user terminal after the user terminal installs the driver of the network card, for the intranet user, the user terminal can connect to the Internet by manually or automatically obtaining an IP address to perform more networking operations, for ADSL or For a 3G network card user, the user terminal can connect to the network through dial-up.
  • the client device can connect to the server, obtain the latest version of the installed driver, and the driver file of the hardware without the driver installed, and display it on the driver list interface of the client device.
  • the driver files in the installation file of the client device may include drivers for hardware necessary for installation, such as a network card, a graphics card, a sound card, a motherboard, etc., and the obtaining module 200 may separately extract corresponding hardware in the user terminal in the driver file.
  • the driver files are installed by the installation module 300 to complete the hardware drivers of the user terminals, and these drivers are updated after being connected to the Internet.
  • the client device of the embodiment of the present invention carries a driver file of the first hardware in the installation file, and after the user terminal is installed, the client device can detect whether the user terminal installs the driver of the first hardware, and During installation, the driver file of the first hardware is extracted from the installation file of the client device, and then the driver of the first hardware is installed in the user terminal according to the driver file, which does not require the user terminal to connect to the network, and does not require the user to manually Searching and installing driver files enables users to install drivers quickly and easily.
  • the client device provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet, and the user terminal can be conveniently connected to the Internet. The user's operation, which in turn causes the user terminal to download other drivers through the Internet to complete the remaining driver installation work.
  • FIG. 9 is a structural block diagram of a client device according to another embodiment of the present invention.
  • the client device shown in FIG. 9 further includes a display module 400 based on the client device shown in FIG.
  • the display module 400 is configured to display the first prompt box to notify the user of the user terminal that the driver of the first hardware is not installed in the user terminal, and ask the user whether the driver of the first hardware needs to be installed. More specifically, after the detecting module 100 detects that the driver of the first hardware is not installed in the user terminal, the obtaining module 200 obtains the first file from the driver files in the installation file of the client device locally stored by the user terminal. The first prompt box is displayed before the hardware corresponding driver file.
  • the obtaining module 200 may obtain the driver file of the first hardware from the driver file in the installation file, And installing through the installation module 300.
  • the display module The 400 can also display the description information of the first hardware (such as the display name of the first hardware, etc.) obtained from the file header information of the driver file in the second prompt box, in the first prompt box and the installation of the driver. Process, so that users can understand the progress of the installation.
  • the client device of the embodiment of the present invention prompts the user to have an uninstalled driver in the end point of the display module 400, and installs the corresponding driver according to the user instruction, and at the same time, can display the driver installation progress in real time during the installation process. , more intuitive and convenient, enhance the user experience.
  • the present invention also proposes an application.
  • the application is for executing a method of installing a driver as described in the embodiment of the present invention at runtime.
  • the application program according to the embodiment of the present invention after being installed to the user terminal, can detect whether the user terminal installs the driver of the first hardware, and extracts the driver file of the first hardware from the installation file of the application when not installed.
  • the driver of the first hardware can be installed in the user terminal according to the driver file.
  • This method does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, so that the user can install the driver conveniently and quickly.
  • the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
  • the present invention also provides a storage medium for storing an application for executing a method of installing a driver as described in the embodiment of the present invention at runtime.
  • the storage medium of the embodiment of the present invention after installing the stored application to the user terminal, it is possible to detect whether the user terminal installs the driver of the first hardware, and extracts from the installation file of the application when not installed.
  • a hardware driver file which in turn can install a driver of the first hardware in the user terminal according to the driver file, which does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, thereby facilitating the user. Install the driver quickly and easily.
  • the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented with any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • the description of the terms “one embodiment”, “some embodiments”, “example”, “specific example”, or “some examples” and the like means a specific feature described in connection with the embodiment or example.
  • a structure, material or feature is included in at least one embodiment or example of the invention.
  • the schematic representation of the above terms does not necessarily mean the same embodiment or example.
  • the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples.

Landscapes

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

Abstract

An installation method of a driver program and a client apparatus. The method is executed by a first application client installed in a user terminal, and the user terminal obtains an installation file of the first application client and installs the first application client through the installation file, wherein a driver file is arranged in the installation file, first hardware is arranged in the user terminal, and the driver file comprises a driver program file corresponding to the first hardware. The method comprises: detecting whether a driver program of the first hardware has been installed in the user terminal; and if the driver program of the first hardware has not been installed in the user terminal, obtaining the driver program file corresponding to the first hardware from the driver file in the installation file, and installing the driver program of the first hardware in the user terminal in accordance therewith. The installation method of the driver program in embodiments can enable a user to conveniently and quickly install the driver program.

Description

驱动程序的安装方法和客户端装置  Driver installation method and client device
技术领域 Technical field
本发明涉及计算机技术领域, 尤其涉及一种驱动程序的安装方法和客户端装置。 背景技术  The present invention relates to the field of computer technologies, and in particular, to a driver installation method and a client device. Background technique
计算机在新安装或者重装操作***后, 为了使计算机能够正常工作, 计算机上设置的 各种硬件都需要安装对应的驱动程序。  After the computer is newly installed or reinstalled, in order to make the computer work properly, the various hardware installed on the computer need to install the corresponding driver.
通常情况下, 部分驱动程序可以放置在网络服务器上, 需要通过互联网下载, 也就是 说, 计算机需要连接互联网以从网络服务器上下载驱动程序。 但是, 新安装或者重装操作 ***的计算机在网卡的驱动程序未安装的情况下, 无法连接到互联网并从服务器下载驱动 程序。 因此, 为了能够上网, 用户必须先在新安装或者重装操作***的计算机上安装网卡 驱动程序。 现有技术中, 用户可以通过驱动盘安装网卡驱动程序, 也可以通过其他能够连 接互联网的计算机下载网卡驱动程序, 并将该下载的网卡驱动程序拷贝到待安装网卡驱动 程序的计算机上, 进行安装。  Normally, some drivers can be placed on a network server and need to be downloaded over the Internet, that is, the computer needs to be connected to the Internet to download drivers from the web server. However, a computer that newly installs or reinstalls the operating system cannot connect to the Internet and download the driver from the server without the driver of the network card installed. Therefore, in order to be able to access the Internet, the user must first install the NIC driver on the computer where the operating system is newly installed or reinstalled. In the prior art, the user can install the network card driver through the driver disk, or download the network card driver through other computers connected to the Internet, and copy the downloaded network card driver to the computer to be installed with the network card driver to install. .
然而, 无论上述哪种安装网卡驱动程序的方式, 对于用户而言, 操作十分繁琐和不便。 发明内容  However, regardless of the manner in which the NIC driver is installed, the operation is cumbersome and inconvenient for the user. Summary of the invention
本发明旨在至少解决上述技术问题之一。  The present invention aims to solve at least one of the above technical problems.
为此, 本发明的第一个目的在于提出一种驱动程序的安装方法, 能够使用户方便快捷 地安装驱动程序。  To this end, a first object of the present invention is to provide a method of installing a driver, which enables a user to install a driver conveniently and quickly.
本发明的第二个目的在于提出一种客户端装置。  A second object of the present invention is to propose a client device.
本发明的第三个目的在于提出一种应用程序。  A third object of the present invention is to propose an application.
本发明的第四个目的在于提出一种存储介质。  A fourth object of the present invention is to provide a storage medium.
为了实现上述目的, 本发明第一方面实施例的驱动程序的安装方法由安装在用户终端 中的第一应用客户端执行, 所述用户终端获取所述第一应用客户端的安装文件并通过所述 安装文件安装所述第一应用客户端, 所述安装文件中设置有驱动文件, 所述用户终端中设 置有第一硬件, 所述驱动文件中包括所述第一硬件对应的驱动程序文件; 所述方法包括: 检测所述用户终端中是否已经安装所述第一硬件的驱动程序; 如果检测到所述用户终端中 尚未安装所述第一硬件的驱动程序, 从所述安装文件中的驱动文件中获取所述第一硬件对 应的驱动程序文件; 根据所述获取的第一硬件对应的驱动程序文件, 在所述用户终端中安 装所述第一硬件的驱动程序。 In order to achieve the above object, the installation method of the driver of the first aspect of the present invention is performed by a first application client installed in a user terminal, and the user terminal acquires an installation file of the first application client and passes the The installation file is configured to install the first application client, the installation file is provided with a driver file, the user terminal is provided with a first hardware, and the driver file includes a driver file corresponding to the first hardware; The method includes: detecting whether a driver of the first hardware has been installed in the user terminal; if a driver of the first hardware is not installed in the user terminal, from a driver file in the installation file Obtaining a driver file corresponding to the first hardware; and installing, in the user terminal, the driver file corresponding to the acquired first hardware Installing the driver of the first hardware.
本发明实施例提供的驱动程序的安装方法, 在第一应用客户端的安装文件中携带第一 硬件的驱动程序文件, 当第一应用客户端在用户终端安装后, 第一应用客户端检测用户终 端是否安装第一硬件的驱动程序, 并在未安装时从第一应用客户端的安装文件中提取第一 硬件的驱动程序文件,进而可根据该驱动程序文件在用户终端中安装第一硬件的驱动程序, 这种方式不需要用户终端连接网络, 无需用户手动搜索和安装驱动程序文件, 能够使用户 方便快捷地安装驱动程序。 显然, 本发明实施例提供的驱动程序的安装方法, 在第一硬件 为网卡时, 在用户终端不能连接网络的情况下也能够使用户终端安装网卡驱动程序, 从而 使用户终端能够顺利连接到互联网, 便利用户的操作, 进而使得用户终端通过互联网下载 其他驱动程序, 以完成余下的驱动程序安装工作。  The installation method of the driver provided by the embodiment of the present invention carries the driver file of the first hardware in the installation file of the first application client. After the first application client is installed in the user terminal, the first application client detects the user terminal. Whether to install the driver of the first hardware, and extract the driver file of the first hardware from the installation file of the first application client when not installed, and then install the driver of the first hardware in the user terminal according to the driver file This method does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, which enables the user to install the driver conveniently and quickly. It is obvious that the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
为了实现上述目的, 本发明第二方面实施例的客户端装置, 安装在用户终端中, 所述 用户终端获取所述客户端装置的安装文件并通过所述安装文件安装所述客户端装置, 所送 安装文件中设置有驱动程序文件, 所述用户终端中设置有第一硬件, 所述驱动文件中包括 所述第一硬件对应的驱动程序文件; 所述客户端装置包括: 检测模块, 用于检测所述用户 终端中是否已经安装所述第一硬件的驱动程序; 获取模块, 用于在所述检测模块检测到所 述用户终端中尚未安装所述第一硬件的驱动程序时, 从所述安装文件中的驱动文件中获取 所述第一硬件对应的驱动程序文件; 安装模块, 用于根据所述获取的第一硬件对应的驱动 程序文件, 在所述用户终端中安装所述第一硬件的驱动程序。  In order to achieve the above object, the client device of the second aspect of the present invention is installed in a user terminal, the user terminal acquires an installation file of the client device, and installs the client device through the installation file. a driver file is provided in the sending installation file, the user terminal is provided with a first hardware, and the driver file includes a driver file corresponding to the first hardware; the client device includes: a detecting module, configured to: Detecting whether the driver of the first hardware has been installed in the user terminal; and an acquiring module, configured to: when the detecting module detects that the driver of the first hardware is not installed in the user terminal, Obtaining, in the driver file in the installation file, the driver file corresponding to the first hardware; the installing module, configured to install the first hardware in the user terminal according to the obtained driver file corresponding to the first hardware Drivers.
本发明实施例提供的客户端装置, 其安装文件中携带有第一硬件的驱动程序文件, 该 客户端装置在用户终端安装后, 可检测用户终端是否安装第一硬件的驱动程序, 并在未 安装时从其安装文件中提取第一硬件的驱动程序文件, 进而可根据该驱动程序文件在 用户终端中安装第一硬件的驱动程序, 这种方式不需要用户终端连接网络, 无需用户手 动搜索和安装驱动程序文件, 能够使用户方便快捷地安装驱动程序。 显然, 本发明实施例 提供的客户端装置, 在第一硬件为网卡时, 在用户终端不能连接网络的情况下也能够使用 户终端安装网卡驱动程序, 从而使用户终端能够顺利连接到互联网, 便利用户的操作, 进 而使得用户终端通过互联网下载其他驱动程序, 以完成余下的驱动程序安装工作。  The client device provided by the embodiment of the present invention carries a driver file of the first hardware in the installation file, and after the user terminal is installed, the client device can detect whether the user terminal installs the driver of the first hardware, and The driver file of the first hardware is extracted from the installation file during installation, and then the driver of the first hardware is installed in the user terminal according to the driver file, which does not require the user terminal to connect to the network, and does not require the user to manually search and Installing driver files enables users to install drivers quickly and easily. Obviously, the client device provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet, and the user terminal can be conveniently connected to the Internet. The user's operation, which in turn causes the user terminal to download other drivers through the Internet to complete the remaining driver installation work.
为了实现上述目的, 本发明第三方面实施例的应用程序, 用于在运行时执行本发明第 一方面实施例所述的驱动程序的安装方法。  In order to achieve the above object, an application program of a third aspect of the present invention is for performing a method of installing a driver according to the first embodiment of the present invention at runtime.
本发明实施例的应用程序, 在安装到用户终端后, 可检测用户终端是否安装第一硬件 的驱动程序, 并在未安装时从该应用程序的安装文件中提取第一硬件的驱动程序文件, 进 而可根据该驱动程序文件在用户终端中安装第一硬件的驱动程序, 这种方式不需要用户终 端连接网络, 无需用户手动搜索和安装驱动程序文件, 能够使用户方便快捷地安装驱动程 序。 显然, 本发明实施例提供的驱动程序的安装方法, 在第一硬件为网卡时, 在用户终端 不能连接网络的情况下也能够使用户终端安装网卡驱动程序, 从而使用户终端能够顺利连 接到互联网, 便利用户的操作, 进而使得用户终端通过互联网下载其他驱动程序, 以完成 余下的驱动程序安装工作。 The application program of the embodiment of the present invention, after being installed to the user terminal, can detect whether the user terminal installs the driver of the first hardware, and extracts the driver file of the first hardware from the installation file of the application when not installed, Further, the driver of the first hardware can be installed in the user terminal according to the driver file. This method does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, so that the user can quickly and easily install the driver. Preface. It is obvious that the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
为了实现上述目的, 本发明第四方面实施例的存储介质, 用于存储应用程序, 所述应 用程序用于在运行时执行本发明第一方面实施例所述的驱动程序的安装方法。  In order to achieve the above object, a storage medium according to an embodiment of the fourth aspect of the present invention is for storing an application for executing a method for installing a driver according to the first aspect of the present invention at runtime.
本发明实施例的存储介质, 在将其存储的应用程序安装到用户终端后, 安装到用户终 端后, 可检测用户终端是否安装第一硬件的驱动程序, 并在未安装时从该应用程序的安装 文件中提取第一硬件的驱动程序文件, 进而可根据该驱动程序文件在用户终端中安装第一 硬件的驱动程序, 这种方式不需要用户终端连接网络, 无需用户手动搜索和安装驱动程序 文件, 能够使用户方便快捷地安装驱动程序。 显然, 本发明实施例提供的驱动程序的安装 方法, 在第一硬件为网卡时, 在用户终端不能连接网络的情况下也能够使用户终端安装网 卡驱动程序, 从而使用户终端能够顺利连接到互联网, 便利用户的操作, 进而使得用户终 端通过互联网下载其他驱动程序, 以完成余下的驱动程序安装工作。  The storage medium of the embodiment of the present invention, after installing the stored application to the user terminal, after installing to the user terminal, can detect whether the user terminal installs the driver of the first hardware, and from the application when not installed The driver file of the first hardware is extracted from the installation file, and then the driver of the first hardware is installed in the user terminal according to the driver file, which does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file. , enables users to install drivers quickly and easily. It is obvious that the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
本发明附加的方面和优点将在下面的描述中部分给出, 部分将从下面的描述中变得明 显, 或通过本发明的实践了解到。 附图说明  The additional aspects and advantages of the invention will be set forth in part in the description which follows. DRAWINGS
本发明上述的和 /或附加的方面和优点从下面结合附图对实施例的描述中将变得明显 和容易理解, 其中,  The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from
图 1为根据本发明一个实施例的驱动程序的安装方法的流程图;  1 is a flow chart showing a method of installing a driver according to an embodiment of the present invention;
图 2为图 1所示实施例的驱动程序安装的方法中, 步骤 S 102的实现方法的流程图; 图 3为图 2所示实施例中步骤 S202的实现方法的流程图;  2 is a flowchart of a method for implementing step S102 in the method for installing a driver in the embodiment shown in FIG. 1. FIG. 3 is a flowchart of a method for implementing step S202 in the embodiment shown in FIG.
图 4为图 1所示实施例的驱动程序安装的方法中, 驱动程序安装后的驱动程序列表 界面的示意图;  4 is a schematic diagram of a driver list interface after the driver is installed in the driver installation method of the embodiment shown in FIG. 1;
图 5为图 1所示实施例的驱动程序安装的方法中, 用于提示用户安装驱动程序的第 一提示框的示意图;  5 is a schematic diagram of a first prompt box for prompting a user to install a driver in the method for installing a driver in the embodiment shown in FIG. 1;
图 6为图 1所示实施例的驱动程序安装的方法中,在驱动程序安装过程中的第一提 示框的示意图;  6 is a schematic diagram of a first prompt box in a driver installation process in the driver installation method of the embodiment shown in FIG. 1;
图 7为根据本发明一个实施例的客户端装置的结构框图;  FIG. 7 is a structural block diagram of a client device according to an embodiment of the present invention; FIG.
图 8是根据本发明一个具体实施例的客户端装置的结构框图;  FIG. 8 is a structural block diagram of a client device according to an embodiment of the present invention; FIG.
图 9为根据本发明另一个实施例的客户端装置的结构框图。 具体实施方式 FIG. 9 is a structural block diagram of a client device according to another embodiment of the present invention. detailed description
下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至终相同 或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 下面通过参考附图描 述的实施例是示例性的, 仅用于解释本发明, 而不能理解为对本发明的限制。 相反, 本发 明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、 修改和等同物。  The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting. Rather, the embodiment of the invention includes all changes, modifications, and equivalents within the spirit and scope of the appended claims.
在本发明的描述中, 需要理解的是, 术语"第一 "第二"等仅用于描述目的, 而不能 理解为指示或暗示相对重要性。 在本发明的描述中, 需要说明的是, 除非另有明确的规定 和限定, 术语 "相连"、 "连接 "应做广义理解, 例如, 可以是固定连接, 也可以是可拆卸连 接, 或一体地连接; 可以是机械连接, 也可以是电连接; 可以是直接相连, 也可以通过中 间媒介间接相连。 对于本领域的普通技术人员而言, 可以具体情况理解上述术语在本发明 中的具体含义。 此外, 在本发明的描述中, 除非另有说明, "多个 "的含义是两个或两个以 上。  In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. In the description of the present invention, it is to be noted that Unless specifically stated and limited, the terms "connected" and "connected" shall be used in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection. Connections; may be directly connected, or may be indirectly connected through an intermediate medium. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood in a specific case. Further, in the description of the present invention, unless otherwise It is stated that the meaning of "multiple" is two or more.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为, 表示包括一个 或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、 片段或部分, 并且本发明的优选实施方式的范围包括另外的实现, 其中可以不按所示出或讨论的顺序, 包括根据所涉及的功能按基本同时的方式或按相反的顺序, 来执行功能, 这应被本发明的 实施例所属技术领域的技术人员所理解。  Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
下面参考附图描述本发明实施例的驱动程序的安装方法和客户端装置。  The installation method and client device of the driver of the embodiment of the present invention will be described below with reference to the drawings.
为了解决用户在安装驱动程序需要从网络下载或者通过驱动盘获取驱动程序时操作十 分繁琐和不便的问题, 本发明提出一种驱动程序的安装方法。  In order to solve the problem that the user is cumbersome and inconvenient to operate when downloading the driver from the network or acquiring the driver through the driver disk, the present invention proposes a method of installing the driver.
图 1为根据本发明一个实施例的驱动程序的安装方法的流程图。  1 is a flow chart of a method of installing a driver in accordance with one embodiment of the present invention.
首先需要说明的是, 该方法由安装在用户终端中的第一应用客户端执行, 用户终端 获取第一应用客户端的安装文件并通过安装文件安装第一应用客户端。  First, it should be noted that the method is performed by a first application client installed in a user terminal, and the user terminal acquires an installation file of the first application client and installs the first application client through the installation file.
在本发明的实施例中, 第一应用客户端可以是安装在用户终端的应用程序。 用户 终端可为个人计算机、 笔记本电脑等具有操作***且其中的硬件的正常工作需要驱动 程序的设备。  In an embodiment of the invention, the first application client may be an application installed at the user terminal. The user terminal can be a device such as a personal computer or a notebook computer that has an operating system and the hardware of which requires the driver to operate normally.
举例而言, 用户终端可以通过互联网下载第一应用客户端的安装文件并将该安装 文件保存在用户终端本地, 或者, 用户将第一应用客户端的安装文件拷贝到用户终端 中, 在安装第一应用客户端时, 用户终端可根据本地的安装文件, 安装第一应用客户 在本发明的一种应用场景中, 用户终端为个人计算机, 本领域技术人员公知的, 在下载或者从其他与该计算机相连的外接设备中拷贝了一个应用客户端的安装文件, 例如即时通信工具 qq、 杀毒软件等多种功能的应用软件的安装文件并将该安装文件存 储在除***盘之外的磁盘上时, 对该计算机重装***时, ***盘之外的磁盘上的文件 可以完整保留, 因此, 如果个人计算机曾经在***盘之外的磁盘上存储过该安装文件, 在该计算机重装***时, 用户可以直接在该计算机的磁盘上找到该安装文件并安装该 应用客户端。 For example, the user terminal can download the installation file of the first application client through the Internet and save the installation file locally on the user terminal, or the user copies the installation file of the first application client to the user terminal, and installs the first application. In the client, the user terminal can install the first application client according to the local installation file. In an application scenario of the present invention, the user terminal is a personal computer, which is well known to those skilled in the art. Downloading or installing an application client installation file from an external device connected to the computer, such as an instant messaging tool qq, an anti-virus software, and the like, and storing the installation file in the system disk. On a disk other than the disk, when the system is reinstalled on the computer, the files on the disk other than the system disk can be completely retained. Therefore, if the personal computer once stored the installation file on a disk other than the system disk, When the computer reinstalls the system, the user can find the installation file directly on the computer's disk and install the application client.
其中, 第一应用客户端的安装文件中设置有驱动文件, 用户终端中设置有第一硬 件, 驱动文件中包括第一硬件对应的驱动程序文件。  The driver file is set in the installation file of the first application client, and the first hardware is set in the user terminal, and the driver file includes the driver file corresponding to the first hardware.
本发明实施例中, 第一硬件为用户终端中的硬件, 为了能够使用户终端能够尽快 实现网络连接功能, 第一硬件优选地可为网卡, 应当理解, 在本发明的其他实施例中, 第一硬件也可以为其他硬件, 如显卡、 声卡、 摄像头等。  In the embodiment of the present invention, the first hardware is hardware in the user terminal. In order to enable the user terminal to implement the network connection function as soon as possible, the first hardware may preferably be a network card. It should be understood that in other embodiments of the present invention, A piece of hardware can also be used for other hardware, such as graphics cards, sound cards, cameras, and so on.
举例而言, 该驱动文件中可以仅包括第一硬件这一种硬件的驱动程序文件, 例如 网卡, 且该种硬件的驱动程序文件由于操作***等因素的不同也可以有多个。 该驱动 文件中也可以包括第一硬件的驱动程序之外, 还包括多种其他硬件各自的驱动程序文 件, 且每种硬件的驱动程序文件也可以有多个, 也就是说, 驱动文件中可以包括至少 两个驱动程序文件, 这些驱动程序文件与至少一种硬件相对应, 且每种硬件对应至少 一个驱动程序文件。  For example, the driver file may include only a driver file of the first hardware, such as a network card, and the driver files of the hardware may have multiple factors due to factors such as an operating system. The driver file may also include a driver of the first hardware, and also includes a plurality of driver files of various other hardware, and each of the hardware may have more than one driver file, that is, the driver file may be At least two driver files are included, the driver files corresponding to at least one type of hardware, and each hardware corresponding to at least one driver file.
驱动文件可由服务器根据最近一段时间内每种硬件的驱动程序文件的下载排行 (即流行度) 进行整理得到, 然后将该驱动文件与第一应用客户端的安装文件进行打 包, 一起发布。  The driver file can be sorted by the server according to the download ranking (ie popularity) of the driver files of each hardware in the most recent period of time, and then the driver file is packaged and released together with the installation file of the first application client.
服务器可分别整理出常用硬件, 如网卡、 显卡、 声卡、 摄像头等设备的热门驱动 程序文件, 并根据整理得到的驱动程序文件生成驱动文件, 或者根据每个硬件的热门 驱动程序文件分别生成每个硬件对应的驱动文件。 其中, 整理结果中的一条记录可如 表 1 所示, 并将每条结果按照以下方式进行排列记录 (以表 1 所示结果为例) : {USB\\Vid_1761&Pid_0B05, Ralink 雷凌无线 USB 网卡驱动 3.2.4.0 版, Win7 , ralink_win7.zip} . 然后, 服务器按照二进制数据流的方式依次(按照下载排行)读取每 条记录对应的驱动程序文件, 并将读取的数据流写入驱动文件中。  The server can separately sort out common driver files of common hardware, such as network card, video card, sound card, camera, etc., and generate driver files according to the compiled driver files, or generate each according to the hot driver files of each hardware. The driver file corresponding to the hardware. Among them, one record in the collation result can be as shown in Table 1, and each result is recorded in the following way (take the results shown in Table 1 as an example): {USB\\Vid_1761&Pid_0B05, Ralink Ralink Wireless USB NIC Driver 3.2.4.0 version, Win7, ralink_win7.zip} . Then, the server reads the driver file corresponding to each record in the order of binary data stream (according to the download ranking), and writes the read data stream to the driver file. .
表 1  Table 1
网卡硬件信息 USB\\Vid_1761&Pid_0B05  NIC hardware information USB\\Vid_1761&Pid_0B05
显示名称 Ralink雷凌无线 USB网卡驱动 3.2.4.0版 操作***信息 Win7  Display Name Ralink Wireless USB Card Driver 3.2.4.0 Operating System Information Win7
驱动程序包 ralink_win7.zip 在本发明的一个实施例中, 在第一客户端的安装文件中, 驱动文件可以以动态链 接库 DLL ( Dynamic Link Library, 动态链接库) 文件的形式存在, 即将驱动文件设置 为 DLL文件放置在安装文件中。 Driver package ralink_win7.zip In an embodiment of the present invention, in the installation file of the first client, the driver file may exist in the form of a dynamic link library DLL (Dynamic Link Library) file, that is, the driver file is set as a DLL file and is placed in the installation. In the file.
如图 1所示, 本实施例的驱动程序的安装方法包括:  As shown in FIG. 1, the installation method of the driver of this embodiment includes:
5101 , 检测用户终端中是否已经安装第一硬件的驱动程序。  5101. Detect whether a driver of the first hardware is installed in the user terminal.
在本发明的实施例中, 第一应用客户端在用户终端安装完成后, 可自动启动或者根据 用户指令启动,并在启动后自动检测或者根据用户指令检测该用户终端中是否已经安装第 一硬件的驱动程序。  In the embodiment of the present invention, after the user terminal is installed, the first application client may be automatically started or started according to a user instruction, and automatically detected after startup or detected according to a user instruction whether the first hardware has been installed in the user terminal. Drivers.
具体的, 第一应用客户端可提供用户交互界面, 该用户交互界面可接收用户的驱 动程序检测指令, 使得第一应用客户端根据用户的驱动程序检测指令检测用户终端中 是否已经安装第一硬件的驱动程序。  Specifically, the first application client may provide a user interaction interface, where the user interaction interface may receive the driver detection instruction of the user, so that the first application client detects whether the first hardware is installed in the user terminal according to the user's driver detection instruction. Drivers.
5102,如果检测到用户终端中尚未安装第一硬件的驱动程序, 从安装文件中的驱动 文件中获取第一硬件对应的驱动程序文件。  5102. If it is detected that the driver of the first hardware is not installed in the user terminal, obtain the driver file corresponding to the first hardware from the driver file in the installation file.
本发明实施例中, 由于第一应用客户端的安装文件中放置了驱动文件, 因此, 本 步骤中, 第一硬件的驱动文件可从用户终端本地存储的第一应用客户端的安装文件中 获取。  In the embodiment of the present invention, the driver file is installed in the installation file of the first application client. Therefore, in this step, the driver file of the first hardware may be obtained from the installation file of the first application client stored locally by the user terminal.
5103,根据获取的第一硬件对应的驱动程序文件,在用户终端中安装第一硬件的驱 动程序。  5103. Install a driver of the first hardware in the user terminal according to the obtained driver file corresponding to the first hardware.
在本发明的实施例中, 在用户终端中安装第一硬件的驱动程序后, 用户可在设备管 理器中查看安装好的第一硬件的驱动程序。 如果第一硬件为网卡, 则当用户终端安装了 网卡的驱动程序后, 对于内网用户, 用户终端可以手动或者自动获取 IP地址的方法连接到 互联网, 以进行更多的联网操作, 对于 ADSL或者 3G上网卡用户, 则用户终端可通过拨 号连接网络。  In the embodiment of the present invention, after the driver of the first hardware is installed in the user terminal, the user can view the driver of the installed first hardware in the device manager. If the first hardware is a network card, after the user terminal installs the driver of the network card, for the intranet user, the user terminal can connect to the Internet by manually or automatically obtaining an IP address to perform more networking operations, for ADSL or For a 3G network card user, the user terminal can connect to the network through dial-up.
本发明实施例提供的驱动程序的安装方法, 在第一应用客户端的安装文件中携带第一 硬件的驱动程序文件, 当第一应用客户端在用户终端安装后, 第一应用客户端检测用户终 端是否安装第一硬件的驱动程序, 并在未安装时从第一应用客户端的安装文件中提取第一 硬件的驱动程序文件,进而可根据该驱动程序文件在用户终端中安装第一硬件的驱动程序, 这种方式不需要用户终端连接网络, 无需用户手动搜索和安装驱动程序文件, 能够使用户 方便快捷地安装驱动程序。 显然, 本发明实施例提供的驱动程序的安装方法, 在第一硬件 为网卡时, 在用户终端不能连接网络的情况下也能够使用户终端安装网卡驱动程序, 从而 使用户终端能够顺利连接到互联网, 便利用户的操作, 进而使得用户终端通过互联网下载 其他驱动程序, 以完成余下的驱动程序安装工作。 The installation method of the driver provided by the embodiment of the present invention carries the driver file of the first hardware in the installation file of the first application client. After the first application client is installed in the user terminal, the first application client detects the user terminal. Whether to install the driver of the first hardware, and extract the driver file of the first hardware from the installation file of the first application client when not installed, and then install the driver of the first hardware in the user terminal according to the driver file This method does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, which enables the user to install the driver conveniently and quickly. It is obvious that the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. , facilitating user operations, thereby enabling user terminals to download via the Internet Other drivers to complete the rest of the driver installation work.
可以理解的是, 不同种硬件的驱动程序不同, 且同种硬件的驱动程序文件也因为 所适用的操作***以及所适用的硬件的型号、 厂家等硬件信息不同而不同, 因而, 为 了能够从驱动文件中准确获取适用于驱动安装在用户终端的第一硬件的驱动程序文 件, 驱动文件中还包括其中的每个驱动程序文件适用的操作***信息和该驱动程序文 件适用的硬件的硬件信息。 举例来说, 驱动文件中可包括网卡和声卡两种硬件的驱动 程序文件, 其中, 网卡的驱动程序文件可进一步包括适用于 XP***的、 型号 (硬件信 息) 为 A的无线网卡的驱动程序文件以及适用于 Win7***的、 型号为 A的无线网卡 的驱动程序文件。驱动文件中包括这些驱动程序文件适用的操作***信息和硬件信息。  It can be understood that the drivers of different kinds of hardware are different, and the driver files of the same kind of hardware are also different depending on the operating system to be applied and the hardware type and manufacturer of the applicable hardware. Therefore, in order to be able to drive from The driver file for driving the first hardware installed in the user terminal is accurately obtained in the file, and the driver file also includes operating system information applicable to each driver file and hardware information of the hardware to which the driver file is applicable. For example, the driver file may include a driver file of the hardware card of the network card and the sound card, wherein the driver file of the network card may further include a driver file of the wireless network card of the model (hardware information) A for the XP system. And driver files for the A-type wireless network card for Win7 systems. The driver files include operating system information and hardware information for these driver files.
基于此, 在本发明的一个实施例中, 在安装文件的驱动文件中包括一种或几种硬 件的多个驱动程序文件时, 驱动文件中还包括每个驱动程序文件适用的操作***信息 和该驱动程序文件适用的硬件的硬件信息, 此时, 在步骤 S 102中, 可通过如图 2所示 的方法从安装文件中的驱动文件中获取第一硬件对应的驱动程序文件。 具体地, 该方 法包括以下步骤:  Based on this, in one embodiment of the present invention, when multiple driver files of one or several hardware are included in the driver file of the installation file, the driver file also includes operating system information applicable to each driver file and The hardware information of the hardware to which the driver file is applicable. At this time, in step S102, the driver file corresponding to the first hardware can be obtained from the driver file in the installation file by the method shown in FIG. 2. Specifically, the method includes the following steps:
S201 , 获取第一硬件的硬件信息和用户终端的操作***信息。  S201. Obtain hardware information of the first hardware and operating system information of the user terminal.
其中, 驱动程序文件适用的操作***信息可为 Win7、 Vista, XP、 Linux等操作系 统类型以及相应的版本等; 硬件信息可包括硬件的型号、 名称等。  The operating system information applicable to the driver file may be an operating system type such as Win7, Vista, XP, Linux, and the corresponding version; the hardware information may include the model number and name of the hardware.
S202, 根据获取的硬件信息和操作***信息、 以及安装文件中的驱动文件中包括 的驱动程序文件适用的操作***信息和该驱动程序文件适用的硬件的硬件信息, 从安 装文件中的驱动文件中提取适用于安装在用户终端的第一硬件的驱动程序文件。  S202, according to the acquired hardware information and operating system information, and the operating system information applicable to the driver file included in the driver file in the installation file and the hardware information of the hardware to which the driver file is applicable, from the driver file in the installation file. A driver file suitable for the first hardware installed in the user terminal is extracted.
需要说明的是, 在本发明的一个实施例中, 可在驱动文件中设置一个文件头信息, 该文件头信息被放置在驱动文件的文件头部分, 在文件头信息中设置有与驱动文件中 的各个驱动程序文件分别一一对应的驱动程序项。 每个驱动程序文件适用的操作*** 信息和该驱动程序文件适用的硬件的硬件信息都被标记在该驱动程序文件对应的驱动 程序项中。 并且, 每个驱动程序文件对应的驱动程序项中还标记有该驱动程序文件在 驱动文件中的位置信息。 其中, 驱动程序文件在驱动文件中的位置信息包括驱动程序 文件的文件大小以及该驱动程序文件在驱动文件中的偏移地址。 其中, 偏移地址为驱 动程序文件的起始位置相对于驱动文件的起始位置的偏移量。 因此, 可通过如图 3 所 示的方法提取第一硬件的驱动程序文件。 如图 3所示, 该方法可包括:  It should be noted that, in an embodiment of the present invention, a file header information may be set in the driver file, where the file header information is placed in a file header portion of the driver file, and the file header information is set in the driver file. Each driver file has a one-to-one corresponding driver entry. The operating system information for each driver file and the hardware information for the hardware for which the driver file applies are marked in the driver entry for that driver file. Also, the driver entry corresponding to each driver file is also marked with the location information of the driver file in the driver file. The location information of the driver file in the driver file includes the file size of the driver file and the offset address of the driver file in the driver file. The offset address is the offset of the start position of the driver file relative to the start position of the drive file. Therefore, the driver file of the first hardware can be extracted by the method as shown in FIG. As shown in FIG. 3, the method can include:
S301 , 根据获取的硬件信息和操作***信息, 扫描文件头信息以确定所标记的操 作***信息与获取的操作***信息相同且所标记的硬件信息与获取的硬件信息相匹配 的驱动程序项。 举例而言, 文件头信息中的驱动程序项可如表 2所示, 表 2是某种网卡的驱动程 序文件对应的驱动程序项, 可以理解是, 表 2所示的文件头信息仅为示例, 仅列出文 件头信息中的部分内容及其对应的内容。 其中, 文件头信息对应 6 部分内容, 分别是 该驱动程序文件适用的网卡硬件信息和操作***信息、 该驱动程序文件的驱动程序包 名称、 再将该驱动程序文件显示给用户时所显示的名称, 以及该驱动程序文件在驱动 文件中的位置信息, 即偏移地址和大小。 S301. Scan the file header information according to the acquired hardware information and operating system information to determine a driver item whose marked operating system information is the same as the acquired operating system information and the marked hardware information matches the acquired hardware information. For example, the driver entry in the header information can be as shown in Table 2. Table 2 is the driver entry corresponding to the driver file of a certain network card. It can be understood that the header information shown in Table 2 is only an example. , only some of the contents of the file header information and their corresponding contents are listed. The file header information corresponds to six parts, which are the network card hardware information and operating system information applicable to the driver file, the driver package name of the driver file, and the name displayed when the driver file is displayed to the user. , and the location information of the driver file in the driver file, that is, the offset address and size.
表 2  Table 2
Figure imgf000010_0001
举例来说 , 如 果获取 的用 户 终端 中 的第 一硬件 的硬件信 息 为 USB\\Vid_1761&Pid_0B05, 且用户终端的操作***信息为 Win7***, 第一应用客户端通 过扫描驱动文件的文件头信息可确定如表 2所示的驱动程序项。
Figure imgf000010_0001
For example, if the hardware information of the first hardware in the acquired user terminal is USB\\Vid_1761&Pid_0B05, and the operating system information of the user terminal is the Win7 system, the first application client can determine the file header information by scanning the driver file. The driver entries shown in Table 2.
5302, 获取确定的驱动程序项标记的位置信息。  5302. Obtain location information of the determined driver item tag.
其中, 位置信息包括驱动程序文件的大小和该驱动程序文件在驱动文件中的偏移 地址。 举例来说, 对于表 2所示的驱动程序项, 标记的位置信息包括: 偏移地址 320350, 大小 120140。  Wherein, the location information includes the size of the driver file and the offset address of the driver file in the driver file. For example, for the driver entry shown in Table 2, the location information of the tag includes: offset address 320350, size 120140.
5303 , 根据获取的位置信息, 从驱动文件中提取第一硬件的驱动程序文件。  5303. Extract a driver file of the first hardware from the driver file according to the obtained location information.
具体地, 可根据获取的位置信息中的偏移地址, 从驱动文件的与偏移地址对应的 位置处, 提取大小为获取的位置信息中的大小的数据以提取第一硬件的驱动程序文件。 以表 2所示的驱动程序项为例, 可在距离驱动文件的起始处 320350字节的位置处开始 读取长度为 120140字节的数据,并将提取的数据打包为名称为 "mlink_win7.zip"的驱动程序 文件。  Specifically, data of a size in the acquired location information may be extracted from a location corresponding to the offset address of the driver file according to the offset address in the acquired location information to extract a driver file of the first hardware. Taking the driver item shown in Table 2 as an example, the data of length 120140 bytes can be read at the position of 320350 bytes from the beginning of the drive file, and the extracted data is packaged into the name "mlink_win7. Zip" driver file.
进一步的, 在本发明的一个实施例中, 在用户终端连接到互联网后, 第一应用客户端 可连接服务器, 获取已安装的驱动程序的最新版本, 以及未安装驱动程序的硬件的驱动程 序文件, 并显示在第一应用客户端的驱动程序列表界面。 举例来讲, 第一应用客户端被命名为驱动精灵, 如图 4所示, 在用户终端中安装网卡 的驱动程序后, 驱动精灵可在驱动程序列表界面中显示该网卡驱动程序的最新版本或最稳 定版本的信息, 以及用户终端中尚未安装的驱动程序, 用户可以方便的选择用户终端尚未 安装的驱动程序, 如显卡、 声卡、 主板等硬件的驱动程序, 以及根据需要选择是否更新已 安装的驱动程序。 Further, in an embodiment of the present invention, after the user terminal is connected to the Internet, the first application client can connect to the server, obtain the latest version of the installed driver, and the driver file of the hardware without the driver installed. And display the driver list interface on the first application client. For example, the first application client is named as the driver wizard. As shown in FIG. 4, after the driver of the network card is installed in the user terminal, the driver wizard can display the latest version of the network card driver in the driver list interface or The most stable version of the information, as well as the driver that is not installed in the user terminal, the user can conveniently select the driver that the user terminal has not installed, such as the driver of the graphics card, sound card, motherboard, etc., and choose whether to update the installed one according to the need. driver.
再次强调的是, 第一应用客户端的安装文件中的驱动文件中可包括装机必备的硬件的 驱动程序, 如网卡、 显卡、 声卡、 主板等, 第一应用客户端可在驱动文件中分别提取出用 户终端中相应硬件的驱动程序文件, 并进行安装以完成用户终端的硬件驱动, 并在连接至 互联网后对这些驱动程序进行更新。  It is emphasized again that the driver files in the installation file of the first application client may include drivers for hardware necessary for installation, such as a network card, a graphics card, a sound card, a motherboard, etc., and the first application client may separately extract the driver files. The driver files of the corresponding hardware in the user terminal are installed and installed to complete the hardware driver of the user terminal, and these drivers are updated after being connected to the Internet.
进一步的, 在本发明的一个实施例中, 为了便于用户了解用户终端上硬件的驱动程 序的安装情况, 第一应用客户端在检测到用户终端中尚未安装第一硬件的驱动程序后, 从安装文件中的驱动文件中获取第一硬件对应的驱动程序文件之前, 可显示第一提示 框, 以告知用户终端的用户该用户终端中尚未安装第一硬件的驱动程序, 并询问用户 是否需要安装第一硬件的驱动程序。 第一应用客户端在接收到用户指示安装第一硬件 的驱动程序的指令后, 可从安装文件中的驱动文件中获取第一硬件的驱动程序文件, 并进行安装。  Further, in an embodiment of the present invention, in order to facilitate the user to understand the installation situation of the hardware driver on the user terminal, the first application client detects the installation of the driver of the first hardware in the user terminal. Before obtaining the driver file corresponding to the first hardware in the driver file in the file, the first prompt box may be displayed to notify the user of the user terminal that the driver of the first hardware is not installed in the user terminal, and the user is asked whether to install the first A hardware driver. After receiving the instruction of the user to install the driver of the first hardware, the first application client may obtain the driver file of the first hardware from the driver file in the installation file, and install the driver file.
此外, 在驱动程序的安装过程中, 可以显示第二提示框, 该第二提示框中显示从 驱动文件中获取的第一硬件的描述信息, 例如从文件头信息中获取的第一硬件的显示 名称, 并显示该驱动程序的安装进程, 以便于用户了解安装进度。  In addition, during the installation process of the driver, a second prompt box may be displayed, where the second prompt box displays description information of the first hardware acquired from the driver file, for example, a display of the first hardware acquired from the file header information. The name, and the installation process of the driver is displayed, so that the user can understand the progress of the installation.
同样以第一应用客户端被命名为驱动精灵举例, 当驱动精灵检测到用户终端中尚 未安装硬件信息为 【USB\\Vid_1761&Pid_0B05】 的网卡的驱动程序时, 可显示如图 5 所示的提示框, 以提示用户: 无法正确连接网络, 原因可能是没有安装网卡驱动, 并 提示用户选择是否安装网卡驱动。用户可通过点击图 5中提示框中的 "是"或"否"的按钮 选择是否安装该网卡的驱动程序。 如果用户点击"是", 则驱动精灵可在其安装文件中 的驱动文件中获取该网卡的驱动程序文件, 显示如图 6所示的提示框, 该提示框中显 示进度条以及 "正在安装 Ralink雷凌无线 USB网卡驱动 3.2.4.0版"的提示信息。为了能 够满足用户的不同需求, 用户可通过点击图 6中的"否"以取消该驱动程序的安装。  Similarly, the first application client is named as the driver sprite. When the driver wizard detects that the driver of the network card with the hardware information [USB\\Vid_1761&Pid_0B05] is not installed in the user terminal, the prompt box shown in FIG. 5 can be displayed. To prompt the user: The network cannot be connected properly. The reason may be that the NIC driver is not installed and the user is prompted to choose whether to install the NIC driver. The user can select whether to install the driver of the network card by clicking the "Yes" or "No" button in the prompt box in FIG. If the user clicks "Yes", the driver wizard can obtain the driver file of the network card in the driver file in the installation file, and display a prompt box as shown in FIG. 6, which displays a progress bar and "Installing Ralink" Ralink Wireless USB NIC driver 3.2.4.0 version of the prompt information. In order to meet the different needs of users, the user can cancel the installation of the driver by clicking "No" in Figure 6.
为了实现上述实施例, 本发明还提出一种客户端装置。  In order to implement the above embodiments, the present invention also proposes a client device.
图 7为根据本发明一个实施例的客户端装置的结构框图。 该客户端装置安装在用户终 端中, 用户终端可获取该客户端装置的安装文件并通过安装文件安装该客户端装置。 举例 而言, 用户终端可以通过互联网下载客户端装置的安装文件并将该安装文件保存在用 户终端本地, 或者, 用户将客户端装置的安装文件拷贝到用户终端中, 在安装客户端 装置时, 用户终端可根据本地的安装文件, 安装客户端装置。 FIG. 7 is a structural block diagram of a client device according to an embodiment of the present invention. The client device is installed in the user terminal, and the user terminal can obtain the installation file of the client device and install the client device through the installation file. For example, the user terminal can download the installation file of the client device through the Internet and save the installation file locally on the user terminal, or the user copies the installation file of the client device to the user terminal, and installs the client. When the device is installed, the user terminal can install the client device according to the local installation file.
在本发明的实施例中, 客户端装置可以是安装在用户终端的应用程序。 用户终端 可为个人计算机、 笔记本电脑等具有操作***且其中的硬件的正常工作需要驱动的设 备。  In an embodiment of the invention, the client device may be an application installed at the user terminal. The user terminal can be a device that has an operating system such as a personal computer or a notebook computer and that needs to be driven for the normal operation of the hardware therein.
其中, 客户端装置的安装文件中设置有驱动程序文件, 且该用户终端中设置有第一硬 件,该驱动文件中包括该第一硬件对应的驱动程序文件。驱动文件可由服务器根据最近一 段时间内硬件的驱动程序文件的下载排行 (即流行度) 进行整理得到, 然后将该驱动 文件与第一应用客户端的安装文件进行打包, 一起发布。 服务器可分别整理出常用硬 件, 如网卡、 显卡、 声卡、 摄像头等设备的热门驱动程序文件, 并根据整理得到的驱 动程序文件生成驱动文件, 或者根据每个硬件的热门驱动程序文件分别生成每个硬件 对应的驱动文件。  The driver file is set in the installation file of the client device, and the user terminal is provided with the first hardware, and the driver file includes the driver file corresponding to the first hardware. The driver file can be sorted by the server according to the download ranking (ie popularity) of the driver files of the hardware in the most recent period of time, and then the driver file is packaged and released together with the installation file of the first application client. The server can separately sort out common driver files of common hardware, such as network card, video card, sound card, camera, etc., and generate driver files according to the compiled driver files, or generate each according to the hot driver files of each hardware. The driver file corresponding to the hardware.
在本发明的一个实施例中, 在客户端装置的安装文件中, 驱动文件可以以动态链 接库 DLL ( Dynamic Link Library, 动态链接库) 文件的形式存在, 即将驱动文件设置 为 DLL文件放置在安装文件中。  In an embodiment of the present invention, in the installation file of the client device, the driver file may exist in the form of a dynamic link library DLL (Dynamic Link Library) file, that is, the driver file is set as a DLL file and is placed in the installation. In the file.
如图 7所示, 该客户端装置包括检测模块 100、 获取模块 200和安装模块 300。 具体地, 检测模块 100用于检测用户终端中是否已经安装第一硬件的驱动程序。 在 本发明的实施例中, 检测模块 100可自动启动或者根据用户指令启动, 并在启动后自动检 测或者根据用户指令检测该用户终端中是否已经安装第一硬件的驱动程序, 也可根据用户 在客户端装置提供的用户交互界面输入的驱动程序检测指令检测用户终端中是否已经 安装第一硬件的驱动程序。  As shown in FIG. 7, the client device includes a detection module 100, an acquisition module 200, and an installation module 300. Specifically, the detecting module 100 is configured to detect whether a driver of the first hardware has been installed in the user terminal. In the embodiment of the present invention, the detecting module 100 can be automatically started or started according to a user instruction, and automatically detects after starting or detects whether the driver of the first hardware has been installed in the user terminal according to a user instruction, or according to the user. The driver detection instruction input by the user interface provided by the client device detects whether the driver of the first hardware has been installed in the user terminal.
其中, 第一硬件为用户终端中的硬件, 为了能够使用户终端能够尽快实现网络连 接功能, 第一硬件优选地可为网卡, 应当理解, 在本发明的其他实施例中, 第一硬件 也可以为其他硬件, 如显卡、 声卡、 摄像头等。  The first hardware is the hardware in the user terminal. The first hardware may be a network card, in order to enable the user terminal to implement the network connection function as soon as possible. It should be understood that in other embodiments of the present invention, the first hardware may also be used. For other hardware, such as graphics cards, sound cards, cameras, etc.
获取模块 200用于在检测模块 100检测到用户终端中尚未安装第一硬件的驱动程 序时, 从安装文件中的驱动文件中获取第一硬件对应的驱动程序文件。  The obtaining module 200 is configured to obtain, from the driver file in the installation file, the driver file corresponding to the first hardware when the detecting module 100 detects that the driver of the first hardware is not installed in the user terminal.
可以理解的是, 不同种硬件的驱动程序不同, 且同种硬件的驱动程序文件也因为 所适用的操作***以及所适用的硬件的型号、 厂家等硬件信息不同而不同, 因而, 为 了能够从驱动文件中准确获取适用于驱动安装在用户终端的第一硬件的驱动程序文 件, 驱动文件中还包括其中的每个驱动程序文件适用的操作***信息和该驱动程序文 件适用的硬件的硬件信息。 举例来说, 驱动文件中可包括网卡和声卡两种硬件的驱动 程序文件, 其中, 网卡的驱动程序文件可进一步包括适用于 XP***的、 型号 (硬件信 息) 为 A的无线网卡的驱动程序文件以及适用于 Win7***的、 型号为 A的无线网卡 的驱动程序文件。驱动文件中包括这些驱动程序文件适用的操作***信息和硬件信息。 更具体地, 在本发明的一个实施例中,在安装文件的驱动文件中包括一种或几种硬 件的多个驱动程序文件时, 驱动文件中还包括每个驱动程序文件适用的操作***信息 和该驱动程序文件适用的硬件的硬件信息, 如图 8所示的客户端装置中, 获取模块 200 具体包括获取子模块 210和提取子模块 220, 其中, 提取子模块 220进一步包括确定单 元 221、 位置获取单元 222和提取单元 223。 It can be understood that the drivers of different kinds of hardware are different, and the driver files of the same kind of hardware are also different depending on the operating system to be applied and the hardware type and manufacturer of the applicable hardware. Therefore, in order to be able to drive from The driver file for driving the first hardware installed in the user terminal is accurately obtained in the file, and the driver file also includes operating system information applicable to each driver file and hardware information of the hardware to which the driver file is applicable. For example, the driver file may include a driver file of the hardware card of the network card and the sound card, wherein the driver file of the network card may further include a driver file of the wireless network card of the model (hardware information) A for the XP system. And type A wireless network card for Win7 system Driver file. The driver files include operating system information and hardware information for these driver files. More specifically, in one embodiment of the present invention, when multiple driver files of one or several hardware are included in the driver file of the installation file, the driver file also includes operating system information applicable to each driver file. And the hardware information of the hardware that is applicable to the driver file, in the client device shown in FIG. 8, the obtaining module 200 specifically includes an obtaining sub-module 210 and an extracting sub-module 220, wherein the extracting sub-module 220 further includes a determining unit 221, The location acquisition unit 222 and the extraction unit 223.
其中, 获取子模块 210用于获取用户终端中第一硬件的硬件信息和用户终端的操 作***信息。  The obtaining sub-module 210 is configured to acquire hardware information of the first hardware in the user terminal and operating system information of the user terminal.
驱动程序文件适用的操作***信息可为 Win7、 Vista, XP、 Linux等操作***类型 以及相应的版本等; 硬件信息可包括硬件的型号、 名称等。  The operating system information for the driver files can be Win7, Vista, XP, Linux and other operating system types and corresponding versions; hardware information can include the hardware model and name.
提取子模块 220用于根据获取子模块 210获取的硬件信息和操作***信息、 驱动 文件中包括的驱动程序文件适用的操作***信息和该驱动程序文件适用的硬件的硬件 信息, 从安装文件中的驱动文件中提取适用于安装在用户终端的第一硬件的驱动程序 文件。  The extraction sub-module 220 is configured to obtain, according to the hardware information and the operating system information acquired by the acquisition sub-module 210, the operating system information applicable to the driver file included in the driver file, and the hardware information of the hardware to which the driver file is applicable, from the installation file. A driver file for the first hardware installed in the user terminal is extracted from the driver file.
需要说明的是, 在本发明的一个实施例中, 可在驱动文件中设置一个文件头信息, 该文件头信息被放置在驱动文件的文件头部分, 在文件头信息中设置有与驱动文件中 的各个驱动程序文件分别一一对应的驱动程序项。 每个驱动程序文件适用的操作*** 信息和该驱动程序文件适用的硬件的硬件信息都被标记在该驱动程序文件对应的驱动 程序项中。 并且, 每个驱动程序文件对应的驱动程序项中还标记有该驱动程序文件在 驱动文件中的位置信息。 其中, 驱动程序文件在驱动文件中的位置信息包括驱动程序 文件的文件大小以及该驱动程序文件在驱动文件中的偏移地址。 其中, 偏移地址为驱 动程序文件的起始位置相对于驱动文件的起始位置的偏移量。  It should be noted that, in an embodiment of the present invention, a file header information may be set in the driver file, where the file header information is placed in a file header portion of the driver file, and the file header information is set in the driver file. Each driver file has a one-to-one corresponding driver entry. The operating system information for each driver file and the hardware information for the hardware for which the driver file applies are marked in the driver entry for that driver file. Also, the driver entry corresponding to each driver file is also marked with the location information of the driver file in the driver file. The location information of the driver file in the driver file includes the file size of the driver file and the offset address of the driver file in the driver file. The offset address is the offset of the start position of the driver file relative to the start position of the drive file.
此时, 提取子模块 220可首先通过确定单元 221根据获取子模块 210获取的硬件 信息和操作***信息, 扫描文件头信息以确定所标记的操作***信息与获取的操作系 统信息相同且所标记的硬件信息与获取的硬件信息相匹配的驱动程序项。  At this time, the extracting sub-module 220 may first scan the file header information by the determining unit 221 according to the hardware information and the operating system information acquired by the obtaining sub-module 210 to determine that the marked operating system information is the same as the obtained operating system information and is marked. A driver entry that matches the hardware information with the acquired hardware information.
然后, 提取子模块 220通过位置获取单元 222获取确定单元 221确定的驱动程序 项所标记的位置信息。 其中, 位置信息包括驱动程序文件的大小和该驱动程序文件在 驱动文件中的偏移地址。  Then, the extraction sub-module 220 acquires the position information marked by the driver item determined by the determination unit 221 through the position acquisition unit 222. Wherein, the location information includes the size of the driver file and the offset address of the driver file in the driver file.
提取单元 223根据位置获取单元 222获取的位置信息从驱动文件中提取第一硬件 的驱动程序文件。 更具体地, 可根据获取的位置信息中的偏移地址, 从驱动文件的与 偏移地址对应的位置处, 提取大小为获取的位置信息中的大小的数据以提取第一硬件 的驱动程序文件。 安装模块 300用于根据获取模块 200获取的第一硬件对应的驱动程序文件, 在用户 终端中安装第一硬件的驱动程序。 The extracting unit 223 extracts the driver file of the first hardware from the driver file according to the location information acquired by the location obtaining unit 222. More specifically, the data of the size in the acquired location information may be extracted from the location corresponding to the offset address of the driver file according to the offset address in the acquired location information to extract the driver file of the first hardware. . The installation module 300 is configured to install a driver of the first hardware in the user terminal according to the driver file corresponding to the first hardware acquired by the acquisition module 200.
在本发明的实施例中, 在用户终端中安装第一硬件的驱动程序后, 用户可在设备管 理器中查看安装好的第一硬件的驱动程序。 如果第一硬件为网卡, 则当用户终端安装了 网卡的驱动程序后, 对于内网用户, 用户终端可以手动或者自动获取 IP地址的方法连接到 互联网, 以进行更多的联网操作, 对于 ADSL或者 3G上网卡用户, 则用户终端可通过拨 号连接网络。  In the embodiment of the present invention, after the driver of the first hardware is installed in the user terminal, the user can view the driver of the installed first hardware in the device manager. If the first hardware is a network card, after the user terminal installs the driver of the network card, for the intranet user, the user terminal can connect to the Internet by manually or automatically obtaining an IP address to perform more networking operations, for ADSL or For a 3G network card user, the user terminal can connect to the network through dial-up.
在用户终端连接到互联网后, 客户端装置可连接服务器, 获取已安装的驱动程序的最 新版本, 以及未安装驱动程序的硬件的驱动程序文件, 并显示在客户端装置的驱动程序列 表界面。 另外, 客户端装置的安装文件中的驱动文件中可包括装机必备的硬件的驱动程序, 如网卡、 显卡、 声卡、 主板等, 获取模块 200可在驱动文件中分别提取出用户终端中相应 硬件的驱动程序文件, 并通过安装模块 300进行安装以完成用户终端的硬件驱动, 并在连 接至互联网后对这些驱动程序进行更新。  After the user terminal is connected to the Internet, the client device can connect to the server, obtain the latest version of the installed driver, and the driver file of the hardware without the driver installed, and display it on the driver list interface of the client device. In addition, the driver files in the installation file of the client device may include drivers for hardware necessary for installation, such as a network card, a graphics card, a sound card, a motherboard, etc., and the obtaining module 200 may separately extract corresponding hardware in the user terminal in the driver file. The driver files are installed by the installation module 300 to complete the hardware drivers of the user terminals, and these drivers are updated after being connected to the Internet.
本发明实施例的客户端装置, 在其安装文件中携带有第一硬件的驱动程序文件, 该客 户端装置在用户终端安装后, 可检测用户终端是否安装第一硬件的驱动程序, 并在未安 装时从客户端装置的安装文件提取第一硬件的驱动程序文件, 进而可根据该驱动程序 文件在用户终端中安装第一硬件的驱动程序, 这种方式不需要用户终端连接网络, 无需 用户手动搜索和安装驱动程序文件, 能够使用户方便快捷地安装驱动程序。 显然, 本发 明实施例提供的客户端装置, 在第一硬件为网卡时, 在用户终端不能连接网络的情况下也 能够使用户终端安装网卡驱动程序, 从而使用户终端能够顺利连接到互联网, 便利用户的 操作, 进而使得用户终端通过互联网下载其他驱动程序, 以完成余下的驱动程序安装工作。  The client device of the embodiment of the present invention carries a driver file of the first hardware in the installation file, and after the user terminal is installed, the client device can detect whether the user terminal installs the driver of the first hardware, and During installation, the driver file of the first hardware is extracted from the installation file of the client device, and then the driver of the first hardware is installed in the user terminal according to the driver file, which does not require the user terminal to connect to the network, and does not require the user to manually Searching and installing driver files enables users to install drivers quickly and easily. Obviously, the client device provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet, and the user terminal can be conveniently connected to the Internet. The user's operation, which in turn causes the user terminal to download other drivers through the Internet to complete the remaining driver installation work.
图 9为根据本发明另一个实施例的客户端装置的结构框图。 为了便于用户了解用户终 端上硬件的驱动程序的安装情况, 如图 9所示的客户端装置, 在图 8所示的客户端装置的 基础上还包括显示模块 400。  FIG. 9 is a structural block diagram of a client device according to another embodiment of the present invention. In order to facilitate the user to understand the installation of the hardware driver on the user terminal, the client device shown in FIG. 9 further includes a display module 400 based on the client device shown in FIG.
具体地, 显示模块 400用于显示第一提示框, 以告知用户终端的用户该用户终端中 尚未安装第一硬件的驱动程序, 并询问用户是否需要安装第一硬件的驱动程序。 更具 体地, 显示模块 400可在检测模块 100检测到用户终端中尚未安装第一硬件的驱动程 序后, 获取模块 200从用户终端本地存储的客户端装置的安装文件中的驱动文件中获 取第一硬件对应的驱动程序文件之前, 显示该第一提示框。  Specifically, the display module 400 is configured to display the first prompt box to notify the user of the user terminal that the driver of the first hardware is not installed in the user terminal, and ask the user whether the driver of the first hardware needs to be installed. More specifically, after the detecting module 100 detects that the driver of the first hardware is not installed in the user terminal, the obtaining module 200 obtains the first file from the driver files in the installation file of the client device locally stored by the user terminal. The first prompt box is displayed before the hardware corresponding driver file.
客户端装置在接收到用户根据该第一提示框提示的内容指示的安装第一硬件的驱 动程序的指令后, 获取模块 200可从安装文件中的驱动文件中获取第一硬件的驱动程 序文件, 并通过安装模块 300进行安装。 此外, 在驱动程序的安装过程中, 显示模块 400还可通过显示第二提示框,在其中显示从驱动文件的文件头信息中获取的第一硬件 的描述信息 (如第一硬件的显示名称等) 在第一提示框中以及驱动程序的安装进程, 以便于用户了解安装进度。 After receiving the instruction of the driver for installing the first hardware indicated by the content indicated by the first prompt box, the obtaining module 200 may obtain the driver file of the first hardware from the driver file in the installation file, And installing through the installation module 300. In addition, during the installation of the driver, the display module The 400 can also display the description information of the first hardware (such as the display name of the first hardware, etc.) obtained from the file header information of the driver file in the second prompt box, in the first prompt box and the installation of the driver. Process, so that users can understand the progress of the installation.
本发明实施例的客户端装置,通过显示模块 400对提示用户其终点中有未安装的驱 动程序, 并根据用户指令安装相应的驱动程序, 同时, 可在安装过程中实时显示驱动 程序的安装进度, 更加直观、 方便, 提升用户体验。  The client device of the embodiment of the present invention prompts the user to have an uninstalled driver in the end point of the display module 400, and installs the corresponding driver according to the user instruction, and at the same time, can display the driver installation progress in real time during the installation process. , more intuitive and convenient, enhance the user experience.
为了实现上述实施例, 本发明还提出一种应用程序。 该应用程序用于在运行时执行如 本发明实施例所述的驱动程序的安装方法。  In order to implement the above embodiments, the present invention also proposes an application. The application is for executing a method of installing a driver as described in the embodiment of the present invention at runtime.
根据本发明实施例的应用程序, 在安装到用户终端后, 可检测用户终端是否安装第一 硬件的驱动程序,并在未安装时从该应用程序的安装文件中提取第一硬件的驱动程序文件, 进而可根据该驱动程序文件在用户终端中安装第一硬件的驱动程序, 这种方式不需要用户 终端连接网络, 无需用户手动搜索和安装驱动程序文件, 能够使用户方便快捷地安装驱动 程序。 显然, 本发明实施例提供的驱动程序的安装方法, 在第一硬件为网卡时, 在用户终 端不能连接网络的情况下也能够使用户终端安装网卡驱动程序, 从而使用户终端能够顺利 连接到互联网, 便利用户的操作, 进而使得用户终端通过互联网下载其他驱动程序, 以完 成余下的驱动程序安装工作。  The application program according to the embodiment of the present invention, after being installed to the user terminal, can detect whether the user terminal installs the driver of the first hardware, and extracts the driver file of the first hardware from the installation file of the application when not installed. The driver of the first hardware can be installed in the user terminal according to the driver file. This method does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, so that the user can install the driver conveniently and quickly. It is obvious that the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
为了实现上述实施例, 本发明还提出一种存储介质, 用于存储应用程序, 该应用程序 用于在运行时执行如本发明实施例所述的驱动程序的安装方法。  In order to implement the above embodiments, the present invention also provides a storage medium for storing an application for executing a method of installing a driver as described in the embodiment of the present invention at runtime.
根据本发明实施例的存储介质, 在将其存储的应用程序安装到用户终端后, 可检测用 户终端是否安装第一硬件的驱动程序, 并在未安装时从该应用程序的安装文件中提取第一 硬件的驱动程序文件,进而可根据该驱动程序文件在用户终端中安装第一硬件的驱动程序, 这种方式不需要用户终端连接网络, 无需用户手动搜索和安装驱动程序文件, 能够使用户 方便快捷地安装驱动程序。 显然, 本发明实施例提供的驱动程序的安装方法, 在第一硬件 为网卡时, 在用户终端不能连接网络的情况下也能够使用户终端安装网卡驱动程序, 从而 使用户终端能够顺利连接到互联网, 便利用户的操作, 进而使得用户终端通过互联网下载 其他驱动程序, 以完成余下的驱动程序安装工作。  According to the storage medium of the embodiment of the present invention, after installing the stored application to the user terminal, it is possible to detect whether the user terminal installs the driver of the first hardware, and extracts from the installation file of the application when not installed. A hardware driver file, which in turn can install a driver of the first hardware in the user terminal according to the driver file, which does not require the user terminal to connect to the network, and does not require the user to manually search for and install the driver file, thereby facilitating the user. Install the driver quickly and easily. It is obvious that the driver installation method provided by the embodiment of the present invention can enable the user terminal to install the network card driver when the first hardware is the network card, so that the user terminal can successfully connect to the Internet. The user's operation is facilitated, and the user terminal downloads other drivers through the Internet to complete the remaining driver installation work.
应当理解, 本发明的各部分可以用硬件、 软件、 固件或它们的组合来实现。 在上述实 施方式中, 多个步骤或方法可以用存储在存储器中且由合适的指令执行***执行的软件或 固件来实现。 例如, 如果用硬件来实现, 和在另一实施方式中一样, 可用本领域公知的下 列技术中的任一项或他们的组合来实现: 具有用于对数据信号实现逻辑功能的逻辑门电路 的离散逻辑电路, 具有合适的组合逻辑门电路的专用集成电路, 可编程门阵列 (PGA), 现 场可编程门阵列 (FPGA) 等。 在本说明书的描述中, 参考术语"一个实施例"、 "一些实施例"、 "示例"、 "具体示例"、 或"一些示例"等的描述意指结合该实施例或示例描述的具体特征、 结构、 材料或者特点包 含于本发明的至少一个实施例或示例中。 在本说明书中, 对上述术语的示意性表述不一定 指的是相同的实施例或示例。 而且, 描述的具体特征、 结构、 材料或者特点可以在任何的 一个或多个实施例或示例中以合适的方式结合。 It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented with any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc. In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the invention. In the present specification, the schematic representation of the above terms does not necessarily mean the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples.
尽管已经示出和描述了本发明的实施例, 本领域的普通技术人员可以理解: 在不脱离 本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、 修改、 替换和变型, 本发 明的范围由权利要求及其等同物限定。  While the embodiments of the present invention have been shown and described, the embodiments of the invention may The scope of the invention is defined by the claims and their equivalents.

Claims

权利要求书 claims
1、 一种驱动程序的安装方法, 其特征在于, 1. A driver installation method, characterized by:
所述方法由安装在用户终端中的第一应用客户端执行, 所述用户终端获取所述第 一应用客户端的安装文件并通过所述安装文件安装所述第一应用客户端, 所述安装文 件中设置有驱动文件, 所述用户终端中设置有第一硬件, 所述驱动文件中包括所述第 一硬件对应的驱动程序文件; The method is executed by a first application client installed in a user terminal. The user terminal obtains an installation file of the first application client and installs the first application client through the installation file. The installation file A driver file is provided in the user terminal, a first hardware is provided in the user terminal, and the driver file includes a driver file corresponding to the first hardware;
所述方法包括: The methods include:
检测所述用户终端中是否已经安装所述第一硬件的驱动程序; Detect whether the driver of the first hardware has been installed in the user terminal;
如果检测到所述用户终端中尚未安装所述第一硬件的驱动程序, 从所述安装文件 中的驱动文件中获取所述第一硬件对应的驱动程序文件; If it is detected that the driver of the first hardware has not been installed in the user terminal, obtain the driver file corresponding to the first hardware from the driver file in the installation file;
根据所述获取的第一硬件对应的驱动程序文件, 在所述用户终端中安装所述第一 硬件的驱动程序。 According to the obtained driver file corresponding to the first hardware, the driver of the first hardware is installed in the user terminal.
2、 如权利要求 1所述的方法, 其特征在于, 2. The method according to claim 1, characterized in that,
所述驱动文件中包括至少两个驱动程序文件, 所述驱动程序文件与至少一种硬件 相对应, 且每种硬件对应至少一个驱动程序文件; The driver file includes at least two driver files, the driver files correspond to at least one kind of hardware, and each type of hardware corresponds to at least one driver file;
所述驱动文件中还包括每个驱动程序文件适用的操作***信息和该驱动程序文件 适用的硬件的硬件信息; The driver file also includes operating system information applicable to each driver file and hardware information of the hardware applicable to the driver file;
所述从所述安装文件中的驱动文件中获取所述第一硬件的驱动程序文件包括: 获取所述第一硬件的硬件信息和所述用户终端的操作***信息; The obtaining the driver file of the first hardware from the driver file in the installation file includes: obtaining the hardware information of the first hardware and the operating system information of the user terminal;
根据所述获取的硬件信息和所述操作***信息、 所述驱动文件中包括的驱动程序 文件适用的操作***信息和该驱动程序文件适用的硬件的硬件信息, 从所述安装文件 中的驱动文件中提取适用于安装在所述用户终端的所述第一硬件的驱动程序文件。 According to the obtained hardware information and the operating system information, the operating system information applicable to the driver file included in the driver file and the hardware information of the hardware applicable to the driver file, from the driver file in the installation file Extract a driver file suitable for the first hardware installed on the user terminal.
3、 如权利要求 2所述的方法, 其特征在于, 3. The method of claim 2, characterized in that,
所述驱动文件中包括文件头信息, 所述文件头信息中设置有与所述驱动程序文件 对应的驱动程序项, 每个驱动程序文件适用的操作***信息和该驱动程序文件适用的 硬件的硬件信息被标记在该驱动程序文件对应的驱动程序项中; The driver file includes file header information, and the file header information is provided with driver items corresponding to the driver file, operating system information applicable to each driver file and hardware of the hardware applicable to the driver file. The information is marked in the driver entry corresponding to the driver file;
所述驱动程序文件对应的驱动程序项中还标记有该驱动程序文件在所述驱动文件 中的位置信息; The driver item corresponding to the driver file is also marked with the location information of the driver file in the driver file;
所述根据所述获取的硬件信息和所述操作***信息、 所述驱动文件中包括的驱动 程序文件适用的操作***信息和该驱动程序文件适用的硬件的硬件信息, 从所述安装 文件中的驱动文件中提取适用于安装在所述用户终端的所述第一硬件的驱动程序文件 包括: According to the obtained hardware information and the operating system information, the operating system information applicable to the driver file included in the driver file and the hardware information of the hardware applicable to the driver file, from the installation file Extract a driver file suitable for the first hardware installed in the user terminal from the driver file. include:
根据所述获取的硬件信息和所述操作***信息, 扫描所述文件头信息以确定所标 记的操作***信息与所述获取的操作***信息相同且所标记的硬件信息与所述获取的 硬件信息相匹配的驱动程序项; According to the obtained hardware information and the operating system information, scan the file header information to determine that the marked operating system information is the same as the obtained operating system information and the marked hardware information is the same as the obtained hardware information. Matching driver entries;
获取所述确定的驱动程序项标记的位置信息; Obtain the location information of the determined driver item mark;
根据所述获取的位置信息, 从所述驱动文件中提取所述第一硬件的驱动程序文件。 According to the obtained location information, extract the driver file of the first hardware from the driver file.
4、 如权利要求 3所述的方法, 其特征在于, 所述位置信息包括驱动程序文件的大 小和该驱动程序文件在所述驱动文件中的偏移地址; 4. The method of claim 3, wherein the location information includes the size of the driver file and the offset address of the driver file in the driver file;
所述根据所述获取的位置信息, 从所述驱动文件中提取所述第一硬件的驱动程序 文件包括: Extracting the driver file of the first hardware from the driver file according to the obtained location information includes:
根据所述获取的位置信息中的偏移地址, 从所述驱动文件的与所述偏移地址对应 的位置处, 提取大小为所述获取的位置信息中的大小的数据以提取所述第一硬件的驱 动程序文件。 According to the offset address in the obtained position information, extract data with a size of the size in the obtained position information from the position of the driver file corresponding to the offset address to extract the first Hardware driver files.
5、 如权利要求 1至 4任一项所述的方法, 其特征在于, 在检测到所述用户终端中 尚未安装所述第一硬件的驱动程序后, 从所述安装文件中的驱动文件中获取所述第一 硬件对应的驱动程序文件之前, 所述方法还包括: 5. The method according to any one of claims 1 to 4, characterized in that, after detecting that the driver of the first hardware has not been installed in the user terminal, from the driver file in the installation file Before obtaining the driver file corresponding to the first hardware, the method further includes:
显示第一提示框, 以告知所述用户终端的用户所述用户终端中尚未安装所述第一 硬件的驱动程序, 并询问用户是否需要安装所述第一硬件的驱动程序; Display a first prompt box to inform the user of the user terminal that the driver of the first hardware has not yet been installed in the user terminal, and ask the user whether the driver of the first hardware needs to be installed;
所述从所述安装文件中的驱动文件中获取所述第一硬件对应的驱动程序文件包 括: The obtaining the driver file corresponding to the first hardware from the driver file in the installation file includes:
在接收到用户指示安装所述第一硬件的驱动程序的指令后, 从所述安装文件中的 驱动文件中获取所述第一硬件对应的驱动程序文件。 After receiving the user's instruction to install the driver of the first hardware, the driver file corresponding to the first hardware is obtained from the driver files in the installation file.
6、 如权利要求 1-5任一项所述的方法, 其特征在于, 在所述安装文件中, 所述驱 动文件以动态链接库 DLL文件的形式存在。 6. The method according to any one of claims 1 to 5, characterized in that, in the installation file, the driver file exists in the form of a dynamic link library DLL file.
7、 如权利要求 1-6任一项所述的方法, 其特征在于, 所述第一硬件为网卡。 7. The method according to any one of claims 1 to 6, characterized in that the first hardware is a network card.
8、 一种客户端装置, 其特征在于, 8. A client device, characterized by:
所述客户端装置安装在用户终端中, 所述用户终端获取所述客户端装置的安装文 件并通过所述安装文件安装所述客户端装置, 所述客户端装置的安装文件中设置有驱 动文件, 所述用户终端中设置有第一硬件, 所述驱动文件中包括所述第一硬件对应的 驱动程序文件; The client device is installed in a user terminal, the user terminal obtains the installation file of the client device and installs the client device through the installation file, and the installation file of the client device is provided with a driver file. , the user terminal is provided with first hardware, and the driver file includes a driver file corresponding to the first hardware;
所述客户端装置包括: The client device includes:
检测模块, 用于检测所述用户终端中是否已经安装所述第一硬件的驱动程序; 获取模块, 用于在所述检测模块检测到所述用户终端中尚未安装所述第一硬件的 驱动程序时, 从所述安装文件中的驱动文件中获取所述第一硬件对应的驱动程序文件; 安装模块, 用于根据所述获取模块获取的第一硬件对应的驱动程序文件, 在所述 用户终端中安装所述第一硬件的驱动程序。 A detection module, configured to detect whether the driver of the first hardware has been installed in the user terminal; An acquisition module configured to acquire the driver file corresponding to the first hardware from the driver file in the installation file when the detection module detects that the driver of the first hardware has not been installed in the user terminal. ; An installation module, configured to install the driver of the first hardware in the user terminal according to the driver file corresponding to the first hardware obtained by the acquisition module.
9、 如权利要求 8所述的客户端装置, 其特征在于, 9. The client device according to claim 8, characterized in that,
所述驱动文件中包括至少两个驱动程序文件, 所述驱动程序文件与至少一种硬件 相对应, 且每种硬件对应至少一个驱动程序文件; The driver file includes at least two driver files, the driver files correspond to at least one kind of hardware, and each type of hardware corresponds to at least one driver file;
所述驱动文件中还包括每个驱动程序文件适用的操作***信息和该驱动程序文件 适用的硬件的硬件信息; The driver file also includes operating system information applicable to each driver file and hardware information of the hardware applicable to the driver file;
所述获取模块包括: The acquisition module includes:
获取子模块, 用于获取所述第一硬件的硬件信息和所述用户终端的操作***信息; 提取子模块, 用于根据所述获取子模块获取的硬件信息和所述操作***信息、 所 述驱动文件中包括的驱动程序文件适用的操作***信息和该驱动程序文件适用的硬件 的硬件信息, 从所述安装文件中的驱动文件中提取适用于安装在所述用户终端的所述 第一硬件的驱动程序文件。 The acquisition sub-module is used to acquire the hardware information of the first hardware and the operating system information of the user terminal; the extraction sub-module is used to acquire the hardware information and the operating system information according to the acquisition sub-module, the The operating system information applicable to the driver file included in the driver file and the hardware information of the hardware applicable to the driver file are extracted from the driver file in the installation file and applicable to the first hardware installed on the user terminal. driver file.
10、 如权利要求 9所述的客户端装置, 其特征在于, 10. The client device according to claim 9, characterized in that,
所述驱动文件中包括文件头信息, 所述文件头信息中设置有与所述驱动程序文件 对应的驱动程序项, 每个驱动程序文件适用的操作***信息和该驱动程序文件适用的 硬件的硬件信息被标记在该驱动程序文件对应的驱动程序项中; The driver file includes file header information, and the file header information is provided with driver items corresponding to the driver file, operating system information applicable to each driver file and hardware of the hardware applicable to the driver file. The information is marked in the driver entry corresponding to the driver file;
所述驱动程序文件对应的驱动程序项中还标记有该驱动程序文件在所述驱动文件 中的位置信息; The driver item corresponding to the driver file is also marked with the location information of the driver file in the driver file;
所述提取子模块包括: The extraction sub-module includes:
确定单元, 用于根据所述获取子模块获取的硬件信息和所述操作***信息, 扫描 所述文件头信息以确定所标记的操作***信息与所述获取的操作***信息相同且所标 记的硬件信息与所述获取的硬件信息相匹配的驱动程序项; Determining unit, configured to scan the file header information according to the hardware information and the operating system information obtained by the obtaining sub-module to determine that the marked operating system information is the same as the obtained operating system information and the marked hardware Driver items whose information matches the obtained hardware information;
位置获取单元, 用于获取所述确定单元确定的驱动程序项标记的位置信息; 提取单元, 用于根据所述位置获取单元获取的位置信息, 从所述驱动文件中提取 所述第一硬件的驱动程序文件。 A location acquisition unit, configured to acquire the location information of the driver item mark determined by the determination unit; an extraction unit, configured to extract the location information of the first hardware from the driver file according to the location information acquired by the location acquisition unit. Driver files.
1 1、 如权利要求 10所述的客户端装置, 其特征在于, 所述位置信息包括驱动程序 文件的大小和该驱动程序文件在所述驱动文件中的偏移地址; 11. The client device according to claim 10, wherein the location information includes the size of the driver file and the offset address of the driver file in the driver file;
所述提取单元具体用于根据所述位置获取单元获取的位置信息中的偏移地址, 从 所述驱动文件的与所述偏移地址对应的位置处, 提取大小为所述位置获取单元获取的 位置信息中的大小的数据以提取所述第一硬件的驱动程序文件。 The extraction unit is specifically configured to, according to the offset address in the location information obtained by the location acquisition unit, extract a size of the size obtained by the location acquisition unit from the position of the driver file corresponding to the offset address. The size data in the location information is used to extract the driver file of the first hardware.
12、 如权利要求 8至 11任一项所述的客户端装置, 其特征在于, 还包括: 显示模块, 用于显示第一提示框, 以告知所述用户终端的用户所述用户终端中尚 未安装所述第一硬件的驱动程序, 并询问用户是否需要安装所述第一硬件的驱动程序; 所述获取模块在接收到用户指示安装所述第一硬件的驱动程序的指令后, 从所述 安装文件中的驱动文件中获取所述第一硬件对应的驱动程序文件。 12. The client device according to any one of claims 8 to 11, further comprising: a display module, configured to display a first prompt box to inform the user of the user terminal that the user terminal has not yet Install the driver of the first hardware, and ask the user whether to install the driver of the first hardware; After receiving the user's instruction to install the driver of the first hardware, the acquisition module obtains the driver from the first hardware. Obtain the driver file corresponding to the first hardware from the driver file in the installation file.
13、 如权利要求 8-12任一项所述的客户端装置, 其特征在于, 在所述安装文件中, 所述驱动文件以动态链接库 DLL文件的形式存在。 13. The client device according to any one of claims 8 to 12, wherein in the installation file, the driver file exists in the form of a dynamic link library DLL file.
14、 如权利要求 8-13任一项所述的客户端装置, 其特征在于, 所述第一硬件为网 卡。 14. The client device according to any one of claims 8-13, wherein the first hardware is a network card.
15、 一种应用程序, 其特征在于, 用于在运行时执行如权利要求 1-7任一项所述的驱 动程序的安装方法。 15. An application program, characterized in that it is used to execute the driver installation method according to any one of claims 1-7 at runtime.
16、 一种存储介质, 其特征在于, 用于存储应用程序, 所述应用程序用于在运行时执 行如权利要求 1-7任一项所述的驱动程序的安装方法。 16. A storage medium, characterized in that it is used to store an application program, and the application program is used to execute the driver installation method according to any one of claims 1-7 at runtime.
PCT/CN2014/082689 2013-12-13 2014-07-22 Installation method of driver program and client apparatus WO2015085774A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310684540.1 2013-12-13
CN201310684540.1A CN104714814A (en) 2013-12-13 2013-12-13 Drive program mounting method and client terminal device

Publications (1)

Publication Number Publication Date
WO2015085774A1 true WO2015085774A1 (en) 2015-06-18

Family

ID=53370588

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082689 WO2015085774A1 (en) 2013-12-13 2014-07-22 Installation method of driver program and client apparatus

Country Status (2)

Country Link
CN (1) CN104714814A (en)
WO (1) WO2015085774A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760242B (en) * 2015-06-19 2018-12-11 深圳怡化电脑股份有限公司 The driver adaptive approach and device of self-service device
CN106055370B (en) * 2016-06-13 2019-07-23 珠海豹趣科技有限公司 Drive programe installation method, device and terminal
CN106095445B (en) * 2016-06-13 2019-08-23 珠海豹趣科技有限公司 Installation method, device and the terminal of driver
CN106383703A (en) * 2016-08-30 2017-02-08 浪潮(北京)电子信息产业有限公司 Hard disk driver loading method and apparatus for linux operation system
CN106325879A (en) * 2016-08-30 2017-01-11 北京金山安全软件有限公司 Method and device for installing driver and electronic equipment
CN110471686A (en) * 2019-08-15 2019-11-19 深圳忆联信息***有限公司 Method, apparatus, computer equipment and the storage medium of automatic downloading driving
CN112000374B (en) * 2020-07-13 2024-01-02 深圳市智微智能软件开发有限公司 USB touch screen replacement method, device, equipment and medium applied to android system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553321A (en) * 2003-06-06 2004-12-08 英业达股份有限公司 Memory controller driving program installing method and system
CN101533353A (en) * 2008-03-14 2009-09-16 英业达股份有限公司 Medium with segmentally loaded drivers and method for segmentally loading thereof
CN102768628A (en) * 2012-06-19 2012-11-07 Tcl集团股份有限公司 Method and device for preinstallation of third party application

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1229717C (en) * 1999-06-10 2005-11-30 神达电脑股份有限公司 Automatic installation of driver program for personal computer
CN1211735C (en) * 2002-06-26 2005-07-20 联想(北京)有限公司 Hardware equipment drive program installing method and computer therefor
US20070101342A1 (en) * 2005-10-31 2007-05-03 Microsoft Corporation Automated device driver management
CN101382894B (en) * 2007-09-05 2013-09-04 北京软通科技有限责任公司 Method, device and system for downloading computer hardware device driver
CN101430647A (en) * 2008-12-02 2009-05-13 北京中星微电子有限公司 Hardware equipment and its drive installation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553321A (en) * 2003-06-06 2004-12-08 英业达股份有限公司 Memory controller driving program installing method and system
CN101533353A (en) * 2008-03-14 2009-09-16 英业达股份有限公司 Medium with segmentally loaded drivers and method for segmentally loading thereof
CN102768628A (en) * 2012-06-19 2012-11-07 Tcl集团股份有限公司 Method and device for preinstallation of third party application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHANGJIANG ET AL.: "Displaying Talent for Reinstalling System Driver Genius 2008 Use Skill", CPCFAN, 15 March 2008 (2008-03-15), pages 43 *

Also Published As

Publication number Publication date
CN104714814A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
WO2015085774A1 (en) Installation method of driver program and client apparatus
US20170185431A1 (en) Method and apparatus for dynamically implementing application function
US9032423B2 (en) Dependency based configuration package activation
WO2018121442A1 (en) Method and device for processing software information, storage medium, and electronic device
US20130024854A1 (en) Information processing apparatus and controlling method thereof
US9952849B2 (en) Apparatus, information processing system, method for processing information, and program
WO2015096506A1 (en) Method and apparatus for providing driving information
US20150067671A1 (en) Information processing apparatus, control method, and storage medium
US9983791B2 (en) System management controller and method of configuration file backup and recovery
WO2011085647A1 (en) Method and apparatus for detecting software installation
US10506122B2 (en) Information processing apparatus and method for controlling the same
EP1717700A2 (en) Multimedia devices with enhanced functionality
US10430130B2 (en) Information processing system, information processing method
JP2009524121A (en) Dynamic billboard service before system operation
CN107528718B (en) Method, device and system for acquiring resources
WO2014089734A1 (en) Terminal and application program restoration method
WO2017186066A1 (en) Software management method and apparatus
US9916149B2 (en) Information processing apparatus, control method for information processing apparatus, and storage medium of program for executing control method
US20160092281A1 (en) Information processing apparatus, method for controlling the same, and storage medium
US20170024202A1 (en) Information processing apparatus, method, and program
EP3113060B1 (en) Method and apparatus for determining behaviour information corresponding to dangerous file
WO2018006884A1 (en) Method, device and user terminal for software installation
US8949588B1 (en) Mobile telephone as bootstrap device
US9910662B2 (en) Selectively migrating applications during an operating system upgrade
US20160277477A1 (en) Information processing apparatus, terminal device, information processing method, and non-transitory computer readable recording medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14869246

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14869246

Country of ref document: EP

Kind code of ref document: A1