WO2018040746A1 - Driver installation method, device, and electronic apparatus - Google Patents

Driver installation method, device, and electronic apparatus Download PDF

Info

Publication number
WO2018040746A1
WO2018040746A1 PCT/CN2017/092355 CN2017092355W WO2018040746A1 WO 2018040746 A1 WO2018040746 A1 WO 2018040746A1 CN 2017092355 W CN2017092355 W CN 2017092355W WO 2018040746 A1 WO2018040746 A1 WO 2018040746A1
Authority
WO
WIPO (PCT)
Prior art keywords
installation package
driver
hardware device
device information
hardware
Prior art date
Application number
PCT/CN2017/092355
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 WO2018040746A1 publication Critical patent/WO2018040746A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a method and device for installing a driver, and an electronic device.
  • the so-called driver refers to a hardware device (for example, a printer, a network card, a sound card, etc.) driver, which is a special program that enables a computer and a hardware device to communicate.
  • the operating system of the computer can control the operation of the hardware device through the driver. If the driver for a hardware device is not installed, the hardware device will not work properly.
  • the way to install the driver can be divided into an online installation and an offline installation.
  • the online installation generally uploads the hardware device information to the server, and then downloads and installs the driver information returned by the server; and the offline installation is a large number. After the common driver installation package is packaged, copy it to your computer and install the driver for the hardware device.
  • the embodiment of the invention provides a method and a device for installing a driver and an electronic device, which can realize the installation of the driver by combining the offline installation package and the server, thereby providing the installation efficiency of the driver.
  • a first aspect of the embodiments of the present invention provides a method for installing a driver, including:
  • the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment
  • the second hardware device information is represented as being based on the current hardware environment.
  • the information of the hardware device that drives the installation package does not exist in the offline installation package.
  • the obtaining, in the offline installation package, the driver installation package corresponding to the first hardware device information in the current hardware environment including:
  • the current hardware environment includes at least one hardware device information that does not have a driver installed;
  • the obtaining, in the offline installation package, the driver installation package corresponding to the first hardware device information in the current hardware environment including:
  • the current hardware environment includes at least one hardware device information of an installed driver
  • the sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server includes:
  • the installing includes:
  • it also includes:
  • the offline installation package is updated according to the update data.
  • a second aspect of the embodiments of the present invention provides a device for installing a driver, including:
  • a first obtaining unit configured to obtain, in an offline installation package, a driver installation package corresponding to the first hardware device information in a current hardware environment
  • a second acquiring unit configured to acquire second hardware device information in the current hardware environment
  • a third acquiring unit configured to: when the network connection is detected, send the second hardware device information to the server, and receive a driver installation package corresponding to the second hardware device information returned by the server;
  • a driver installation unit configured to install a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information
  • the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment
  • the second hardware device information is represented as being based on the current hardware environment.
  • the information of the hardware device that drives the installation package does not exist in the offline installation package.
  • the first acquiring unit includes:
  • a first information acquiring unit configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed;
  • the first installation package obtaining unit is configured to search for and obtain a driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one uninstalled driver.
  • the first acquiring unit includes:
  • a second information acquiring unit configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information of the installed driver
  • a first version number obtaining unit configured to search for and obtain a first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one installed driver;
  • a second installation package obtaining unit configured to acquire an update driver installation package corresponding to the first version number if a current version number of the installed driver corresponding to the first hardware device information is lower than the first version number .
  • the third obtaining unit includes:
  • a second version number obtaining unit configured to: when the network connection is detected, send the second hardware device information to the server, and receive an update driver installation package corresponding to the second hardware device information returned by the server Second version number;
  • a third installation package obtaining unit configured to acquire an update driver installation package corresponding to the second version number if a current version number of the installed driver corresponding to the second hardware device information is lower than the second version number .
  • the driver installation unit is specifically configured to install an update driver installation package corresponding to the first hardware device information and an update driver installation package corresponding to the second hardware device information.
  • it also includes:
  • a request sending unit configured to: when the network connection is detected, send an update request for the offline installation package to the server, and receive update data of the offline installation package returned by the server;
  • an installation package update unit configured to update the offline installation package according to the update data.
  • a third aspect of the embodiments of the present invention provides an electronic device, the server including a processor and a memory, wherein the memory is configured to store executable program code; the processor reads the memory by reading the memory The executable code to run the program corresponding to the executable code to perform the following steps:
  • the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment
  • the second hardware device information is represented as being based on the current hardware environment.
  • the information of the hardware device that drives the installation package does not exist in the offline installation package.
  • the embodiment of the present invention further provides a storage medium for storing an application, where the application is used to execute a method for installing a driver provided by an embodiment of the present invention.
  • an embodiment of the present invention provides an application program for performing a method for installing a driver provided by an embodiment of the present invention.
  • the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • FIG. 1 is a schematic flowchart of a method for installing a driver according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for installing a driver according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another method for installing a driver according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a device for installing a driver according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another apparatus for installing a driver according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a first acquiring unit according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another first acquiring unit according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a third acquiring unit according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the installation method of the driver provided by the embodiment of the present invention can be applied to a driver installation scenario of a hardware device in a computer, for example, obtaining a driver installation package corresponding to the first hardware device information in a current hardware environment of the computer in an offline installation package; Acquiring the second hardware device information in the current hardware environment; when detecting the network connection, sending the second hardware device information to the server, and receiving the driver installation corresponding to the second hardware device information returned by the server And installing a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information.
  • the installation of the driver of the hardware device is realized, and the installation of the driver is incomplete due to the separate installation package, and the server is not connected due to the separate use of the server.
  • the network causes the driver to be unable to be installed, which improves the efficiency of installing the driver.
  • the server involved in the embodiment of the present invention may be a background device for installing a driver or the like, and the electronic device involved It can be any device with storage and communication functions, such as: tablet, mobile phone, personal computer (PC), laptop, car device, network TV, etc.
  • the installation device of the driver involved can be any A device with storage and communication capabilities, or a driver installation module embedded in any device with storage and communication capabilities.
  • FIG. 1 is a schematic flowchart diagram of a method for installing a driver according to an embodiment of the present invention. As shown in FIG. 1, the method of the embodiment of the present invention may include the following steps S101 to S104.
  • the installation device of the driver acquires, in the offline installation package, a driver installation package corresponding to the first hardware device information in the current hardware environment, where the first hardware device information is represented as being based on the current hardware environment.
  • Information about the hardware devices that drive the installation package exists in the offline installation package.
  • the current hardware environment may include information of a hardware device on which the driver has been installed, in which case the installation device of the driver acquires, from the offline installation package, the hardware device information corresponding to the installed driver.
  • the driver installation package, the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information.
  • the current hardware environment may include information of a hardware device not having a driver installed, in which case the installing device of the driver acquires the hardware device with the driver not installed from the offline installation package
  • the driver installation package corresponding to the information, and the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information.
  • the offline installation package contains driver installation packages related to various hardware devices, which enables the driver installation package to be obtained from the offline installation package without connecting to the network.
  • the hardware device information may include, but is not limited to, operating system version information, a hardware identification code
  • the operating system version information may include UNIX, LINUX, Windows, Apple operating system (Mac OS X), and Symbian operation.
  • the hardware identification can be through hardware type, hardware
  • the name and/or hardware identification code indicates, for example, a hard disk identification code (ID) indicating a hardware identification, a media access control (MAC) address indicating a network card identification, and the like.
  • ID hard disk identification code
  • MAC media access control
  • the installation device of the driver acquires the second hardware device information in the current hardware environment.
  • the second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is Information of the hardware device other than the first hardware device information.
  • the installation device of the driver sends the acquired second hardware device information to the server, so that the server searches for a driver installation package corresponding to the second hardware device information, and The server returns the found driver installation package to the installation device of the driver, and correspondingly, the driver installation device receives the driver installation package returned by the server.
  • the driver installation package not found in the offline installation package can be obtained from the server to install the driver of each hardware device in the current hardware environment.
  • the driver installation package returned by the server may be fed back through a link or a web address, so that the installation device of the driver can download the driver installation package through the returned link or network, after the download is completed. Install the driver installation package.
  • the installation device of the driver installs the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • the embodiment of the present invention does not limit the sequence before and after the installation of the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • the installation device of the driver performs the installation of the driver installation package corresponding to the first hardware device information after performing the step S101 to obtain the driver installation package corresponding to the first hardware device information, or
  • the installation device of the driver installs the driver installation package corresponding to the second hardware device information after receiving the driver installation package fed back by the server.
  • the installation device of the driver completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
  • the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • FIG. 2 is a schematic flowchart diagram of another method for installing a driver according to an embodiment of the present invention. As shown in FIG. 2, the method in the embodiment of the present invention may include the following steps S201 to S207.
  • the installation device of the driver acquires a current hardware environment, and the current hardware environment includes at least one hardware device information that does not have a driver installed.
  • the hardware device information may include, but is not limited to, operating system version information, a hardware identifier, and the operating system version information may include UNIX, LINUX, Windows, Mac OS X, Symbian, Android, Kylin OS, and the like.
  • Identification information of each version for example, Windows 7 64-bit representation of operating system version information; the hardware identification may be represented by a hardware type, a hardware name, and/or a hardware identification code, for example, a hard disk ID indicating a hardware identification, and a MAC address representation Network card identification, etc.
  • the installation device of the driver searches for and acquires a driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one driver not installed.
  • the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the installation device of the driver acquires the offline installation package.
  • the driver installation package corresponding to the hardware device information of the driver is not installed, and the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information.
  • the installation device of the driver acquires the second hardware device information in the current hardware environment.
  • the second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is The information of the hardware device other than the first hardware device information, that is, the second hardware device information is information including a hardware device that is not found in the offline installation package and that does not have a driver installed.
  • the installation device of the driver sends the acquired second hardware device information to the server, so that the server searches for a driver installation package corresponding to the second hardware device information, and The server returns the found driver installation package to the installation device of the driver, and correspondingly, the driver installation device receives the driver installation package returned by the server.
  • the driver installation package not found in the offline installation package can be obtained from the server to install the driver of each hardware device in the current hardware environment.
  • the second hardware device information is automatically sent to the server, which enhances the intelligence and convenience of the driver installation.
  • the driver installation package returned by the server may be fed back through a link or a web address, so that the installation device of the driver can download the driver installation package by using the returned link or the web address, after the download is completed. Install the driver installation package.
  • the installation device of the driver installs the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • the embodiment of the present invention does not limit the sequence before and after the installation of the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • the installation device of the driver performs the installation of the driver installation package corresponding to the first hardware device information after performing the step S202 to obtain the driver installation package corresponding to the first hardware device information, or
  • the installation device of the driver installs the driver installation package corresponding to the second hardware device information after receiving the driver installation package fed back by the server.
  • the installation device of the driver completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
  • the installation device of the driver when the network connection is detected, sends an update request for the offline installation package to the server, so that the server returns the update data of the offline installation package.
  • the server since the offline installation package includes a driver installation package corresponding to each hardware device information, after sending an update request of the offline installation package to the server, the server may package the latest version of the driver installation package of each hardware device into an update. Data is sent to the installation device of the driver, the installation device of the driver receives update data of the offline installation package returned by the server, and the installation device of the driver updates the offline installation package.
  • the installation device of the driver updates the offline installation package according to the update data.
  • the installation device of the driver detects the version number of the driver installation package corresponding to each hardware device information in the updated update data, and the version number of the driver installation package that is fed back is higher than the current version number in the offline installation package.
  • the update step is not performed; and, when the driver installation package corresponding to the hardware device information does not exist in the offline installation package, the driver installation package is saved to the offline installation package. .
  • the installation device of the driver can obtain as many driver installation packages corresponding to the first hardware device information from the offline installation package, and can ensure The obtained driver installation package is updated to the latest version, which is more convenient for users to use and enhance user stickiness.
  • the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Service The device sends the second hardware device information, and receives the driver installation package corresponding to the second hardware device information returned by the server, and installs the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • Service The device sends the second hardware device information, and receives the driver installation package corresponding to the second hardware device information returned by the server, and installs the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • FIG. 3 is a schematic flowchart diagram of another method for installing a driver according to an embodiment of the present invention. As shown in FIG. 3, the method in the embodiment of the present invention may include the following steps S301 to S307.
  • the driver installation device acquires a current hardware environment, and the current hardware environment includes at least one hardware device information of the installed driver.
  • the hardware device information may include, but is not limited to, operating system version information, a hardware identifier, and the operating system version information may include UNIX, LINUX, Windows, Mac OS X, Symbian, Android, Kylin OS, and the like.
  • Identification information of each version for example, Windows 7 64-bit representation of operating system version information; the hardware identification may be represented by a hardware type, a hardware name, and/or a hardware identification code, for example, a hard disk ID indicating a hardware identification, and a MAC address representation Network card identification, etc.
  • the installation device of the driver searches for and obtains the first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one installed driver.
  • the update driver installation package is the highest version number corresponding to the first hardware device information, and the most popular version or the most stable version of the driver installation package, regardless of the situation, The installation device of the driver obtains the first version number corresponding to the update driver installation package.
  • the installation device of the driver acquires the update driver installation corresponding to the first version number.
  • the package is updated to complete the driver installation package corresponding to the first hardware device information.
  • the installing device of the driver does not perform the step of acquiring a driver installation package.
  • the installation device of the driver acquires the second hardware device information in the current hardware environment.
  • the second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is The information of the hardware device other than the first hardware device information, that is, the second hardware device information is information including a hardware device that is not found in the offline installation package and has the driver installed.
  • the installing device of the driver when detecting the network connection, sends the second hardware device information to the server, so that the server searches for an update driver installation package corresponding to the second hardware device information. a second version number, and the server returns the second version number of the updated update driver installation package to the installation device of the driver, and correspondingly, the installation device of the driver receives the second returned by the server version number.
  • the update driver installation package is the driver version package of the highest version number corresponding to the second hardware device information, and the most popular version or the most stable version of the driver installation package, in either case, The installation device of the driver acquires a second version number corresponding to the update driver installation package.
  • the second hardware device information is automatically sent to the server, which enhances the intelligence and convenience of the driver installation.
  • the installation device of the driver acquires the update driver installation corresponding to the second version number.
  • the package is updated to complete the driver installation package corresponding to the first hardware device information.
  • the driver installation package obtained by the installation device of the driver to the server may download the update driver installation package by means of a link or a web address.
  • the installing device of the driver does not perform the step of obtaining an update driver installation package.
  • the installation device of the driver installs an update driver installation package corresponding to the first hardware device information and an update driver installation package corresponding to the second hardware device information.
  • the embodiment of the present invention does not limit the sequence before and after the installation of the update driver installation package corresponding to the first hardware device information and the update driver installation package corresponding to the second hardware device information.
  • the installation device of the driver acquires the first hard in step S303. After the update driver installation package corresponding to the piece of device information, performing an installation of the update driver installation package corresponding to the first hardware device information, or after the installation device of the driver receives the update driver installation package fed back by the server, The update driver installation package corresponding to the second hardware device information is installed.
  • the installation device of the driver completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
  • the installation device of the driver can obtain as many driver installation packages corresponding to the first hardware device information from the offline installation package, and can ensure The obtained driver installation package is updated to the latest version, which is more convenient for users to use and enhance user stickiness.
  • the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • the hardware device update driver for the installed driver is realized, which avoids the incomplete update of the driver due to the separate installation package, and the use of the server alone. Failure to connect to the network results in an inability to update the driver and improves the efficiency of updating the driver.
  • FIG. 4 is a schematic structural diagram of a device for installing a driver according to an embodiment of the present invention.
  • the installation apparatus 1 of the driver of the embodiment of the present invention may include: a first acquisition unit 11, a second acquisition unit 12, a third acquisition unit 13, and a drive installation unit 14.
  • the first obtaining unit 11 is configured to obtain, in the offline installation package, a driver installation package corresponding to the first hardware device information in the current hardware environment.
  • the first acquiring unit 11 acquires, in an offline installation package, a driver installation package corresponding to the first hardware device information in the current hardware environment, where the first hardware device information is represented as being based on the current hardware environment.
  • Information about the hardware device that drives the installation package exists in the offline installation package.
  • the current hardware environment may include information of a hardware device on which the driver has been installed.
  • the first obtaining unit 11 acquires, from the offline installation package, the hardware device information corresponding to the installed driver.
  • the driver installation package, the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information.
  • the current hardware environment may include information of a hardware device not having a driver installed, in which case the first obtaining unit 11 acquires the hardware device with the driver not installed from the offline installation package.
  • the driver installation package corresponding to the information, and the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information.
  • the offline installation package contains driver installation packages related to various hardware devices, which enables the driver installation package to be obtained from the offline installation package without connecting to the network to implement the driver. installation.
  • the hardware device information may include, but is not limited to, operating system version information, a hardware identifier, and the operating system version information may include UNIX, LINUX, Windows, Mac OS X, Symbian, Android, Kylin OS, and the like.
  • Identification information of each version for example, Windows 7 64-bit representation of operating system version information; the hardware identification may be represented by a hardware type, a hardware name, and/or a hardware identification code, for example, a hard disk ID indicating a hardware identification, and a MAC address representation Network card identification, etc.
  • the second obtaining unit 12 is configured to acquire second hardware device information in the current hardware environment.
  • the second acquiring unit 12 acquires the second hardware device information in the current hardware environment.
  • the second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is Information of the hardware device other than the first hardware device information.
  • the third obtaining unit 13 is configured to: when the network connection is detected, send the second hardware device information to the server, and receive a driver installation package corresponding to the second hardware device information returned by the server.
  • the third acquiring unit 13 sends the acquired second hardware device information to the server, so that the server searches for the driver installation package corresponding to the second hardware device information, and The server returns the found driver installation package to the installation device 1 of the driver, and correspondingly, the third acquisition unit 13 receives the driver installation package returned by the server.
  • the driver installation package not found in the offline installation package can be obtained from the server to install the driver of each hardware device in the current hardware environment.
  • the driver installation package returned by the server may be fed back through a link or a web address, so that the third obtaining unit 13 may download the driver installation package through the returned link or network, after the download is completed. Install the driver installation package.
  • the driver installation unit 14 is configured to install the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • the driver installation unit 14 installs a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information.
  • the embodiment of the present invention does not limit the sequence before and after the installation of the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • the driver installation unit 14 after the first acquisition unit 11 acquires the driver installation package corresponding to the first hardware device information, the driver installation unit 14 performs installation of the driver installation package corresponding to the first hardware device information.
  • the driver installation unit 14 installs the driver installation package corresponding to the second hardware device information after receiving the driver installation package fed back by the server.
  • the installation device 1 of the driver thus completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
  • the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • FIG. 5 is a schematic structural diagram of another apparatus for installing a driver according to an embodiment of the present invention.
  • the installation apparatus 1 of the driver of the embodiment of the present invention may include: a first acquisition unit 11, a second acquisition unit 12, a third acquisition unit 13, a driver installation unit 14, a request transmission unit 15, The data receiving unit 16 and the package update unit 17.
  • the first obtaining unit 11 is configured to obtain, in the offline installation package, a driver installation package corresponding to the first hardware device information in the current hardware environment.
  • the first acquiring unit 11 includes a first information acquiring unit 111 and a first installation package acquiring unit 112. Please refer to Figure 6 for details.
  • the first information acquiring unit 111 is configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed.
  • the first information acquiring unit 111 acquires a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed.
  • the hardware device information may include, but is not limited to, operating system version information, a hardware identifier, and the operating system version information may include UNIX, LINUX, Windows, Mac OS X, Symbian, Android, Kylin OS, and the like.
  • Identification information of each version for example, Windows 7 64-bit representation of operating system version information; the hardware identification may be represented by a hardware type, a hardware name, and/or a hardware identification code, for example, a hard disk ID indicating a hardware identification, and a MAC address representation Network card identification, etc.
  • the first installation package obtaining unit 112 is configured to search for and obtain a driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one uninstalled driver.
  • the first installation package obtaining unit 112 searches for and acquires a driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one driver that is not installed.
  • the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the first installation package acquiring unit 112 is from the offline installation package.
  • Obtaining a driver installation package corresponding to the hardware device information of the uninstalled driver, and the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information.
  • the first acquiring unit 11 includes a first information acquiring unit 113, a first version number obtaining unit 114, and a second installation package acquiring unit 115. Please refer to Figure 7 for details.
  • the second information acquiring unit 113 is configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information of the installed driver.
  • the second information acquiring unit 113 acquires a current hardware environment, where the current hardware environment includes at least one hardware device information of the installed driver.
  • the first version number obtaining unit 114 is configured to search for and obtain the first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one installed driver;
  • the first version number obtaining unit 114 searches for and obtains the first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one installed driver.
  • the update driver installation package is the highest version number corresponding to the first hardware device information, and the most popular version or the most stable version of the driver installation package in the offline installation package, regardless of the situation.
  • the first version number obtaining unit 114 acquires a first version number corresponding to the update driver installation package.
  • the second installation package obtaining unit 115 is configured to acquire an update driver installation corresponding to the first version number if the current version number of the installed driver corresponding to the first hardware device information is lower than the first version number package.
  • the second installation package obtaining unit 115 acquires the update corresponding to the first version number.
  • the installation package is driven to complete the update of the driver installation package corresponding to the first hardware device information.
  • the second installation package obtaining unit 115 does not perform the step of acquiring the driver installation package. .
  • the second obtaining unit 12 is configured to acquire second hardware device information in the current hardware environment.
  • the second acquiring unit 12 acquires the second hardware device information in the current hardware environment.
  • the second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is The information of the hardware device other than the first hardware device information, that is, the second hardware device information is information including a hardware device that is not found in the offline installation package and that does not have a driver installed.
  • the third obtaining unit 13 is configured to: when the network connection is detected, send the second hardware device information to the server, and receive a driver installation package corresponding to the second hardware device information returned by the server.
  • the third obtaining unit 13 sends the acquired second hardware device information to the server, so that the server searches Driving the installation package corresponding to the second hardware device information, and the server returns the found driver installation package to the driver
  • the device 1 is installed, and accordingly, the first acquisition unit 11 receives a driver installation package returned by the server.
  • the driver installation package not found in the offline installation package can be obtained from the server to install the driver of each hardware device in the current hardware environment.
  • the driver installation package returned by the server may be fed back through a link or a web address, so that the third obtaining unit 13 may download the driver installation package by using the returned link or the web address, after the download is completed. Install the driver installation package.
  • the third obtaining unit 13 includes a second version number obtaining unit 131 and a third installation package acquiring unit 132. Please refer to Figure 8 for details.
  • the second version number obtaining unit 131 is configured to: when the network connection is detected, send the second hardware device information to the server, and receive an update driver installation package corresponding to the second hardware device information returned by the server Second version number;
  • the second version number obtaining unit 131 sends the second hardware device information to the server, so that the server searches for an update driver installation corresponding to the second hardware device information. a second version number of the package, and the server returns the second version number of the updated driver installation package to the installation device 1 of the driver, and correspondingly, the second version number acquisition unit 131 receives the The second version number returned by the server.
  • the update driver installation package is the driver version package of the highest version number corresponding to the second hardware device information, and the most popular version or the most stable version of the driver installation package, in either case,
  • the second version number obtaining unit 131 acquires a second version number corresponding to the update driver installation package.
  • the third installation package obtaining unit 132 is configured to acquire an update driver installation corresponding to the second version number if the current version number of the installed driver corresponding to the second hardware device information is lower than the second version number package.
  • the third installation package obtaining unit 132 acquires the update corresponding to the second version number.
  • the installation package is driven to complete the update of the driver installation package corresponding to the first hardware device information.
  • the driver installation package acquired by the third installation package obtaining unit 132 to the server may be to download the update driver installation package by means of a link or a web address.
  • the third installation package obtaining unit 132 does not perform the process of acquiring the update driver installation package. step.
  • the driver installation unit 14 is configured to install the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • the driver installation unit 14 drives the installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. Install it.
  • the driving installation unit 14 is specifically configured to An update driver installation package corresponding to the hardware device information and an update driver installation package corresponding to the second hardware device information are installed.
  • the sequence before and after the installation of the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information is not limited.
  • the driver installation unit 14 performs installation of the driver installation package corresponding to the first hardware device information, or After receiving the driver installation package fed back by the server, installing the driver installation package corresponding to the second hardware device information.
  • the installation device 1 of the driver thus completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
  • the request sending unit 15 is configured to send an update request for the offline installation package to the server when the network connection is detected.
  • the request sending unit 15 sends an update request for the offline installation package to the server, so that the server returns the update data of the offline installation package.
  • the server since the offline installation package includes a driver installation package corresponding to each hardware device information, after sending an update request of the offline installation package to the server, the server may package the latest version of the driver installation package of each hardware device into an update. The data is sent to the mounting device 1 of the driver.
  • the data receiving unit 16 is configured to receive update data of the offline installation package returned by the server.
  • the data receiving unit 16 receives the update data of the offline installation package returned by the server.
  • the installation package updating unit 17 is configured to update the offline installation package according to the update data.
  • the installation package updating unit 17 updates the offline installation package according to the update data.
  • the installation package updating unit 17 detects the version number of the driver installation package corresponding to each hardware device information in the feedback update data, and the version number of the driven driver installation package is higher than the current version number in the offline installation package.
  • the update step is not performed; and, when the driver installation package corresponding to the hardware device information does not exist in the offline installation package, the driver installation package is saved to the offline installation package. .
  • the installation device 1 of the driver can acquire as many driver installation packages corresponding to the first hardware device information from the offline installation package in the network unconnected state, and can Ensure that the driver installation package obtained is updated to the latest version, which is more convenient for users to use and enhance user stickiness.
  • the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
  • the driver is installed for the driver hardware device not installed, the driver installation is incomplete due to the offline installation package alone, and the server is used separately.
  • the failure to connect to the network results in the inability to install the driver, which improves the efficiency of the driver installation.
  • FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device 1000 may include at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 can include a display and a keyboard.
  • the optional user interface 1003 can also include a standard wired interface and a wireless interface.
  • the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 1005 can also optionally be at least one storage device located remotely from the aforementioned processor 1001.
  • a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a driver installation application.
  • the user interface 1003 is mainly used to provide an input interface for the user, and obtains an operation request of the user for the driver; and the processor 1001 can be used to call the installation of the driver stored in the memory 1005.
  • the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment
  • the second hardware device information is represented as being based on the current hardware environment.
  • the information of the hardware device that drives the installation package does not exist in the offline installation package.
  • the processor 1001 obtains a driver installation package corresponding to the first hardware device information in the current hardware environment in the offline installation package, and specifically performs the following steps:
  • the current hardware environment includes at least one hardware device information that does not have a driver installed;
  • the processor 1001 obtains the driver installation package corresponding to the first hardware device information in the current hardware environment in the offline installation package, and specifically performs the following steps:
  • the current hardware environment includes at least one hardware device information of an installed driver
  • the processor 1001 sends the second hardware device information to the server when the network connection is detected, and receives the driver corresponding to the second hardware device information returned by the server. Install the package and perform the following steps:
  • the processor 1001 is configured to install the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information, and specifically perform the following steps:
  • the processor 1001 also performs the following steps:
  • the offline installation package is updated according to the update data.
  • the module or unit in the embodiment of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).
  • a general-purpose integrated circuit such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).
  • modules or units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

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

Abstract

A driver installation method, device, and electronic apparatus. The method comprises the following steps: acquiring, from an offline installation package, a driver installation package corresponding to first hardware apparatus information in a present hardware environment (S101); acquiring second hardware apparatus information in the present hardware environment (S102); upon detecting a network connection, transmitting to a server the second hardware apparatus information, and receiving a driver installation package corresponding to the second hardware apparatus information responded from the server (S103); and installing the driver installation package corresponding to the first hardware apparatus information and the driver installation package corresponding to the second hardware apparatus information (S104). The method combines an offline installation package and a server to realize installation of drivers, thereby enhancing efficiency of driver installation.

Description

一种驱动程序的安装方法及装置、电子设备Driver installation method and device, electronic device
相关申请的交叉引用Cross-reference to related applications
本申请要求北京金山安全软件有限公司于2016年08月30日提交的、发明名称为“一种驱动程序的安装方法及装置、电子设备”的、中国专利申请号“201610772740.6”的优先权。This application claims the priority of the Chinese patent application No. "201610772740.6", which was filed on August 30, 2016 by Beijing Jinshan Security Software Co., Ltd., entitled "A Method and Apparatus for Installing a Driver, Electronic Equipment".
技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种驱动程序的安装方法及装置、电子设备。The present invention relates to the field of electronic technologies, and in particular, to a method and device for installing a driver, and an electronic device.
背景技术Background technique
所谓驱动程序,是指硬件设备(例如、打印机、网卡、声卡等)驱动程序,是一种可以使计算机和硬件设备通信的特殊程序,计算机的操作***通过驱动程序才能控制硬件设备的工作。如果某个硬件设备的驱动程序未安装,该硬件设备将不能正常工作。而现有技术中,安装驱动程序的方式可以分为在线安装和离线安装,在线安装一般是通过上传硬件设备信息至服务器,然后对服务器返回的驱动信息进行下载、安装;而离线安装是将大量常用驱动安装包打包后,复制到计算机上,并安装适合硬件设备的驱动程序。但是,对于计算机没有连接网络的情况,则无法使用在线安装的方式安装驱动程序,若采用离线安装的方式,由于打包的驱动安装包的数量有限,且一个驱动安装包并不能支持不同型号、不同厂家的硬件设备,因此离线安装的方式很有可能因为缺少部分硬件设备的驱动程序而导致无法使用该硬件设备,影响了对驱动程序的安装效率。The so-called driver refers to a hardware device (for example, a printer, a network card, a sound card, etc.) driver, which is a special program that enables a computer and a hardware device to communicate. The operating system of the computer can control the operation of the hardware device through the driver. If the driver for a hardware device is not installed, the hardware device will not work properly. In the prior art, the way to install the driver can be divided into an online installation and an offline installation. The online installation generally uploads the hardware device information to the server, and then downloads and installs the driver information returned by the server; and the offline installation is a large number. After the common driver installation package is packaged, copy it to your computer and install the driver for the hardware device. However, if the computer is not connected to the network, you cannot use the online installation method to install the driver. If the offline installation method is adopted, the number of packaged driver installation packages is limited, and one driver installation package cannot support different models and different types. The hardware device of the manufacturer, so the way of offline installation is likely to be unable to use the hardware device due to the lack of drivers for some hardware devices, which affects the installation efficiency of the driver.
发明内容Summary of the invention
本发明实施例提供一种驱动程序的安装方法及装置、电子设备,能够通过将离线安装包和服务器两者结合,实现对驱动程序的安装,进而提供对驱动程序的安装效率。The embodiment of the invention provides a method and a device for installing a driver and an electronic device, which can realize the installation of the driver by combining the offline installation package and the server, thereby providing the installation efficiency of the driver.
本发明实施例第一方面提供了一种驱动程序的安装方法,包括:A first aspect of the embodiments of the present invention provides a method for installing a driver, including:
在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包;Obtaining a driver installation package corresponding to the first hardware device information in the current hardware environment in the offline installation package;
获取所述当前硬件环境下的第二硬件设备信息;Obtaining second hardware device information in the current hardware environment;
当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包;When the network connection is detected, sending the second hardware device information to the server, and receiving a driver installation package corresponding to the second hardware device information returned by the server;
对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装; Installing a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information;
其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。The first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the second hardware device information is represented as being based on the current hardware environment. The information of the hardware device that drives the installation package does not exist in the offline installation package.
可选的,所述在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,包括:Optionally, the obtaining, in the offline installation package, the driver installation package corresponding to the first hardware device information in the current hardware environment, including:
获取当前硬件环境,所述当前硬件环境包括至少一个未安装驱动程序的硬件设备信息;Obtaining a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed;
基于所述至少一个未安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的驱动安装包。And searching for and acquiring the driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one driver not installed.
可选的,所述在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,包括:Optionally, the obtaining, in the offline installation package, the driver installation package corresponding to the first hardware device information in the current hardware environment, including:
获取当前硬件环境,所述当前硬件环境包括至少一个已安装驱动程序的硬件设备信息;Obtaining a current hardware environment, where the current hardware environment includes at least one hardware device information of an installed driver;
基于所述至少一个已安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的更新驱动安装包的第一版本号;Searching for and acquiring the first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package, based on the hardware device information of the at least one installed driver;
若所述第一硬件设备信息对应的已安装驱动程序的当前版本号低于所述第一版本号,则获取所述第一版本号对应的更新驱动安装包。And if the current version number of the installed driver corresponding to the first hardware device information is lower than the first version number, acquiring an update driver installation package corresponding to the first version number.
可选的,所述当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包,包括:Optionally, when the network connection is detected, the sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, includes:
当检测到网络连接时,向所述服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的更新驱动安装包的第二版本号;When the network connection is detected, sending the second hardware device information to the server, and receiving a second version number of the update driver installation package corresponding to the second hardware device information returned by the server;
若所述第二硬件设备信息对应的已安装驱动程序的当前版本号低于所述第二版本号,则获取所述第二版本号对应的更新驱动安装包。And if the current version number of the installed driver corresponding to the second hardware device information is lower than the second version number, acquiring an update driver installation package corresponding to the second version number.
可选的,所述对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装,包括:Optionally, the installing, by the driver installation package corresponding to the first hardware device information, the driver installation package corresponding to the second hardware device information, includes:
对所述第一硬件设备信息对应的更新驱动安装包和所述第二硬件设备信息对应的更新驱动安装包进行安装。And installing an update driver installation package corresponding to the first hardware device information and an update driver installation package corresponding to the second hardware device information.
可选的,还包括:Optionally, it also includes:
当检测到网络连接时,向所述服务器发送针对所述离线安装包的更新请求,并接收所述服务器返回的所述离线安装包的更新数据;When detecting a network connection, sending an update request for the offline installation package to the server, and receiving update data of the offline installation package returned by the server;
根据所述更新数据对所述离线安装包进行更新。The offline installation package is updated according to the update data.
本发明实施例第二方面提供了一种驱动程序的安装装置,其特征在于,包括:A second aspect of the embodiments of the present invention provides a device for installing a driver, including:
第一获取单元,用于在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包; a first obtaining unit, configured to obtain, in an offline installation package, a driver installation package corresponding to the first hardware device information in a current hardware environment;
第二获取单元,用于获取所述当前硬件环境下的第二硬件设备信息;a second acquiring unit, configured to acquire second hardware device information in the current hardware environment;
第三获取单元,用于当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包;a third acquiring unit, configured to: when the network connection is detected, send the second hardware device information to the server, and receive a driver installation package corresponding to the second hardware device information returned by the server;
驱动安装单元,用于对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装;a driver installation unit, configured to install a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information;
其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。The first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the second hardware device information is represented as being based on the current hardware environment. The information of the hardware device that drives the installation package does not exist in the offline installation package.
可选的,所述第一获取单元包括:Optionally, the first acquiring unit includes:
第一信息获取单元,用于获取当前硬件环境,所述当前硬件环境包括至少一个未安装驱动程序的硬件设备信息;a first information acquiring unit, configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed;
第一安装包获取单元,用于基于所述至少一个未安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的驱动安装包。The first installation package obtaining unit is configured to search for and obtain a driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one uninstalled driver.
可选的,所述第一获取单元包括:Optionally, the first acquiring unit includes:
第二信息获取单元,用于获取当前硬件环境,所述当前硬件环境包括至少一个已安装驱动程序的硬件设备信息;a second information acquiring unit, configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information of the installed driver;
第一版本号获取单元,用于基于所述至少一个已安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的更新驱动安装包的第一版本号;a first version number obtaining unit, configured to search for and obtain a first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one installed driver;
第二安装包获取单元,用于若所述第一硬件设备信息对应的已安装驱动程序的当前版本号低于所述第一版本号,则获取所述第一版本号对应的更新驱动安装包。a second installation package obtaining unit, configured to acquire an update driver installation package corresponding to the first version number if a current version number of the installed driver corresponding to the first hardware device information is lower than the first version number .
可选的,所述第三获取单元包括:Optionally, the third obtaining unit includes:
第二版本号获取单元,用于当检测到网络连接时,向所述服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的更新驱动安装包的第二版本号;a second version number obtaining unit, configured to: when the network connection is detected, send the second hardware device information to the server, and receive an update driver installation package corresponding to the second hardware device information returned by the server Second version number;
第三安装包获取单元,用于若所述第二硬件设备信息对应的已安装驱动程序的当前版本号低于所述第二版本号,则获取所述第二版本号对应的更新驱动安装包。a third installation package obtaining unit, configured to acquire an update driver installation package corresponding to the second version number if a current version number of the installed driver corresponding to the second hardware device information is lower than the second version number .
可选的,所述驱动安装单元具体用于对所述第一硬件设备信息对应的更新驱动安装包和所述第二硬件设备信息对应的更新驱动安装包进行安装。Optionally, the driver installation unit is specifically configured to install an update driver installation package corresponding to the first hardware device information and an update driver installation package corresponding to the second hardware device information.
可选的,还包括:Optionally, it also includes:
请求发送单元,用于当检测到网络连接时,向所述服务器发送针对所述离线安装包的更新请求,并接收所述服务器返回的所述离线安装包的更新数据;a request sending unit, configured to: when the network connection is detected, send an update request for the offline installation package to the server, and receive update data of the offline installation package returned by the server;
安装包更新单元,用于根据所述更新数据对所述离线安装包进行更新。 And an installation package update unit, configured to update the offline installation package according to the update data.
本发明实施例第三方面提供了一种电子设备,所述服务器包括处理器和存储器,其特征在于,所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以执行以下步骤:A third aspect of the embodiments of the present invention provides an electronic device, the server including a processor and a memory, wherein the memory is configured to store executable program code; the processor reads the memory by reading the memory The executable code to run the program corresponding to the executable code to perform the following steps:
在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包;Obtaining a driver installation package corresponding to the first hardware device information in the current hardware environment in the offline installation package;
获取所述当前硬件环境下的第二硬件设备信息;Obtaining second hardware device information in the current hardware environment;
当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包;When the network connection is detected, sending the second hardware device information to the server, and receiving a driver installation package corresponding to the second hardware device information returned by the server;
对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装;Installing a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information;
其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。The first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the second hardware device information is represented as being based on the current hardware environment. The information of the hardware device that drives the installation package does not exist in the offline installation package.
第四方面,本发明实施例还提供了一种存储介质,用于存储应用程序,所述应用程序用于执行本发明实施例所提供的一种驱动程序的安装方法。In a fourth aspect, the embodiment of the present invention further provides a storage medium for storing an application, where the application is used to execute a method for installing a driver provided by an embodiment of the present invention.
第五方面,本发明实施例还提供了一种应用程序,用于执行本发明实施例所提供的一种驱动程序的安装方法。In a fifth aspect, an embodiment of the present invention provides an application program for performing a method for installing a driver provided by an embodiment of the present invention.
在本发明实施例中,通过在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,再获取当前硬件环境下的第二硬件设备信息,当检测到网络连接时,向服务器发送第二硬件设备信息,并接收服务器返回的第二硬件设备信息对应的驱动安装包,对第一硬件设备信息对应的驱动安装包和第二硬件设备信息对应的驱动安装包进行安装。这样通过将离线安装包和服务器两者结合,实现了对驱动程序的安装,同时避免了由于单独采用离线安装包导致驱动程序安装不完整的情况发生,以及由于单独采用服务器却未连接网络导致无法安装驱动程序的情况发生,提高了对驱动程序的安装效率。In the embodiment of the present invention, the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. This achieves the installation of the driver by combining the offline installation package and the server, while avoiding the incomplete installation of the driver due to the separate installation package, and the failure to connect to the network due to the separate server. The installation of the driver occurs, improving the efficiency of the driver installation.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例提供的一种驱动程序的安装方法的流程示意图;1 is a schematic flowchart of a method for installing a driver according to an embodiment of the present invention;
图2是本发明实施例提供的另一种驱动程序的安装方法的流程示意图;2 is a schematic flowchart of another method for installing a driver according to an embodiment of the present invention;
图3是本发明实施例提供的另一种驱动程序的安装方法的流程示意图; 3 is a schematic flowchart of another method for installing a driver according to an embodiment of the present invention;
图4是本发明实施例提供的一种驱动程序的安装装置的结构示意图;4 is a schematic structural diagram of a device for installing a driver according to an embodiment of the present invention;
图5是本发明实施例提供的另一种驱动程序的安装装置的结构示意图;FIG. 5 is a schematic structural diagram of another apparatus for installing a driver according to an embodiment of the present invention; FIG.
图6是本发明实施例提供的一种第一获取单元的结构示意图;FIG. 6 is a schematic structural diagram of a first acquiring unit according to an embodiment of the present disclosure;
图7是本发明实施例提供的另一种第一获取单元的结构示意图;FIG. 7 is a schematic structural diagram of another first acquiring unit according to an embodiment of the present disclosure;
图8是本发明实施例提供的一种第三获取单元的结构示意图;FIG. 8 is a schematic structural diagram of a third acquiring unit according to an embodiment of the present disclosure;
图9是本发明实施例提供的一种电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括所述形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。另外,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terminology used in the embodiments of the present invention is for the purpose of describing the particular embodiments, and is not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. In addition, the terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present invention and the above drawings are used to distinguish different objects, and are not intended to describe specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
本发明实施例提供的驱动程序的安装方法可以应用于计算机中硬件设备的驱动程序安装场景,例如:在离线安装包中获取计算机的当前硬件环境下的第一硬件设备信息对应的驱动安装包;获取所述当前硬件环境下的第二硬件设备信息;当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包;对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装。这样通过将离线安装包和服务器两者结合,实现了对硬件设备的驱动程序的安装,同时避免了由于单独采用离线安装包导致驱动程序安装不完整的情况发生,以及由于单独采用服务器却未连接网络导致无法安装驱动程序的情况发生,提高了对驱动程序的安装效率。The installation method of the driver provided by the embodiment of the present invention can be applied to a driver installation scenario of a hardware device in a computer, for example, obtaining a driver installation package corresponding to the first hardware device information in a current hardware environment of the computer in an offline installation package; Acquiring the second hardware device information in the current hardware environment; when detecting the network connection, sending the second hardware device information to the server, and receiving the driver installation corresponding to the second hardware device information returned by the server And installing a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information. In this way, by combining the offline installation package and the server, the installation of the driver of the hardware device is realized, and the installation of the driver is incomplete due to the separate installation package, and the server is not connected due to the separate use of the server. The network causes the driver to be unable to be installed, which improves the efficiency of installing the driver.
本发明实施例涉及的服务器可以是为安装驱动程序等服务的后台设备,所涉及的电子设 备可以是任何具备存储和通信功能的设备,例如:平板电脑、手机、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视等设备;所涉及的驱动程序的安装装置可以是任何具备存储和通信功能的设备,也可以是嵌入于任何具备存储和通信功能的设备中驱动程序安装模块。The server involved in the embodiment of the present invention may be a background device for installing a driver or the like, and the electronic device involved It can be any device with storage and communication functions, such as: tablet, mobile phone, personal computer (PC), laptop, car device, network TV, etc. The installation device of the driver involved can be any A device with storage and communication capabilities, or a driver installation module embedded in any device with storage and communication capabilities.
下面将结合附图1-附图2,对本发明实施例提供的驱动程序的安装方法进行详细介绍。The method for installing the driver provided by the embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
请参见图1,为本发明实施例提供了一种驱动程序的安装方法的流程示意图。如图1所示,本发明实施例的所述方法可以包括以下步骤S101-步骤S104。FIG. 1 is a schematic flowchart diagram of a method for installing a driver according to an embodiment of the present invention. As shown in FIG. 1, the method of the embodiment of the present invention may include the following steps S101 to S104.
S101,在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包。S101. Obtain a driver installation package corresponding to the first hardware device information in the current hardware environment in the offline installation package.
具体的,驱动程序的安装装置在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息。所述当前硬件环境可以包括已安装驱动程序的硬件设备的信息,在这一情况下,所述驱动程序的安装装置从所述离线安装包中获取与所述已安装驱动程序的硬件设备信息对应的驱动安装包,在离线安装包中找到的驱动安装包对应的硬件设备的信息为第一硬件设备信息。或者,所述当前硬件环境可以包括未安装驱动程序的硬件设备的信息,在这一情况下,所述驱动程序的安装装置从所述离线安装包中获取与所述未安装驱动程序的硬件设备信息对应的驱动安装包,在离线安装包中找到的驱动安装包对应的硬件设备的信息为第一硬件设备信息。在离线安装包中包含了与各类硬件设备相关的驱动安装包,能够实现在未连接网络的情况下从离线安装包中获取驱动安装包以实现对驱动程序的安装。Specifically, the installation device of the driver acquires, in the offline installation package, a driver installation package corresponding to the first hardware device information in the current hardware environment, where the first hardware device information is represented as being based on the current hardware environment. Information about the hardware devices that drive the installation package exists in the offline installation package. The current hardware environment may include information of a hardware device on which the driver has been installed, in which case the installation device of the driver acquires, from the offline installation package, the hardware device information corresponding to the installed driver. The driver installation package, the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information. Alternatively, the current hardware environment may include information of a hardware device not having a driver installed, in which case the installing device of the driver acquires the hardware device with the driver not installed from the offline installation package The driver installation package corresponding to the information, and the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information. The offline installation package contains driver installation packages related to various hardware devices, which enables the driver installation package to be obtained from the offline installation package without connecting to the network.
可选的,所述硬件设备信息可以包括但不限定于操作***版本信息、硬件识别码,所述操作***版本信息可以包括UNIX、LINUX、Windows、苹果操作***(Mac OS X)、塞班操作***(Symbian)、安卓操作***(Android)、银河麒麟操作***(Kylin OS)等中各个版本的标识信息,例如,通过Windows7 64位表示操作***版本信息;所述硬件标识可以通过硬件类型、硬件名称和/或硬件识别码表示,例如,通过硬盘识别码(Identificati,ID)表示硬件标识、通过介质访问控制(Media Access Control,MAC)地址表示网卡标识等。Optionally, the hardware device information may include, but is not limited to, operating system version information, a hardware identification code, and the operating system version information may include UNIX, LINUX, Windows, Apple operating system (Mac OS X), and Symbian operation. Identification information of each version in the system (Symbian), Android operating system (Android), Galaxy Kylin OS (Kylin OS), etc., for example, Windows 7 64-bit representation of operating system version information; the hardware identification can be through hardware type, hardware The name and/or hardware identification code indicates, for example, a hard disk identification code (ID) indicating a hardware identification, a media access control (MAC) address indicating a network card identification, and the like.
S102,获取所述当前硬件环境下的第二硬件设备信息。S102. Acquire second hardware device information in the current hardware environment.
具体的,所述驱动程序的安装装置获取所述当前硬件环境下的第二硬件设备信息。其中,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。由于所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,因此,所述第二硬件设备信息表示所述当前硬件环境中除所述第一硬件设备信息之外的硬件设备的信息。 Specifically, the installation device of the driver acquires the second hardware device information in the current hardware environment. The second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is Information of the hardware device other than the first hardware device information.
S103,当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包。S103. When the network connection is detected, send the second hardware device information to the server, and receive a driver installation package corresponding to the second hardware device information returned by the server.
具体的,当检测到网络连接时,所述驱动程序的安装装置向服务器发送获取的所述第二硬件设备信息,以使所述服务器查找所述第二硬件设备信息对应的驱动安装包,且所述服务器将查找到的驱动安装包返回到所述驱动程序的安装装置,相应地,所述驱动程序的安装装置接收所述服务器返回的驱动程序安装包。这样可以从服务器获取在离线安装包中未找到的驱动安装包,以实现对当前硬件环境下的各个硬件设备的驱动程序进行安装。Specifically, when the network connection is detected, the installation device of the driver sends the acquired second hardware device information to the server, so that the server searches for a driver installation package corresponding to the second hardware device information, and The server returns the found driver installation package to the installation device of the driver, and correspondingly, the driver installation device receives the driver installation package returned by the server. In this way, the driver installation package not found in the offline installation package can be obtained from the server to install the driver of each hardware device in the current hardware environment.
可行的方案中,所述服务器返回的驱动安装包可以是通过链接、网址的方式反馈,这样所述驱动程序的安装装置可通过所返回的链接或者网络对驱动安装包进行下载,在下载完成之后对所述驱动安装包进行安装。In a feasible solution, the driver installation package returned by the server may be fed back through a link or a web address, so that the installation device of the driver can download the driver installation package through the returned link or network, after the download is completed. Install the driver installation package.
S104,对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装。S104. Install a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information.
具体的,所述驱动程序的安装装置对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装。其中,本发明实施例对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包的安装前后顺序不做限定。可行的方案中,所述驱动程序的安装装置在执行步骤S101获取到第一硬件设备信息对应的驱动安装包之后,执行对所述第一硬件设备信息对应的驱动安装包进行安装,或者,所述驱动程序的安装装置在接收到服务器反馈的驱动安装包之后,对所述第二硬件设备信息对应的驱动安装包进行安装。这样所述驱动程序的安装装置通过将离线安装包和服务器两者结合,完成了对当前硬件环境下的驱动程序的安装。Specifically, the installation device of the driver installs the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. The embodiment of the present invention does not limit the sequence before and after the installation of the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. In a feasible solution, the installation device of the driver performs the installation of the driver installation package corresponding to the first hardware device information after performing the step S101 to obtain the driver installation package corresponding to the first hardware device information, or The installation device of the driver installs the driver installation package corresponding to the second hardware device information after receiving the driver installation package fed back by the server. Thus, the installation device of the driver completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
在本发明实施例中,通过在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,再获取当前硬件环境下的第二硬件设备信息,当检测到网络连接时,向服务器发送第二硬件设备信息,并接收服务器返回的第二硬件设备信息对应的驱动安装包,对第一硬件设备信息对应的驱动安装包和第二硬件设备信息对应的驱动安装包进行安装。这样通过将离线安装包和服务器两者结合,实现了对驱动程序的安装,同时避免了由于单独采用离线安装包导致驱动程序安装不完整的情况发生,以及由于单独采用服务器却未连接网络导致无法安装驱动程序的情况发生,提高了对驱动程序的安装效率。In the embodiment of the present invention, the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. This achieves the installation of the driver by combining the offline installation package and the server, while avoiding the incomplete installation of the driver due to the separate installation package, and the failure to connect to the network due to the separate server. The installation of the driver occurs, improving the efficiency of the driver installation.
请参见图2,为本发明实施例提供了另一种驱动程序的安装方法的流程示意图。如图2所示,本发明实施例的所述方法可以包括以下步骤S201-步骤S207。FIG. 2 is a schematic flowchart diagram of another method for installing a driver according to an embodiment of the present invention. As shown in FIG. 2, the method in the embodiment of the present invention may include the following steps S201 to S207.
S201,获取当前硬件环境,所述当前硬件环境包括至少一个未安装驱动程序的硬件设备信息。 S201. Acquire a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed.
具体的,驱动程序的安装装置获取当前硬件环境,所述当前硬件环境包括至少一个未安装驱动程序的硬件设备信息。可选的,所述硬件设备信息可以包括但不限定于操作***版本信息、硬件识别码,所述操作***版本信息可以包括UNIX、LINUX、Windows、Mac OS X、Symbian、Android、Kylin OS等中各个版本的标识信息,例如,通过Windows7 64位表示操作***版本信息;所述硬件标识可以通过硬件类型、硬件名称和/或硬件识别码表示,例如,通过硬盘ID表示硬件标识、通过MAC地址表示网卡标识等。Specifically, the installation device of the driver acquires a current hardware environment, and the current hardware environment includes at least one hardware device information that does not have a driver installed. Optionally, the hardware device information may include, but is not limited to, operating system version information, a hardware identifier, and the operating system version information may include UNIX, LINUX, Windows, Mac OS X, Symbian, Android, Kylin OS, and the like. Identification information of each version, for example, Windows 7 64-bit representation of operating system version information; the hardware identification may be represented by a hardware type, a hardware name, and/or a hardware identification code, for example, a hard disk ID indicating a hardware identification, and a MAC address representation Network card identification, etc.
S202,基于所述至少一个未安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的驱动安装包。S202. Search for and obtain a driver installation package corresponding to the first hardware device information in the offline installation package, based on the hardware device information of the at least one driver that is not installed.
具体的,所述驱动程序的安装装置基于所述至少一个未安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的驱动安装包。其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,所述驱动程序的安装装置从所述离线安装包中获取与所述未安装驱动程序的硬件设备信息对应的驱动安装包,在离线安装包中找到的驱动安装包对应的硬件设备的信息为第一硬件设备信息。Specifically, the installation device of the driver searches for and acquires a driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one driver not installed. The first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the installation device of the driver acquires the offline installation package. The driver installation package corresponding to the hardware device information of the driver is not installed, and the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information.
S203,获取所述当前硬件环境下的第二硬件设备信息。S203. Acquire second hardware device information in the current hardware environment.
具体的,所述驱动程序的安装装置获取所述当前硬件环境下的第二硬件设备信息。其中,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。由于所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,因此,所述第二硬件设备信息表示所述当前硬件环境中除所述第一硬件设备信息之外的硬件设备的信息,即所述第二硬件设备信息是包括在离线安装包中未找到且未安装驱动程序的硬件设备的信息。Specifically, the installation device of the driver acquires the second hardware device information in the current hardware environment. The second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is The information of the hardware device other than the first hardware device information, that is, the second hardware device information is information including a hardware device that is not found in the offline installation package and that does not have a driver installed.
S204,当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包。S204. When the network connection is detected, send the second hardware device information to the server, and receive a driver installation package corresponding to the second hardware device information returned by the server.
具体的,当检测到网络连接时,所述驱动程序的安装装置向服务器发送获取的所述第二硬件设备信息,以使所述服务器查找所述第二硬件设备信息对应的驱动安装包,且所述服务器将查找到的驱动安装包返回到所述驱动程序的安装装置,相应地,所述驱动程序的安装装置接收所述服务器返回的驱动程序安装包。这样可以从服务器获取在离线安装包中未找到的驱动安装包,以实现对当前硬件环境下的各个硬件设备的驱动程序进行安装。Specifically, when the network connection is detected, the installation device of the driver sends the acquired second hardware device information to the server, so that the server searches for a driver installation package corresponding to the second hardware device information, and The server returns the found driver installation package to the installation device of the driver, and correspondingly, the driver installation device receives the driver installation package returned by the server. In this way, the driver installation package not found in the offline installation package can be obtained from the server to install the driver of each hardware device in the current hardware environment.
可行的方案中,在通过离线安装包在获取到第一硬件设备信息对应的驱动安装包,并获取到当前硬件环境下的第二硬件设备信息之后,对所述驱动程序的安装装置检测网络连接,一旦检测到网络连接时,自动向服务器发送第二硬件设备信息,增强了驱动程序安装的智能性和便捷性。 In a feasible solution, after obtaining the driver installation package corresponding to the first hardware device information through the offline installation package, and acquiring the second hardware device information in the current hardware environment, detecting the network connection to the installation device of the driver When the network connection is detected, the second hardware device information is automatically sent to the server, which enhances the intelligence and convenience of the driver installation.
可行的方案中,所述服务器返回的驱动安装包可以是通过链接、网址的方式反馈,这样所述驱动程序的安装装置可通过所返回的链接或者网址对驱动安装包进行下载,在下载完成之后对所述驱动安装包进行安装。In a feasible solution, the driver installation package returned by the server may be fed back through a link or a web address, so that the installation device of the driver can download the driver installation package by using the returned link or the web address, after the download is completed. Install the driver installation package.
S205,对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装。S205. Install a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information.
具体的,所述驱动程序的安装装置对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装。其中,本发明实施例对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包的安装前后顺序不做限定。可行的方案中,所述驱动程序的安装装置在执行步骤S202获取到第一硬件设备信息对应的驱动安装包之后,执行对所述第一硬件设备信息对应的驱动安装包进行安装,或者,所述驱动程序的安装装置在接收到服务器反馈的驱动安装包之后,对所述第二硬件设备信息对应的驱动安装包进行安装。这样所述驱动程序的安装装置通过将离线安装包和服务器两者结合,完成了对当前硬件环境下的驱动程序的安装。Specifically, the installation device of the driver installs the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. The embodiment of the present invention does not limit the sequence before and after the installation of the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. In a feasible solution, the installation device of the driver performs the installation of the driver installation package corresponding to the first hardware device information after performing the step S202 to obtain the driver installation package corresponding to the first hardware device information, or The installation device of the driver installs the driver installation package corresponding to the second hardware device information after receiving the driver installation package fed back by the server. Thus, the installation device of the driver completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
S206,当检测到网络连接时,向所述服务器发送针对所述离线安装包的更新请求,并接收所述服务器返回的所述离线安装包的更新数据。S206. When detecting a network connection, send an update request for the offline installation package to the server, and receive update data of the offline installation package returned by the server.
具体的,当检测到网络连接时,所述驱动程序的安装装置向所述服务器发送针对所述离线安装包的更新请求,以使所述服务器返回所述离线安装包的更新数据。可行的方案中,由于所述离线安装包包括各个硬件设备信息对应的驱动安装包,在向服务器发送离线安装包的更新请求之后,服务器可以将各个硬件设备的最新版本的驱动安装包打包为更新数据,发送至所述驱动程序的安装装置,所述驱动程序的安装装置接收所述服务器返回的所述离线安装包的更新数据,所述驱动程序的安装装置对所述离线安装包的更新。Specifically, when the network connection is detected, the installation device of the driver sends an update request for the offline installation package to the server, so that the server returns the update data of the offline installation package. In a feasible solution, since the offline installation package includes a driver installation package corresponding to each hardware device information, after sending an update request of the offline installation package to the server, the server may package the latest version of the driver installation package of each hardware device into an update. Data is sent to the installation device of the driver, the installation device of the driver receives update data of the offline installation package returned by the server, and the installation device of the driver updates the offline installation package.
S207,根据所述更新数据对所述离线安装包进行更新。S207. Update the offline installation package according to the update data.
具体的,所述驱动程序的安装装置根据所述更新数据对所述离线安装包进行更新。可行的方案中,所述驱动程序的安装装置检测反馈的更新数据中各个硬件设备信息对应的驱动安装包的版本号,当反馈的驱动安装包的版本号高于离线安装包中当前的版本号时,对该驱动安装包进行更新,否则,不执行更新步骤;以及,在离线安装包中不存在的硬件设备信息对应的驱动安装包时,将该驱动安装包保存至所述离线安装包中。通过对离线安装包的更新,使得在网络未连接状态,所述驱动程序的安装装置能够从所述离线安装包中获取到尽可能多的第一硬件设备信息对应的驱动安装包,并能够保证所获取的驱动安装包是更新到最新版本,更加方便用户使用,增强用户粘性。Specifically, the installation device of the driver updates the offline installation package according to the update data. In a feasible solution, the installation device of the driver detects the version number of the driver installation package corresponding to each hardware device information in the updated update data, and the version number of the driver installation package that is fed back is higher than the current version number in the offline installation package. When the driver installation package is updated, otherwise, the update step is not performed; and, when the driver installation package corresponding to the hardware device information does not exist in the offline installation package, the driver installation package is saved to the offline installation package. . By updating the offline installation package, in the unconnected state of the network, the installation device of the driver can obtain as many driver installation packages corresponding to the first hardware device information from the offline installation package, and can ensure The obtained driver installation package is updated to the latest version, which is more convenient for users to use and enhance user stickiness.
在本发明实施例中,通过在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,再获取当前硬件环境下的第二硬件设备信息,当检测到网络连接时,向服务 器发送第二硬件设备信息,并接收服务器返回的第二硬件设备信息对应的驱动安装包,对第一硬件设备信息对应的驱动安装包和第二硬件设备信息对应的驱动安装包进行安装。这样通过将离线安装包和服务器两者结合,实现了对未安装驱动程序硬件设备安装驱动程序,避免了由于单独采用离线安装包导致驱动程序安装不完整的情况发生,以及由于单独采用服务器却未连接网络导致无法安装驱动程序的情况发生,提高了对驱动程序的安装效率。In the embodiment of the present invention, the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Service The device sends the second hardware device information, and receives the driver installation package corresponding to the second hardware device information returned by the server, and installs the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. In this way, by combining the offline installation package and the server, the driver is installed for the driver hardware device that is not installed, and the driver installation is incomplete due to the offline installation package alone, and the server is not used alone. Connecting to the network results in the inability to install drivers and improves the efficiency of installing drivers.
请参见图3,为本发明实施例提供了另一种驱动程序的安装方法的流程示意图。如图3所示,本发明实施例的所述方法可以包括以下步骤S301-步骤S307。FIG. 3 is a schematic flowchart diagram of another method for installing a driver according to an embodiment of the present invention. As shown in FIG. 3, the method in the embodiment of the present invention may include the following steps S301 to S307.
S301,获取当前硬件环境,所述当前硬件环境包括至少一个已安装驱动程序的硬件设备信息。S301. Acquire a current hardware environment, where the current hardware environment includes hardware device information of at least one installed driver.
具体的,驱动程序的安装装置获取当前硬件环境,所述当前硬件环境包括至少一个已安装驱动程序的硬件设备信息。可选的,所述硬件设备信息可以包括但不限定于操作***版本信息、硬件识别码,所述操作***版本信息可以包括UNIX、LINUX、Windows、Mac OS X、Symbian、Android、Kylin OS等中各个版本的标识信息,例如,通过Windows7 64位表示操作***版本信息;所述硬件标识可以通过硬件类型、硬件名称和/或硬件识别码表示,例如,通过硬盘ID表示硬件标识、通过MAC地址表示网卡标识等。Specifically, the driver installation device acquires a current hardware environment, and the current hardware environment includes at least one hardware device information of the installed driver. Optionally, the hardware device information may include, but is not limited to, operating system version information, a hardware identifier, and the operating system version information may include UNIX, LINUX, Windows, Mac OS X, Symbian, Android, Kylin OS, and the like. Identification information of each version, for example, Windows 7 64-bit representation of operating system version information; the hardware identification may be represented by a hardware type, a hardware name, and/or a hardware identification code, for example, a hard disk ID indicating a hardware identification, and a MAC address representation Network card identification, etc.
S302,基于所述至少一个已安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的更新驱动安装包的第一版本号。S302. Search for and obtain a first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package, based on the hardware device information of the at least one installed driver.
具体的,所述驱动程序的安装装置基于所述至少一个已安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的更新驱动安装包的第一版本号,所述更新驱动安装包在所述离线安装包中是所述第一硬件设备信息对应的最高版本号的、最受用户喜欢的版本或最稳定版本的驱动安装包,不论是哪一种情况,所述驱动程序的安装装置获取更新驱动安装包对应的第一版本号。Specifically, the installation device of the driver searches for and obtains the first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one installed driver. In the offline installation package, the update driver installation package is the highest version number corresponding to the first hardware device information, and the most popular version or the most stable version of the driver installation package, regardless of the situation, The installation device of the driver obtains the first version number corresponding to the update driver installation package.
S303,若所述第一硬件设备信息对应的已安装驱动程序的当前版本号低于所述第一版本号,则获取所述第一版本号对应的更新驱动安装包。S303. If the current version number of the installed driver corresponding to the first hardware device information is lower than the first version number, obtain an update driver installation package corresponding to the first version number.
具体的,若所述第一硬件设备信息对应的已安装驱动程序的当前版本号低于所述第一版本号,则所述驱动程序的安装装置获取所述第一版本号对应的更新驱动安装包,以完成对第一硬件设备信息对应的驱动安装包进行更新。Specifically, if the current version number of the installed driver corresponding to the first hardware device information is lower than the first version number, the installation device of the driver acquires the update driver installation corresponding to the first version number. The package is updated to complete the driver installation package corresponding to the first hardware device information.
可选的,若所述第一硬件设备信息对应的已安装驱动程序的当前版本号不低于所述第一版本号,则所述驱动程序的安装装置不执行获取驱动安装包的步骤。Optionally, if the current version number of the installed driver corresponding to the first hardware device information is not lower than the first version number, the installing device of the driver does not perform the step of acquiring a driver installation package.
S304,获取所述当前硬件环境下的第二硬件设备信息。S304. Acquire second hardware device information in the current hardware environment.
具体的,所述驱动程序的安装装置获取所述当前硬件环境下的第二硬件设备信息。其中, 所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。由于所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,因此,所述第二硬件设备信息表示所述当前硬件环境中除所述第一硬件设备信息之外的硬件设备的信息,即所述第二硬件设备信息是包括在离线安装包中未找到且已安装驱动程序的硬件设备的信息。Specifically, the installation device of the driver acquires the second hardware device information in the current hardware environment. among them, The second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is The information of the hardware device other than the first hardware device information, that is, the second hardware device information is information including a hardware device that is not found in the offline installation package and has the driver installed.
S305,当检测到网络连接时,向所述服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的更新驱动安装包的第二版本号。S305. When the network connection is detected, send the second hardware device information to the server, and receive a second version number of the update driver installation package corresponding to the second hardware device information returned by the server.
具体的,当检测到网络连接时,所述驱动程序的安装装置向所述服务器发送所述第二硬件设备信息,以使所述服务器查找所述第二硬件设备信息对应的更新驱动安装包的第二版本号,且所述服务器将查找到的更新驱动安装包的第二版本号返回到所述驱动程序的安装装置,相应地,所述驱动程序的安装装置接收所述服务器返回的第二版本号。其中,所述更新驱动安装包在所述服务器中是所述第二硬件设备信息对应的最高版本号的、最受用户喜欢的版本或最稳定版本的驱动安装包,不论是哪一种情况,所述驱动程序的安装装置获取更新驱动安装包对应的第二版本号。Specifically, when detecting the network connection, the installing device of the driver sends the second hardware device information to the server, so that the server searches for an update driver installation package corresponding to the second hardware device information. a second version number, and the server returns the second version number of the updated update driver installation package to the installation device of the driver, and correspondingly, the installation device of the driver receives the second returned by the server version number. The update driver installation package is the driver version package of the highest version number corresponding to the second hardware device information, and the most popular version or the most stable version of the driver installation package, in either case, The installation device of the driver acquires a second version number corresponding to the update driver installation package.
可行的方案中,在通过离线安装包在获取到第一硬件设备信息对应的驱动安装包,并获取到当前硬件环境下的第二硬件设备信息之后,对所述驱动程序的安装装置检测网络连接,一旦检测到网络连接时,自动向服务器发送第二硬件设备信息,增强了驱动程序安装的智能性和便捷性。In a feasible solution, after obtaining the driver installation package corresponding to the first hardware device information through the offline installation package, and acquiring the second hardware device information in the current hardware environment, detecting the network connection to the installation device of the driver When the network connection is detected, the second hardware device information is automatically sent to the server, which enhances the intelligence and convenience of the driver installation.
S306,若所述第二硬件设备信息对应的已安装驱动程序的当前版本号低于所述第二版本号,则获取所述第二版本号对应的更新驱动安装包。S306. If the current version number of the installed driver corresponding to the second hardware device information is lower than the second version number, obtain an update driver installation package corresponding to the second version number.
具体的,若所述第二硬件设备信息对应的已安装驱动程序的当前版本号低于所述第二版本号,则所述驱动程序的安装装置获取所述第二版本号对应的更新驱动安装包,以完成对第一硬件设备信息对应的驱动安装包进行更新。可行的方案中,所述驱动程序的安装装置向所述服务器获取的驱动安装包可以是通过链接、网址的方式对更新驱动安装包进行下载。Specifically, if the current version number of the installed driver corresponding to the second hardware device information is lower than the second version number, the installation device of the driver acquires the update driver installation corresponding to the second version number. The package is updated to complete the driver installation package corresponding to the first hardware device information. In a feasible solution, the driver installation package obtained by the installation device of the driver to the server may download the update driver installation package by means of a link or a web address.
可选的,若所述第二硬件设备信息对应的已安装驱动程序的当前版本号不低于所述第二版本号,则所述驱动程序的安装装置不执行获取更新驱动安装包的步骤。Optionally, if the current version number of the installed driver corresponding to the second hardware device information is not lower than the second version number, the installing device of the driver does not perform the step of obtaining an update driver installation package.
S307,对所述第一硬件设备信息对应的更新驱动安装包和所述第二硬件设备信息对应的更新驱动安装包进行安装。S307. Install an update driver installation package corresponding to the first hardware device information and an update driver installation package corresponding to the second hardware device information.
具体的,所述驱动程序的安装装置对所述第一硬件设备信息对应的更新驱动安装包和所述第二硬件设备信息对应的更新驱动安装包进行安装。其中,本发明实施例对所述第一硬件设备信息对应的更新驱动安装包和所述第二硬件设备信息对应的更新驱动安装包的安装前后顺序不做限定。可行的方案中,所述驱动程序的安装装置在执行步骤S303获取到第一硬 件设备信息对应的更新驱动安装包之后,执行对所述第一硬件设备信息对应的更新驱动安装包进行安装,或者,所述驱动程序的安装装置在接收到服务器反馈的更新驱动安装包之后,对所述第二硬件设备信息对应的更新驱动安装包进行安装。这样所述驱动程序的安装装置通过将离线安装包和服务器两者结合,完成了对当前硬件环境下的驱动程序的安装。Specifically, the installation device of the driver installs an update driver installation package corresponding to the first hardware device information and an update driver installation package corresponding to the second hardware device information. The embodiment of the present invention does not limit the sequence before and after the installation of the update driver installation package corresponding to the first hardware device information and the update driver installation package corresponding to the second hardware device information. In a feasible solution, the installation device of the driver acquires the first hard in step S303. After the update driver installation package corresponding to the piece of device information, performing an installation of the update driver installation package corresponding to the first hardware device information, or after the installation device of the driver receives the update driver installation package fed back by the server, The update driver installation package corresponding to the second hardware device information is installed. Thus, the installation device of the driver completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
可选的,当检测到网络连接时,向所述服务器发送针对所述离线安装包的更新请求,并接收所述服务器返回的所述离线安装包的更新数据,并根据所述更新数据对所述离线安装包进行更新。通过对离线安装包的更新,使得在网络未连接状态,所述驱动程序的安装装置能够从所述离线安装包中获取到尽可能多的第一硬件设备信息对应的驱动安装包,并能够保证所获取的驱动安装包是更新到最新版本,更加方便用户使用,增强用户粘性。Optionally, when the network connection is detected, sending an update request for the offline installation package to the server, and receiving update data of the offline installation package returned by the server, and according to the update data The offline installation package is updated. By updating the offline installation package, in the unconnected state of the network, the installation device of the driver can obtain as many driver installation packages corresponding to the first hardware device information from the offline installation package, and can ensure The obtained driver installation package is updated to the latest version, which is more convenient for users to use and enhance user stickiness.
在本发明实施例中,通过在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,再获取当前硬件环境下的第二硬件设备信息,当检测到网络连接时,向服务器发送第二硬件设备信息,并接收服务器返回的第二硬件设备信息对应的驱动安装包,对第一硬件设备信息对应的驱动安装包和第二硬件设备信息对应的驱动安装包进行安装。这样通过将离线安装包和服务器两者结合,实现了对已安装驱动程序的硬件设备更新驱动程序,避免了由于单独采用离线安装包导致驱动程序更新不完整的情况发生,以及由于单独采用服务器却未连接网络导致无法更新驱动程序的情况发生,提高了对驱动程序的更新效率。In the embodiment of the present invention, the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. In this way, by combining the offline installation package and the server, the hardware device update driver for the installed driver is realized, which avoids the incomplete update of the driver due to the separate installation package, and the use of the server alone. Failure to connect to the network results in an inability to update the driver and improves the efficiency of updating the driver.
请参见图4,为本发明实施例提供了一种驱动程序的安装装置的结构示意图。如图4所示,本发明实施例的所述驱动程序的安装装置1可以包括:第一获取单元11、第二获取单元12、第三获取单元13和驱动安装单元14。FIG. 4 is a schematic structural diagram of a device for installing a driver according to an embodiment of the present invention. As shown in FIG. 4, the installation apparatus 1 of the driver of the embodiment of the present invention may include: a first acquisition unit 11, a second acquisition unit 12, a third acquisition unit 13, and a drive installation unit 14.
第一获取单元11,用于在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包。The first obtaining unit 11 is configured to obtain, in the offline installation package, a driver installation package corresponding to the first hardware device information in the current hardware environment.
具体的,所述第一获取单元11在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息。所述当前硬件环境可以包括已安装驱动程序的硬件设备的信息,在这一情况下,所述第一获取单元11从所述离线安装包中获取与所述已安装驱动程序的硬件设备信息对应的驱动安装包,在离线安装包中找到的驱动安装包对应的硬件设备的信息为第一硬件设备信息。或者,所述当前硬件环境可以包括未安装驱动程序的硬件设备的信息,在这一情况下,所述第一获取单元11从所述离线安装包中获取与所述未安装驱动程序的硬件设备信息对应的驱动安装包,在离线安装包中找到的驱动安装包对应的硬件设备的信息为第一硬件设备信息。在离线安装包中包含了与各类硬件设备相关的驱动安装包,能够实现在未连接网络的情况下从离线安装包中获取驱动安装包以实现对驱动程序 的安装。Specifically, the first acquiring unit 11 acquires, in an offline installation package, a driver installation package corresponding to the first hardware device information in the current hardware environment, where the first hardware device information is represented as being based on the current hardware environment. Information about the hardware device that drives the installation package exists in the offline installation package. The current hardware environment may include information of a hardware device on which the driver has been installed. In this case, the first obtaining unit 11 acquires, from the offline installation package, the hardware device information corresponding to the installed driver. The driver installation package, the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information. Alternatively, the current hardware environment may include information of a hardware device not having a driver installed, in which case the first obtaining unit 11 acquires the hardware device with the driver not installed from the offline installation package. The driver installation package corresponding to the information, and the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information. The offline installation package contains driver installation packages related to various hardware devices, which enables the driver installation package to be obtained from the offline installation package without connecting to the network to implement the driver. installation.
可选的,所述硬件设备信息可以包括但不限定于操作***版本信息、硬件识别码,所述操作***版本信息可以包括UNIX、LINUX、Windows、Mac OS X、Symbian、Android、Kylin OS等中各个版本的标识信息,例如,通过Windows7 64位表示操作***版本信息;所述硬件标识可以通过硬件类型、硬件名称和/或硬件识别码表示,例如,通过硬盘ID表示硬件标识、通过MAC地址表示网卡标识等。Optionally, the hardware device information may include, but is not limited to, operating system version information, a hardware identifier, and the operating system version information may include UNIX, LINUX, Windows, Mac OS X, Symbian, Android, Kylin OS, and the like. Identification information of each version, for example, Windows 7 64-bit representation of operating system version information; the hardware identification may be represented by a hardware type, a hardware name, and/or a hardware identification code, for example, a hard disk ID indicating a hardware identification, and a MAC address representation Network card identification, etc.
第二获取单元12,用于获取所述当前硬件环境下的第二硬件设备信息。The second obtaining unit 12 is configured to acquire second hardware device information in the current hardware environment.
具体的,所述第二获取单元12获取所述当前硬件环境下的第二硬件设备信息。其中,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。由于所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,因此,所述第二硬件设备信息表示所述当前硬件环境中除所述第一硬件设备信息之外的硬件设备的信息。Specifically, the second acquiring unit 12 acquires the second hardware device information in the current hardware environment. The second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is Information of the hardware device other than the first hardware device information.
第三获取单元13,用于当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包。The third obtaining unit 13 is configured to: when the network connection is detected, send the second hardware device information to the server, and receive a driver installation package corresponding to the second hardware device information returned by the server.
具体的,当检测到网络连接时,所述第三获取单元13向服务器发送获取的所述第二硬件设备信息,以使所述服务器查找所述第二硬件设备信息对应的驱动安装包,且所述服务器将查找到的驱动安装包返回到所述驱动程序的安装装置1,相应地,所述第三获取单元13接收所述服务器返回的驱动程序安装包。这样可以从服务器获取在离线安装包中未找到的驱动安装包,以实现对当前硬件环境下的各个硬件设备的驱动程序进行安装。Specifically, when the network connection is detected, the third acquiring unit 13 sends the acquired second hardware device information to the server, so that the server searches for the driver installation package corresponding to the second hardware device information, and The server returns the found driver installation package to the installation device 1 of the driver, and correspondingly, the third acquisition unit 13 receives the driver installation package returned by the server. In this way, the driver installation package not found in the offline installation package can be obtained from the server to install the driver of each hardware device in the current hardware environment.
可行的方案中,所述服务器返回的驱动安装包可以是通过链接、网址的方式反馈,这样所述第三获取单元13可通过所返回的链接或者网络对驱动安装包进行下载,在下载完成之后对所述驱动安装包进行安装。In a feasible solution, the driver installation package returned by the server may be fed back through a link or a web address, so that the third obtaining unit 13 may download the driver installation package through the returned link or network, after the download is completed. Install the driver installation package.
驱动安装单元14,用于对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装。The driver installation unit 14 is configured to install the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
具体的,所述驱动安装单元14对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装。其中,本发明实施例对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包的安装前后顺序不做限定。可行的方案中,所述驱动安装单元14在执行所述第一获取单元11获取到第一硬件设备信息对应的驱动安装包之后,执行对所述第一硬件设备信息对应的驱动安装包进行安装,或者,所述驱动安装单元14在接收到服务器反馈的驱动安装包之后,对所述第二硬件设备信息对应的驱动安装包进行安装。这样所述驱动程序的安装装置1通过将离线安装包和服务器两者结合,完成了对当前硬件环境下的驱动程序的安装。 Specifically, the driver installation unit 14 installs a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information. The embodiment of the present invention does not limit the sequence before and after the installation of the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. In a feasible solution, after the first acquisition unit 11 acquires the driver installation package corresponding to the first hardware device information, the driver installation unit 14 performs installation of the driver installation package corresponding to the first hardware device information. Or, the driver installation unit 14 installs the driver installation package corresponding to the second hardware device information after receiving the driver installation package fed back by the server. The installation device 1 of the driver thus completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
在本发明实施例中,通过在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,再获取当前硬件环境下的第二硬件设备信息,当检测到网络连接时,向服务器发送第二硬件设备信息,并接收服务器返回的第二硬件设备信息对应的驱动安装包,对第一硬件设备信息对应的驱动安装包和第二硬件设备信息对应的驱动安装包进行安装。这样通过将离线安装包和服务器两者结合,实现了对驱动程序的安装,同时避免了由于单独采用离线安装包导致驱动程序安装不完整的情况发生,以及由于单独采用服务器却未连接网络导致无法安装驱动程序的情况发生,提高了对驱动程序的安装效率。In the embodiment of the present invention, the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. This achieves the installation of the driver by combining the offline installation package and the server, while avoiding the incomplete installation of the driver due to the separate installation package, and the failure to connect to the network due to the separate server. The installation of the driver occurs, improving the efficiency of the driver installation.
请参见图5,为本发明实施例提供了另一种驱动程序的安装装置的结构示意图。如图5所示,本发明实施例的所述驱动程序的安装装置1可以包括:第一获取单元11、第二获取单元12、第三获取单元13、驱动安装单元14、请求发送单元15、数据接收单元16和安装包更新单元17。FIG. 5 is a schematic structural diagram of another apparatus for installing a driver according to an embodiment of the present invention. As shown in FIG. 5, the installation apparatus 1 of the driver of the embodiment of the present invention may include: a first acquisition unit 11, a second acquisition unit 12, a third acquisition unit 13, a driver installation unit 14, a request transmission unit 15, The data receiving unit 16 and the package update unit 17.
第一获取单元11,用于在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包。The first obtaining unit 11 is configured to obtain, in the offline installation package, a driver installation package corresponding to the first hardware device information in the current hardware environment.
具体的,在第一种可行的方案中,所述第一获取单元11包括第一信息获取单元111和第一安装包获取单元112。具体请一并参见图6。Specifically, in the first feasible solution, the first acquiring unit 11 includes a first information acquiring unit 111 and a first installation package acquiring unit 112. Please refer to Figure 6 for details.
第一信息获取单元111,用于获取当前硬件环境,所述当前硬件环境包括至少一个未安装驱动程序的硬件设备信息。The first information acquiring unit 111 is configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed.
具体的,所述第一信息获取单元111获取当前硬件环境,所述当前硬件环境包括至少一个未安装驱动程序的硬件设备信息。可选的,所述硬件设备信息可以包括但不限定于操作***版本信息、硬件识别码,所述操作***版本信息可以包括UNIX、LINUX、Windows、Mac OS X、Symbian、Android、Kylin OS等中各个版本的标识信息,例如,通过Windows7 64位表示操作***版本信息;所述硬件标识可以通过硬件类型、硬件名称和/或硬件识别码表示,例如,通过硬盘ID表示硬件标识、通过MAC地址表示网卡标识等。Specifically, the first information acquiring unit 111 acquires a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed. Optionally, the hardware device information may include, but is not limited to, operating system version information, a hardware identifier, and the operating system version information may include UNIX, LINUX, Windows, Mac OS X, Symbian, Android, Kylin OS, and the like. Identification information of each version, for example, Windows 7 64-bit representation of operating system version information; the hardware identification may be represented by a hardware type, a hardware name, and/or a hardware identification code, for example, a hard disk ID indicating a hardware identification, and a MAC address representation Network card identification, etc.
第一安装包获取单元112,用于基于所述至少一个未安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的驱动安装包。The first installation package obtaining unit 112 is configured to search for and obtain a driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one uninstalled driver.
具体的,所述第一安装包获取单元112基于所述至少一个未安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的驱动安装包。其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,所述第一安装包获取单元112从所述离线安装包中获取与所述未安装驱动程序的硬件设备信息对应的驱动安装包,在离线安装包中找到的驱动安装包对应的硬件设备的信息为第一硬件设备信息。 Specifically, the first installation package obtaining unit 112 searches for and acquires a driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one driver that is not installed. The first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the first installation package acquiring unit 112 is from the offline installation package. Obtaining a driver installation package corresponding to the hardware device information of the uninstalled driver, and the information of the hardware device corresponding to the driver installation package found in the offline installation package is the first hardware device information.
在第二种可行的方案中,所述第一获取单元11包括第一信息获取单元113、第一版本号获取单元114和第二安装包获取单元115。具体请一并参见图7。In the second feasible solution, the first acquiring unit 11 includes a first information acquiring unit 113, a first version number obtaining unit 114, and a second installation package acquiring unit 115. Please refer to Figure 7 for details.
第二信息获取单元113,用于获取当前硬件环境,所述当前硬件环境包括至少一个已安装驱动程序的硬件设备信息;The second information acquiring unit 113 is configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information of the installed driver.
具体的,所述第二信息获取单元113获取当前硬件环境,所述当前硬件环境包括至少一个已安装驱动程序的硬件设备信息。Specifically, the second information acquiring unit 113 acquires a current hardware environment, where the current hardware environment includes at least one hardware device information of the installed driver.
第一版本号获取单元114,用于基于所述至少一个已安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的更新驱动安装包的第一版本号;The first version number obtaining unit 114 is configured to search for and obtain the first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one installed driver;
具体的,所述第一版本号获取单元114基于所述至少一个已安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的更新驱动安装包的第一版本号,所述更新驱动安装包在所述离线安装包中是所述第一硬件设备信息对应的最高版本号的、最受用户喜欢的版本或最稳定版本的驱动安装包,不论是哪一种情况,所述第一版本号获取单元114获取更新驱动安装包对应的第一版本号。Specifically, the first version number obtaining unit 114 searches for and obtains the first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one installed driver. The update driver installation package is the highest version number corresponding to the first hardware device information, and the most popular version or the most stable version of the driver installation package in the offline installation package, regardless of the situation. The first version number obtaining unit 114 acquires a first version number corresponding to the update driver installation package.
第二安装包获取单元115,用于若所述第一硬件设备信息对应的已安装驱动程序的当前版本号低于所述第一版本号,则获取所述第一版本号对应的更新驱动安装包。The second installation package obtaining unit 115 is configured to acquire an update driver installation corresponding to the first version number if the current version number of the installed driver corresponding to the first hardware device information is lower than the first version number package.
具体的,若所述第一硬件设备信息对应的已安装驱动程序的当前版本号低于所述第一版本号,则所述第二安装包获取单元115获取所述第一版本号对应的更新驱动安装包,以完成对第一硬件设备信息对应的驱动安装包进行更新。Specifically, if the current version number of the installed driver corresponding to the first hardware device information is lower than the first version number, the second installation package obtaining unit 115 acquires the update corresponding to the first version number. The installation package is driven to complete the update of the driver installation package corresponding to the first hardware device information.
可选的,若所述第一硬件设备信息对应的已安装驱动程序的当前版本号不低于所述第一版本号,则所述第二安装包获取单元115不执行获取驱动安装包的步骤。Optionally, if the current version number of the installed driver corresponding to the first hardware device information is not lower than the first version number, the second installation package obtaining unit 115 does not perform the step of acquiring the driver installation package. .
第二获取单元12,用于获取所述当前硬件环境下的第二硬件设备信息。The second obtaining unit 12 is configured to acquire second hardware device information in the current hardware environment.
具体的,所述第二获取单元12获取所述当前硬件环境下的第二硬件设备信息。其中,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。由于所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,因此,所述第二硬件设备信息表示所述当前硬件环境中除所述第一硬件设备信息之外的硬件设备的信息,即所述第二硬件设备信息是包括在离线安装包中未找到且未安装驱动程序的硬件设备的信息。Specifically, the second acquiring unit 12 acquires the second hardware device information in the current hardware environment. The second hardware device information is represented as information that the hardware device that drives the installation package does not exist in the offline installation package based on the current hardware environment. Since the first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, the second hardware device information indicates that the current hardware environment is The information of the hardware device other than the first hardware device information, that is, the second hardware device information is information including a hardware device that is not found in the offline installation package and that does not have a driver installed.
第三获取单元13,用于当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包。The third obtaining unit 13 is configured to: when the network connection is detected, send the second hardware device information to the server, and receive a driver installation package corresponding to the second hardware device information returned by the server.
具体,对应第一获取单元11中的第一种可行的方案,当检测到网络连接时,所述第三获取单元13向服务器发送获取的所述第二硬件设备信息,以使所述服务器查找所述第二硬件设备信息对应的驱动安装包,且所述服务器将查找到的驱动安装包返回到所述驱动程序的 安装装置1,相应地,所述第一获取单元11接收所述服务器返回的驱动程序安装包。这样可以从服务器获取在离线安装包中未找到的驱动安装包,以实现对当前硬件环境下的各个硬件设备的驱动程序进行安装。Specifically, corresponding to the first feasible solution in the first obtaining unit 11, when the network connection is detected, the third obtaining unit 13 sends the acquired second hardware device information to the server, so that the server searches Driving the installation package corresponding to the second hardware device information, and the server returns the found driver installation package to the driver The device 1 is installed, and accordingly, the first acquisition unit 11 receives a driver installation package returned by the server. In this way, the driver installation package not found in the offline installation package can be obtained from the server to install the driver of each hardware device in the current hardware environment.
可行的方案中,所述服务器返回的驱动安装包可以是通过链接、网址的方式反馈,这样所述第三获取单元13可通过所返回的链接或者网址对驱动安装包进行下载,在下载完成之后对所述驱动安装包进行安装。In a feasible solution, the driver installation package returned by the server may be fed back through a link or a web address, so that the third obtaining unit 13 may download the driver installation package by using the returned link or the web address, after the download is completed. Install the driver installation package.
对应第一获取单元11中的第二种可行的方案,所述第三获取单元13包括第二版本号获取单元131和第三安装包获取单元132。具体请一并参见图8。Corresponding to the second feasible solution in the first obtaining unit 11, the third obtaining unit 13 includes a second version number obtaining unit 131 and a third installation package acquiring unit 132. Please refer to Figure 8 for details.
第二版本号获取单元131,用于当检测到网络连接时,向所述服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的更新驱动安装包的第二版本号;The second version number obtaining unit 131 is configured to: when the network connection is detected, send the second hardware device information to the server, and receive an update driver installation package corresponding to the second hardware device information returned by the server Second version number;
具体的,当检测到网络连接时,所述第二版本号获取单元131向所述服务器发送所述第二硬件设备信息,以使所述服务器查找所述第二硬件设备信息对应的更新驱动安装包的第二版本号,且所述服务器将查找到的更新驱动安装包的第二版本号返回到所述驱动程序的安装装置1,相应地,所述第二版本号获取单元131接收所述服务器返回的第二版本号。其中,所述更新驱动安装包在所述服务器中是所述第二硬件设备信息对应的最高版本号的、最受用户喜欢的版本或最稳定版本的驱动安装包,不论是哪一种情况,所述第二版本号获取单元131获取更新驱动安装包对应的第二版本号。Specifically, when the network connection is detected, the second version number obtaining unit 131 sends the second hardware device information to the server, so that the server searches for an update driver installation corresponding to the second hardware device information. a second version number of the package, and the server returns the second version number of the updated driver installation package to the installation device 1 of the driver, and correspondingly, the second version number acquisition unit 131 receives the The second version number returned by the server. The update driver installation package is the driver version package of the highest version number corresponding to the second hardware device information, and the most popular version or the most stable version of the driver installation package, in either case, The second version number obtaining unit 131 acquires a second version number corresponding to the update driver installation package.
第三安装包获取单元132,用于若所述第二硬件设备信息对应的已安装驱动程序的当前版本号低于所述第二版本号,则获取所述第二版本号对应的更新驱动安装包。The third installation package obtaining unit 132 is configured to acquire an update driver installation corresponding to the second version number if the current version number of the installed driver corresponding to the second hardware device information is lower than the second version number package.
具体的,若所述第二硬件设备信息对应的已安装驱动程序的当前版本号低于所述第二版本号,则所述第三安装包获取单元132获取所述第二版本号对应的更新驱动安装包,以完成对第一硬件设备信息对应的驱动安装包进行更新。可行的方案中,所述第三安装包获取单元132向所述服务器获取的驱动安装包可以是通过链接、网址的方式对更新驱动安装包进行下载。Specifically, if the current version number of the installed driver corresponding to the second hardware device information is lower than the second version number, the third installation package obtaining unit 132 acquires the update corresponding to the second version number. The installation package is driven to complete the update of the driver installation package corresponding to the first hardware device information. In a feasible solution, the driver installation package acquired by the third installation package obtaining unit 132 to the server may be to download the update driver installation package by means of a link or a web address.
可选的,若所述第二硬件设备信息对应的已安装驱动程序的当前版本号不低于所述第二版本号,则所述第三安装包获取单元132不执行获取更新驱动安装包的步骤。Optionally, if the current version number of the installed driver corresponding to the second hardware device information is not lower than the second version number, the third installation package obtaining unit 132 does not perform the process of acquiring the update driver installation package. step.
驱动安装单元14,用于对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装。The driver installation unit 14 is configured to install the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information.
具体的,对应第一获取单元11中的第一种可行的方案,所述驱动安装单元14对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装。Specifically, corresponding to the first feasible solution in the first obtaining unit 11, the driver installation unit 14 drives the installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. Install it.
对应第一获取单元11中的第二种可行的方案,所述驱动安装单元14具体用于对所述第 一硬件设备信息对应的更新驱动安装包和所述第二硬件设备信息对应的更新驱动安装包进行安装。Corresponding to the second feasible solution in the first obtaining unit 11, the driving installation unit 14 is specifically configured to An update driver installation package corresponding to the hardware device information and an update driver installation package corresponding to the second hardware device information are installed.
需要说明的是,本发明实施例对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包的安装前后顺序不做限定。可行的方案中,所述驱动安装单元14在执行第一获取单元11获取到第一硬件设备信息对应的驱动安装包之后,执行对所述第一硬件设备信息对应的驱动安装包进行安装,或者,在接收到服务器反馈的驱动安装包之后,对所述第二硬件设备信息对应的驱动安装包进行安装。这样所述驱动程序的安装装置1通过将离线安装包和服务器两者结合,完成了对当前硬件环境下的驱动程序的安装。It should be noted that, in the embodiment of the present invention, the sequence before and after the installation of the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information is not limited. In a feasible solution, after the first obtaining unit 11 acquires the driver installation package corresponding to the first hardware device information, the driver installation unit 14 performs installation of the driver installation package corresponding to the first hardware device information, or After receiving the driver installation package fed back by the server, installing the driver installation package corresponding to the second hardware device information. The installation device 1 of the driver thus completes the installation of the driver in the current hardware environment by combining the offline installation package and the server.
请求发送单元15,用于当检测到网络连接时,向所述服务器发送针对所述离线安装包的更新请求。The request sending unit 15 is configured to send an update request for the offline installation package to the server when the network connection is detected.
具体的,当检测到网络连接时,所述请求发送单元15向所述服务器发送针对所述离线安装包的更新请求,以使所述服务器返回所述离线安装包的更新数据。可行的方案中,由于所述离线安装包包括各个硬件设备信息对应的驱动安装包,在向服务器发送离线安装包的更新请求之后,服务器可以将各个硬件设备的最新版本的驱动安装包打包为更新数据,发送至所述驱动程序的安装装置1。Specifically, when the network connection is detected, the request sending unit 15 sends an update request for the offline installation package to the server, so that the server returns the update data of the offline installation package. In a feasible solution, since the offline installation package includes a driver installation package corresponding to each hardware device information, after sending an update request of the offline installation package to the server, the server may package the latest version of the driver installation package of each hardware device into an update. The data is sent to the mounting device 1 of the driver.
数据接收单元16,用于接收所述服务器返回的所述离线安装包的更新数据。The data receiving unit 16 is configured to receive update data of the offline installation package returned by the server.
具体的,所述数据接收单元16接收所述服务器返回的所述离线安装包的更新数据。Specifically, the data receiving unit 16 receives the update data of the offline installation package returned by the server.
安装包更新单元17,用于根据所述更新数据对所述离线安装包进行更新。The installation package updating unit 17 is configured to update the offline installation package according to the update data.
具体的,所述安装包更新单元17根据所述更新数据对所述离线安装包进行更新。可行的方案中,所述安装包更新单元17检测反馈的更新数据中各个硬件设备信息对应的驱动安装包的版本号,当反馈的驱动安装包的版本号高于离线安装包中当前的版本号时,对该驱动安装包进行更新,否则,不执行更新步骤;以及,在离线安装包中不存在的硬件设备信息对应的驱动安装包时,将该驱动安装包保存至所述离线安装包中。通过对离线安装包的更新,使得在网络未连接状态,所述驱动程序的安装装置1能够从所述离线安装包中获取到尽可能多的第一硬件设备信息对应的驱动安装包,并能够保证所获取的驱动安装包是更新到最新版本,更加方便用户使用,增强用户粘性。Specifically, the installation package updating unit 17 updates the offline installation package according to the update data. In a feasible solution, the installation package updating unit 17 detects the version number of the driver installation package corresponding to each hardware device information in the feedback update data, and the version number of the driven driver installation package is higher than the current version number in the offline installation package. When the driver installation package is updated, otherwise, the update step is not performed; and, when the driver installation package corresponding to the hardware device information does not exist in the offline installation package, the driver installation package is saved to the offline installation package. . By updating the offline installation package, the installation device 1 of the driver can acquire as many driver installation packages corresponding to the first hardware device information from the offline installation package in the network unconnected state, and can Ensure that the driver installation package obtained is updated to the latest version, which is more convenient for users to use and enhance user stickiness.
在本发明实施例中,通过在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,再获取当前硬件环境下的第二硬件设备信息,当检测到网络连接时,向服务器发送第二硬件设备信息,并接收服务器返回的第二硬件设备信息对应的驱动安装包,对第一硬件设备信息对应的驱动安装包和第二硬件设备信息对应的驱动安装包进行安装。这样通过将离线安装包和服务器两者结合,实现了对未安装驱动程序硬件设备安装驱动程序,避免了由于单独采用离线安装包导致驱动程序安装不完整的情况发生,以及由于单独采用服务器 却未连接网络导致无法安装驱动程序的情况发生,提高了对驱动程序的安装效率。In the embodiment of the present invention, the driver installation package corresponding to the first hardware device information in the current hardware environment is obtained in the offline installation package, and the second hardware device information in the current hardware environment is obtained, and when the network connection is detected, Sending the second hardware device information to the server, and receiving the driver installation package corresponding to the second hardware device information returned by the server, and installing the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information. In this way, by combining the offline installation package and the server, the driver is installed for the driver hardware device not installed, the driver installation is incomplete due to the offline installation package alone, and the server is used separately. The failure to connect to the network results in the inability to install the driver, which improves the efficiency of the driver installation.
请参见图9,为本发明实施例提供了一种电子设备的结构示意图。如图9所示,所述电子设备1000可以包括:至少一个处理器1001,例如CPU,至少一个网络接口1004,用户接口1003,存储器1005,至少一个通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。其中,用户接口1003可以包括显示屏(Display)、键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1005可选的还可以是至少一个位于远离前述处理器1001的存储装置。如图9所示,作为一种计算机存储介质的存储器1005中可以包括操作***、网络通信模块、用户接口模块以及驱动程序的安装应用程序。FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in FIG. 9, the electronic device 1000 may include at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 can include a display and a keyboard. The optional user interface 1003 can also include a standard wired interface and a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. The memory 1005 can also optionally be at least one storage device located remotely from the aforementioned processor 1001. As shown in FIG. 9, a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a driver installation application.
在图9所示的电子设备1000中,用户接口1003主要用于为用户提供输入的接口,获取用户对驱动程序的操作请求;而处理器1001可以用于调用存储器1005中存储的驱动程序的安装应用程序,并具体执行以下操作:In the electronic device 1000 shown in FIG. 9, the user interface 1003 is mainly used to provide an input interface for the user, and obtains an operation request of the user for the driver; and the processor 1001 can be used to call the installation of the driver stored in the memory 1005. Application, and do the following:
在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包;Obtaining a driver installation package corresponding to the first hardware device information in the current hardware environment in the offline installation package;
获取所述当前硬件环境下的第二硬件设备信息;Obtaining second hardware device information in the current hardware environment;
当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包;When the network connection is detected, sending the second hardware device information to the server, and receiving a driver installation package corresponding to the second hardware device information returned by the server;
对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装;Installing a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information;
其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。The first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the second hardware device information is represented as being based on the current hardware environment. The information of the hardware device that drives the installation package does not exist in the offline installation package.
在一个实施例中,所述处理器1001在执行在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,具体执行以下步骤:In an embodiment, the processor 1001 obtains a driver installation package corresponding to the first hardware device information in the current hardware environment in the offline installation package, and specifically performs the following steps:
获取当前硬件环境,所述当前硬件环境包括至少一个未安装驱动程序的硬件设备信息;Obtaining a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed;
基于所述至少一个未安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的驱动安装包。And searching for and acquiring the driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one driver not installed.
在一个实施例中,所述处理器1001在执行所述在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,具体执行以下步骤:In one embodiment, the processor 1001 obtains the driver installation package corresponding to the first hardware device information in the current hardware environment in the offline installation package, and specifically performs the following steps:
获取当前硬件环境,所述当前硬件环境包括至少一个已安装驱动程序的硬件设备信息; Obtaining a current hardware environment, where the current hardware environment includes at least one hardware device information of an installed driver;
基于所述至少一个已安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的更新驱动安装包的第一版本号;Searching for and acquiring the first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package, based on the hardware device information of the at least one installed driver;
若所述第一硬件设备信息对应的已安装驱动程序的当前版本号低于所述第一版本号,则获取所述第一版本号对应的更新驱动安装包。And if the current version number of the installed driver corresponding to the first hardware device information is lower than the first version number, acquiring an update driver installation package corresponding to the first version number.
在一个实施例中,所述处理器1001在执行所述当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包,具体执行以下步骤:In an embodiment, the processor 1001 sends the second hardware device information to the server when the network connection is detected, and receives the driver corresponding to the second hardware device information returned by the server. Install the package and perform the following steps:
当检测到网络连接时,向所述服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的更新驱动安装包的第二版本号;When the network connection is detected, sending the second hardware device information to the server, and receiving a second version number of the update driver installation package corresponding to the second hardware device information returned by the server;
若所述第二硬件设备信息对应的已安装驱动程序的当前版本号低于所述第二版本号,则获取所述第二版本号对应的更新驱动安装包。And if the current version number of the installed driver corresponding to the second hardware device information is lower than the second version number, acquiring an update driver installation package corresponding to the second version number.
在一个实施例中,所述处理器1001在执行,所述对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装,具体执行以下步骤:In one embodiment, the processor 1001 is configured to install the driver installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information, and specifically perform the following steps:
对所述第一硬件设备信息对应的更新驱动安装包和所述第二硬件设备信息对应的更新驱动安装包进行安装。And installing an update driver installation package corresponding to the first hardware device information and an update driver installation package corresponding to the second hardware device information.
在一个实施例中,所述处理器1001还执行以下步骤:In one embodiment, the processor 1001 also performs the following steps:
当检测到网络连接时,向所述服务器发送针对所述离线安装包的更新请求,并接收所述服务器返回的所述离线安装包的更新数据;When detecting a network connection, sending an update request for the offline installation package to the server, and receiving update data of the offline installation package returned by the server;
根据所述更新数据对所述离线安装包进行更新。The offline installation package is updated according to the update data.
需要说明的是,本发明实施例所描述的电子设备中处理器1001所执行的步骤可根据上述图1、图2或图3所示方法实施例中的方法具体实现,此处不再赘述。It should be noted that the steps performed by the processor 1001 in the electronic device described in the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment shown in FIG. 1, FIG. 2 or FIG. 3, and details are not described herein again.
本发明实施例中所述模块或单元,可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。The module or unit in the embodiment of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
本发明实施例终端中的模块或单元可以根据实际需要进行合并、划分和删减。The modules or units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因 此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above is only the preferred embodiment of the present invention, and of course, the scope of the present invention cannot be limited thereto. The equivalent changes made in the claims of the present invention are still within the scope of the present invention.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (15)

  1. 一种驱动程序的安装方法,其特征在于,包括:A method for installing a driver, comprising:
    在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包;Obtaining a driver installation package corresponding to the first hardware device information in the current hardware environment in the offline installation package;
    获取所述当前硬件环境下的第二硬件设备信息;Obtaining second hardware device information in the current hardware environment;
    当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包;When the network connection is detected, sending the second hardware device information to the server, and receiving a driver installation package corresponding to the second hardware device information returned by the server;
    对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装;Installing a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information;
    其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。The first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the second hardware device information is represented as being based on the current hardware environment. The information of the hardware device that drives the installation package does not exist in the offline installation package.
  2. 根据权利要求1所述的方法,其特征在于,所述在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,包括:The method according to claim 1, wherein the obtaining, in the offline installation package, the driver installation package corresponding to the first hardware device information in the current hardware environment comprises:
    获取当前硬件环境,所述当前硬件环境包括至少一个未安装驱动程序的硬件设备信息;Obtaining a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed;
    基于所述至少一个未安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的驱动安装包。And searching for and acquiring the driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one driver not installed.
  3. 根据权利要求1或2所述的方法,其特征在于,所述在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包,包括:The method according to claim 1 or 2, wherein the obtaining, in the offline installation package, the driver installation package corresponding to the first hardware device information in the current hardware environment comprises:
    获取当前硬件环境,所述当前硬件环境包括至少一个已安装驱动程序的硬件设备信息;Obtaining a current hardware environment, where the current hardware environment includes at least one hardware device information of an installed driver;
    基于所述至少一个已安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的更新驱动安装包的第一版本号;Searching for and acquiring the first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package, based on the hardware device information of the at least one installed driver;
    若所述第一硬件设备信息对应的已安装驱动程序的当前版本号低于所述第一版本号,则获取所述第一版本号对应的更新驱动安装包。And if the current version number of the installed driver corresponding to the first hardware device information is lower than the first version number, acquiring an update driver installation package corresponding to the first version number.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包,包括:The method according to any one of claims 1 to 3, wherein when the network connection is detected, the second hardware device information is sent to a server, and the second hardware returned by the server is received. The driver installation package corresponding to the device information includes:
    当检测到网络连接时,向所述服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的更新驱动安装包的第二版本号;When the network connection is detected, sending the second hardware device information to the server, and receiving a second version number of the update driver installation package corresponding to the second hardware device information returned by the server;
    若所述第二硬件设备信息对应的已安装驱动程序的当前版本号低于所述第二版本号,则获取所述第二版本号对应的更新驱动安装包。 And if the current version number of the installed driver corresponding to the second hardware device information is lower than the second version number, acquiring an update driver installation package corresponding to the second version number.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装,包括:The method according to any one of claims 1 to 4, wherein the driving installation package corresponding to the first hardware device information and the driver installation package corresponding to the second hardware device information are installed, including :
    对所述第一硬件设备信息对应的更新驱动安装包和所述第二硬件设备信息对应的更新驱动安装包进行安装。And installing an update driver installation package corresponding to the first hardware device information and an update driver installation package corresponding to the second hardware device information.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,还包括:The method of any of claims 1-5, further comprising:
    当检测到网络连接时,向所述服务器发送针对所述离线安装包的更新请求,并接收所述服务器返回的所述离线安装包的更新数据;When detecting a network connection, sending an update request for the offline installation package to the server, and receiving update data of the offline installation package returned by the server;
    根据所述更新数据对所述离线安装包进行更新。The offline installation package is updated according to the update data.
  7. 一种驱动程序的安装装置,其特征在于,包括:A mounting device for a driver, comprising:
    第一获取单元,用于在离线安装包中获取当前硬件环境下的第一硬件设备信息对应的驱动安装包;a first obtaining unit, configured to obtain, in an offline installation package, a driver installation package corresponding to the first hardware device information in a current hardware environment;
    第二获取单元,用于获取所述当前硬件环境下的第二硬件设备信息;a second acquiring unit, configured to acquire second hardware device information in the current hardware environment;
    第三获取单元,用于当检测到网络连接时,向服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的驱动安装包;a third acquiring unit, configured to: when the network connection is detected, send the second hardware device information to the server, and receive a driver installation package corresponding to the second hardware device information returned by the server;
    驱动安装单元,用于对所述第一硬件设备信息对应的驱动安装包和所述第二硬件设备信息对应的驱动安装包进行安装;a driver installation unit, configured to install a driver installation package corresponding to the first hardware device information and a driver installation package corresponding to the second hardware device information;
    其中,所述第一硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中存在驱动安装包的硬件设备的信息,所述第二硬件设备信息表示为基于所述当前硬件环境在所述离线安装包中不存在驱动安装包的硬件设备的信息。The first hardware device information is represented as information that the hardware device that drives the installation package exists in the offline installation package based on the current hardware environment, and the second hardware device information is represented as being based on the current hardware environment. The information of the hardware device that drives the installation package does not exist in the offline installation package.
  8. 根据权利要求7所述的装置,其特征在于,所述第一获取单元包括:The device according to claim 7, wherein the first obtaining unit comprises:
    第一信息获取单元,用于获取当前硬件环境,所述当前硬件环境包括至少一个未安装驱动程序的硬件设备信息;a first information acquiring unit, configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information that does not have a driver installed;
    第一安装包获取单元,用于基于所述至少一个未安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的驱动安装包。The first installation package obtaining unit is configured to search for and obtain a driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one uninstalled driver.
  9. 根据权利要求7或8所述的装置,其特征在于,所述第一获取单元包括:The device according to claim 7 or 8, wherein the first obtaining unit comprises:
    第二信息获取单元,用于获取当前硬件环境,所述当前硬件环境包括至少一个已安装驱动程序的硬件设备信息;a second information acquiring unit, configured to acquire a current hardware environment, where the current hardware environment includes at least one hardware device information of the installed driver;
    第一版本号获取单元,用于基于所述至少一个已安装驱动程序的硬件设备信息,在离线安装包中查找并获取第一硬件设备信息对应的更新驱动安装包的第一版本号;a first version number obtaining unit, configured to search for and obtain a first version number of the update driver installation package corresponding to the first hardware device information in the offline installation package based on the hardware device information of the at least one installed driver;
    第二安装包获取单元,用于若所述第一硬件设备信息对应的已安装驱动程序的当前版本号低于所述第一版本号,则获取所述第一版本号对应的更新驱动安装包。 a second installation package obtaining unit, configured to acquire an update driver installation package corresponding to the first version number if a current version number of the installed driver corresponding to the first hardware device information is lower than the first version number .
  10. 根据权利要求7-9任一项所述的装置,其特征在于,所述第三获取单元包括:The device according to any one of claims 7-9, wherein the third obtaining unit comprises:
    第二版本号获取单元,用于当检测到网络连接时,向所述服务器发送所述第二硬件设备信息,并接收所述服务器返回的所述第二硬件设备信息对应的更新驱动安装包的第二版本号;a second version number obtaining unit, configured to: when the network connection is detected, send the second hardware device information to the server, and receive an update driver installation package corresponding to the second hardware device information returned by the server Second version number;
    第三安装包获取单元,用于若所述第二硬件设备信息对应的已安装驱动程序的当前版本号低于所述第二版本号,则获取所述第二版本号对应的更新驱动安装包。a third installation package obtaining unit, configured to acquire an update driver installation package corresponding to the second version number if a current version number of the installed driver corresponding to the second hardware device information is lower than the second version number .
  11. 根据权利要求7-10任一项所述的装置,其特征在于,所述驱动安装单元具体用于对所述第一硬件设备信息对应的更新驱动安装包和所述第二硬件设备信息对应的更新驱动安装包进行安装。The device according to any one of claims 7 to 10, wherein the driver installation unit is configured to: corresponding to the update driver installation package corresponding to the first hardware device information and the second hardware device information Update the driver installation package for installation.
  12. 根据权利要求7-11任一项所述的装置,其特征在于,还包括:The device according to any one of claims 7 to 11, further comprising:
    请求发送单元,用于当检测到网络连接时,向所述服务器发送针对所述离线安装包的更新请求;a request sending unit, configured to send an update request for the offline installation package to the server when detecting a network connection;
    数据接收单元,用于接收所述服务器返回的所述离线安装包的更新数据;a data receiving unit, configured to receive update data of the offline installation package returned by the server;
    安装包更新单元,用于根据所述更新数据对所述离线安装包进行更新。And an installation package update unit, configured to update the offline installation package according to the update data.
  13. 一种电子设备,所述服务器包括处理器和存储器,其特征在于,所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行如权利要求1-6任一项所述的驱动程序的安装方法。An electronic device, the server comprising a processor and a memory, wherein the memory is for storing executable program code; the processor is operable to read executable program code stored in the memory A program corresponding to the program code for executing the method of installing the driver according to any one of claims 1 to 6.
  14. 一种存储介质,其特征在于,用于存储应用程序,所述应用程序用于执行如权利要求1-6任一项所述的驱动程序的安装方法。A storage medium for storing an application for executing a method of installing the driver according to any one of claims 1-6.
  15. 一种应用程序,其特征在于,用于执行如权利要求1-6任一项所述的驱动程序的安装方法。 An application program, comprising: a method of installing the driver according to any one of claims 1-6.
PCT/CN2017/092355 2016-08-30 2017-07-10 Driver installation method, device, and electronic apparatus WO2018040746A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610772740.6A CN106325879A (en) 2016-08-30 2016-08-30 Method and device for installing driver and electronic equipment
CN201610772740.6 2016-08-30

Publications (1)

Publication Number Publication Date
WO2018040746A1 true WO2018040746A1 (en) 2018-03-08

Family

ID=57789291

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092355 WO2018040746A1 (en) 2016-08-30 2017-07-10 Driver installation method, device, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN106325879A (en)
WO (1) WO2018040746A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580847A (en) * 2020-06-15 2020-08-25 长沙景嘉微电子股份有限公司 GPU (graphics processing Unit) drive updating method and device, computer storage medium and electronic equipment
CN112579111A (en) * 2020-12-30 2021-03-30 深圳市欢太科技有限公司 Installation method and device of installation package, electronic equipment and storage medium
CN115981696A (en) * 2023-03-17 2023-04-18 杭州康晟健康管理咨询有限公司 Physiological sensor communication drive updating method, medical chip and system

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325879A (en) * 2016-08-30 2017-01-11 北京金山安全软件有限公司 Method and device for installing driver and electronic equipment
CN106959830B (en) * 2017-03-14 2020-07-03 北京三快在线科技有限公司 Equipment initialization method and device and printing equipment
CN108762766A (en) * 2018-06-08 2018-11-06 山东超越数控电子股份有限公司 A method of milky way kylin system supports ten thousand Broadcoms under 1500A platforms of soaring
CN110007973B (en) * 2019-03-26 2021-07-16 联想(北京)有限公司 Information processing method and electronic equipment
CN113448630A (en) * 2021-03-24 2021-09-28 深圳怡化电脑股份有限公司 Driver processing method and device, electronic equipment and medium
CN113703853A (en) * 2021-08-24 2021-11-26 新华三智能终端有限公司 Network equipment initialization method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020078142A1 (en) * 2000-12-20 2002-06-20 Microsoft Corporation Method and system for enabling offline detection of software updates
US20020174264A1 (en) * 2001-05-17 2002-11-21 David Fuller System and method for obtaining driver software and documentation for a detected hardware and software configuration
CN104714814A (en) * 2013-12-13 2015-06-17 贝壳网际(北京)安全技术有限公司 Drive program mounting method and client terminal device
CN104750504A (en) * 2013-12-26 2015-07-01 贝壳网际(北京)安全技术有限公司 Method and device for providing driving information
CN104881314A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Method for installing driver and driver installation device
CN106325879A (en) * 2016-08-30 2017-01-11 北京金山安全软件有限公司 Method and device for installing driver and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070101342A1 (en) * 2005-10-31 2007-05-03 Microsoft Corporation Automated device driver management
US8368915B1 (en) * 2006-06-23 2013-02-05 Open Invention Network, Llc System and method for printer driver management in an enterprise network
CN103019750B (en) * 2011-09-20 2016-11-23 北京奇虎科技有限公司 A kind of renewal overloaded method of driver

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020078142A1 (en) * 2000-12-20 2002-06-20 Microsoft Corporation Method and system for enabling offline detection of software updates
US20020174264A1 (en) * 2001-05-17 2002-11-21 David Fuller System and method for obtaining driver software and documentation for a detected hardware and software configuration
CN104714814A (en) * 2013-12-13 2015-06-17 贝壳网际(北京)安全技术有限公司 Drive program mounting method and client terminal device
CN104750504A (en) * 2013-12-26 2015-07-01 贝壳网际(北京)安全技术有限公司 Method and device for providing driving information
CN104881314A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Method for installing driver and driver installation device
CN106325879A (en) * 2016-08-30 2017-01-11 北京金山安全软件有限公司 Method and device for installing driver and electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580847A (en) * 2020-06-15 2020-08-25 长沙景嘉微电子股份有限公司 GPU (graphics processing Unit) drive updating method and device, computer storage medium and electronic equipment
CN111580847B (en) * 2020-06-15 2023-09-22 长沙景嘉微电子股份有限公司 GPU (graphics processing unit) driving updating method and device, computer storage medium and electronic equipment
CN112579111A (en) * 2020-12-30 2021-03-30 深圳市欢太科技有限公司 Installation method and device of installation package, electronic equipment and storage medium
CN115981696A (en) * 2023-03-17 2023-04-18 杭州康晟健康管理咨询有限公司 Physiological sensor communication drive updating method, medical chip and system
CN115981696B (en) * 2023-03-17 2023-06-06 杭州康晟健康管理咨询有限公司 Physiological sensor communication drive updating method, medical chip and system

Also Published As

Publication number Publication date
CN106325879A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2018040746A1 (en) Driver installation method, device, and electronic apparatus
US11363446B2 (en) Profile generation method, profile acquisition method, and related device and storage medium
US20210192579A1 (en) Smart broadcasting device
US20130326502A1 (en) Installing applications remotely
CN109992311B (en) Starting method and device of operating system, storage medium and client
KR101885133B1 (en) Apparatus and method for providing application auto install function in digital device
US20110302574A1 (en) Update management server, electronic apparatus, update management system, and method therefor
US9727507B2 (en) USB device remote control method and system
KR20090090801A (en) Method and apparatus for updating firmware in portable terminal
WO2015157937A1 (en) Software upgrade method and terminal
CN106020875B (en) Firmware update management method and device of embedded terminal
WO2014089734A1 (en) Terminal and application program restoration method
JP6359652B2 (en) Information transmission method, apparatus and device
WO2017071358A1 (en) Software upgrade method and apparatus
JP2013089239A (en) Electronic system and management method using the same
WO2023124328A1 (en) Wireless communication module and function recovery method thereof, electronic device, and storage medium
US10120697B2 (en) Mobile device support for sensors in peripherals
US9465599B2 (en) Method, device and system for installing terminal software
WO2018006884A1 (en) Method, device and user terminal for software installation
CN111459524A (en) Software upgrading method, device and system
WO2020258782A1 (en) Data transmission method applicable to bluetooth card reader, and electronic apparatus
US9723480B2 (en) Information processing device, server device, data communication system, data communication method, and computer-readable storage medium storing data communication program
CN104468499A (en) Determining format compatibility across a data processing device and another data processing device prior to transfer of a multimedia file therebetween
KR20180050001A (en) Firmware upgrade system and method for IoT
CN105991729B (en) Installation package downloading method and server

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: 17845049

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.06.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17845049

Country of ref document: EP

Kind code of ref document: A1