CN102567063B - Method and device for automatically installing software - Google Patents

Method and device for automatically installing software Download PDF

Info

Publication number
CN102567063B
CN102567063B CN201210019286.9A CN201210019286A CN102567063B CN 102567063 B CN102567063 B CN 102567063B CN 201210019286 A CN201210019286 A CN 201210019286A CN 102567063 B CN102567063 B CN 102567063B
Authority
CN
China
Prior art keywords
download
drive installation
address
configuration file
download address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210019286.9A
Other languages
Chinese (zh)
Other versions
CN102567063A (en
Inventor
陆舟
于华章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201210019286.9A priority Critical patent/CN102567063B/en
Publication of CN102567063A publication Critical patent/CN102567063A/en
Application granted granted Critical
Publication of CN102567063B publication Critical patent/CN102567063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a device for automatically installing software. The method includes the steps: A, receiving triggering information prior to acquiring a download address; B, downloading a latest drive installation package from a network server according to the download address and judging whether the drive installation package is successfully downloaded or not, performing a step D if the drive installation package is successfully downloaded, otherwise, performing a step C; C, judging whether download times exceed preset retry times or not, completing if the download times exceed the preset retry times, otherwise, returning to the step B; D, acquiring a signature certificate from the latest drive installation package and judging whether the signature certificate is legal or not, performing a step E if the signature certificate is legal, otherwise, completing; E, judging whether a current user is an administrator or not, performing a step G if the current user is the administrator, otherwise, performing a step F; F, creating an administrator right process and judging whether creation is successful or not, performing the step G if creation is successful, otherwise, completing; and G, installing the latest drive installation package. By the aid of the method and the device, drive-free hardware resources without soft keys are saved, and requirements on hardware are lowered.

Description

A kind of method of automatic software installation and device
Technical field
The present invention relates to information security field, relate in particular to a kind of method and device of automatic software installation.
Background technology
Before need to using Key in early days, corresponding driver and software need to be installed in computer with identification and read the information in Key.Then, along with operating system in computer (as operating systems such as WindowsXP) preset USB driving, remove gradually install driver from, and use the preset USB of operating system to drive.At present, in order to make the use of Key more convenient, occurred without driving without soft Key.
Do not need to install manually driving (preset USB drives to realize by computer operating system) without driving without soft Key, inserting the corresponding USB interface of computer can use.Without to drive without the principle of soft Key be that user program required user is written in the memory block of Key with iso file layout, automatically move thereby can be used as virtual drive, not mounting software by hand.But existing iso file content is drive installation bag, takies larger storage space, higher to the hardware requirement of Key; And existing nothing drives without soft Key in escalation process, need artificial participation to carry out, operate comparatively loaded down with trivial details.
Summary of the invention
The invention provides a kind of method and device of automatic software installation, with overcome in above-mentioned Key iso file large, take larger storage space, thereby make the high defect of production cost of Key.
The embodiment of the present invention provides a kind of method of automatic software installation, comprising:
Steps A: obtain download address after receiving trigger message;
Step B: downloading up-to-date drive installation bag according to described download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C;
Step C: judge whether download time exceedes default number of retries, is to finish, otherwise return to step B;
Step D: obtaining signing certificate from described up-to-date drive installation bag, and judge that whether described signing certificate is legal, is to perform step E, otherwise finish;
Step e: judge whether active user is keeper, is to perform step G, otherwise execution step F;
Step F: creative management person's authority process, and judge that whether establishment is successful, is to perform step G, otherwise finishes;
Step G: described up-to-date drive installation bag is installed.
Wherein, comprise steps A obtain download address in described steps A before ',
Steps A ': receiving described trigger message, judge whether to download up-to-date drive installation bag, is to perform step A, otherwise finishes.
Wherein, described steps A ' comprising: in the time receiving the first trigger message, described device is activated, and judges local whether installation without driving the driver without soft Key, is to finish, otherwise execution step A.
Wherein, described steps A comprises:
Steps A 11: according to default address download configuration file from the described webserver, and judging whether to download successfully, is to perform step A13, otherwise execution step A12;
Steps A 12: judge whether download time exceedes default number of retries, is to finish, otherwise return to steps A 11;
Steps A 13: obtain download address for subsequent use from described configuration file, order performs step B.
Wherein, in described configuration file, download address for subsequent use arranges one, and described step B comprises:
Downloading up-to-date drive installation bag according to described download address for subsequent use from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C.
Wherein, in described configuration file, download address for subsequent use arranges many, and described step B comprises:
Step B11: using Article 1 download address for subsequent use in described configuration file as current download address;
Step B12: downloading up-to-date drive installation bag according to described current download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B13;
Step B13: judging whether download address for subsequent use in described configuration file is finished, is to perform step C, otherwise execution step B14;
Step B14: using next download address for subsequent use in described configuration file as current download address, return to step B12.
Wherein, described steps A comprises: obtain default download address.
Wherein, described steps A comprises:
Steps A 21: obtain the first download address and default address;
Steps A 22: according to described default address download configuration file from the described webserver, and judging whether to download successfully, is to perform step A24, otherwise execution step A23;
Steps A 23: judge whether download time exceedes default number of retries, is to finish, otherwise return to steps A 22;
Steps A 24: obtain the second download address for subsequent use from described configuration file, order performs step B.
Wherein, in described configuration file, the second download address for subsequent use arranges one, and described step B comprises:
Step B21: downloading up-to-date drive installation bag according to described the first download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B22;
Step B22: downloading up-to-date drive installation bag according to described the second download address for subsequent use from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C.
Wherein, the second download address for subsequent use in described configuration file arranges many, and described step B comprises:
Step B31: downloading up-to-date drive installation bag according to described the first download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B32;
Step B32: using download address for subsequent use Article 1 in described configuration file as current the second download address;
Step B33: downloading up-to-date drive installation bag according to current the second download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B34;
Step B34: judge whether the second download address for subsequent use in described configuration file is finished, and is to perform step C, otherwise execution step B35;
Step B35: next second download address for subsequent use in described configuration file, as current the second download address, is returned to step B33.
Wherein, described steps A comprises: obtain the first download address and default address;
Described step B comprises:
Step B41: downloading up-to-date drive installation bag according to described the first download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B42;
Step B42: according to described default address download configuration file from the described webserver, and judging whether to download successfully, is to perform step B44, otherwise execution step B43;
Step B43: judge whether download time exceedes default number of retries, is to finish, otherwise return to step B42;
Step B44: using download address for subsequent use Article 1 in described configuration file as current the second download address;
Step B45: downloading up-to-date drive installation bag according to current the second download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B46;
Step B46: judge whether the second download address for subsequent use in described configuration file is finished, and is to perform step C, otherwise execution step B47;
Step B47: next second download address for subsequent use in described configuration file, as current the second download address, is returned to step B45.
Wherein, described steps A comprises: obtain the first download address and default address;
Described step B comprises:
Step B51: downloading up-to-date drive installation bag according to described the first download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B52;
Step B52: according to described default address download configuration file from the described webserver, and judging whether to download successfully, is to perform step B54, otherwise execution step B53;
Step B53: judge whether download time exceedes default number of retries, is to finish, otherwise return to step B52;
Step B54: downloading up-to-date drive installation bag according to the second download address in described configuration file from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C.
Wherein, described steps A comprises: obtain the first download address and default address;
Described step B comprises:
Download up-to-date drive installation bag and configuration file according to described the first download address and default address from the described webserver respectively, and judge respectively whether described up-to-date drive installation bag and configuration file are downloaded successfully;
As both all do not download successfully, perform step C;
As described in only having, up-to-date drive installation bag is downloaded successfully, performs step D;
As configuration file is downloaded successfully as described in only having, download up-to-date drive installation bag according to the second download address in configuration file from the described webserver, and judge whether to download successfully, be to perform step D, otherwise finish;
As both all download successfully, download up-to-date drive installation bag according to the download address in described configuration file from the described webserver, and detect according to the up-to-date drive installation bag of the described first default address download with according to the height of the version number of the up-to-date drive installation bag of described the second download address download, order performs step D;
Described step D is specially: from the highest up-to-date drive installation bag of version number, obtaining signing certificate, and judge that whether described signing certificate is legal, is to perform step E, otherwise finishes.
Wherein, described the first trigger message is to insert the trigger message of computing machine or the trigger message of click button installation without driving without soft KEY.
Wherein, in described steps A obtain download address before comprise steps A ", described steps A " comprising:
Steps A " 1: in the time receiving the second trigger message, according to default address download configuration file from the described webserver, and judging that whether download is successful, is to perform step A " 3, otherwise execution step A " 2;
Steps A " 2: judge whether download time exceedes default number of retries, is to finish, otherwise return to steps A " 1, re-start download;
Steps A " 3: the relatively version number of the up-to-date drive installation bag in configuration file and the local version number of install driver; as described in driving version number in configuration file higher; perform step A, as higher in the version number of this locality install driver, finish.
Wherein, described steps A comprises:
From described configuration file, obtain download address.
Wherein, the download address in described configuration file arranges one, and described step B comprises: download up-to-date drive installation bag according to the described download address of obtaining from the described webserver.
Wherein in, the download address in described configuration file arranges many, described step B comprises:
Step B61: using the described Article 1 download address of obtaining as current download address;
Step B62: downloading up-to-date drive installation bag according to current download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B63;
Step B63: whether the download address of obtaining described in judgement is finished, is to perform step C, otherwise execution step B64;
Step B64: using described next that an obtain download address as current download address, return to step B62.
Wherein, described steps A comprises: in the time receiving the second trigger message, obtain default download address.
Wherein, between described step B and step D, comprise step B ', described step B is judged as YES the described step B ' of rear execution,
Step B ': the version number of more described up-to-date drive installation bag and the local version number of install driver, as as described in the driving version number of up-to-date drive installation bag higher, perform step D, as described in the version number of install driver is higher in this locality, finish.
Wherein, described steps A comprises: in the time receiving the second trigger message, obtain the first download address and default address;
Described step B comprises:
Download up-to-date drive installation bag and configuration file according to described the first download address and default address from the described webserver respectively, and judge respectively whether described up-to-date drive installation bag and described configuration file are downloaded successfully,
As both all do not download successfully, perform step C;
As described in only having, up-to-date drive installation bag is downloaded successfully, the version number of more described up-to-date drive installation bag and the local version number of install driver, as as described in the driving version number of up-to-date drive installation bag higher, perform step D, as as described in the version number of install driver is higher in this locality, finish;
As described in only having, configuration file is downloaded successfully, download up-to-date drive installation bag according to download address for subsequent use in described configuration file from the described webserver, and judge that whether download is successful, version number and described this locality version number of install driver of more described up-to-date drive installation bag, as as described in the driving version number of up-to-date drive installation bag higher, perform step D, as described in the version number of install driver is higher in this locality, finish; As download unsuccessfully, finish;
As both all download successfully, download up-to-date drive installation bag according to the standby address in described configuration file from the described webserver, and judge whether to download successfully, version number and the described this locality height of the version number of install driver that detects the up-to-date drive installation bag of downloading according to the described first default address, the up-to-date drive installation bag of downloading according to described standby address, as as described in the driving version number of up-to-date drive installation bag higher, perform step D, as as described in the version number of install driver is higher in this locality, finish; As download unsuccessfully, finish; Step D is specially: from the highest up-to-date drive installation bag of version number, obtaining signing certificate, and judge that whether described signing certificate is legal, is to perform step F, otherwise finishes.
Wherein, described the second trigger message is to insert computing machine and arrive the trigger message of update cycle or the trigger message of click upgrade button without driving without soft KEY.
Wherein, described step G is specially: cover described up-to-date drive installation bag is installed.
Wherein, in described steps A, receive trigger message and obtain between download address and comprise:
Steps A 01: judge whether it has set up and be connected with the described webserver, is to perform step A03, otherwise execution step A02;
Steps A 02: connect with the described webserver, and judge that whether connection is successful, is to perform step A03, otherwise finishes;
Steps A 03: whether be keeper, be to obtain download address if detecting active user, order performs step B, otherwise execution step A04;
Steps A 04: judge that operating system in current computer, whether higher than predetermined system, is to perform step A05, otherwise execution step A06;
Steps A 05: judge whether user account control interface is opened, and is to finish, otherwise execution step A06;
Steps A 06: output information, wait for that user confirms;
Steps A 07: receive the information of user's input, judge whether described information is the information of confirming continuation, is to obtain download address, and order performs step B, otherwise finishes.
The embodiment of the present invention provides again a kind of device of automatic software installation, comprising:
Receiver module: for receiving trigger message;
Acquisition module: obtain download address after receiving trigger message at described receiver module;
Download judge module: for downloading up-to-date drive installation bag according to described download address from the webserver, and judge whether to download successfully;
The first judge module: when unsuccessful for downloading in described download judge module judgement, judge whether download time exceedes default number of retries;
Obtain judge module: in the time that described download judge module judgement is downloaded successfully, from described up-to-date drive installation bag, obtain signing certificate, and judge that whether described signing certificate is legal;
The second judge module: in the time that described signing certificate is legal, judge whether active user is keeper;
Create judge module: for active user not for keeper is, creative management person's authority process, and whether successfully judge establishment;
Installation module: for described up-to-date drive installation bag is installed under administrator right.
Wherein, described device also comprises the 3rd judge module: in the time receiving trigger message, judge whether to download up-to-date drive installation bag.
Wherein, described trigger message comprises the first trigger message or the second trigger message;
Described the first trigger message is to insert the trigger message of computing machine or the trigger message of click button installation without driving without soft KEY;
Described the second trigger message is to insert computing machine and arrive the trigger message of update cycle or the trigger message of click upgrade button without driving without soft KEY.
Wherein, described acquisition module comprises:
The first acquiring unit: obtain the first download address and/or default address for after receiving trigger message at described receiver module;
Second acquisition unit: for obtaining configuration file the second download address for subsequent use;
Described download judge module is also for according to described default address download configuration file from the described webserver, and judges whether to download successfully.
Wherein, described device also comprises first detection module: for detection of the height of the version number of up-to-date drive installation bag and the version number of local installed drivers;
Described installation module is installed described up-to-date drive installation bag specifically for covering under administrator right.
Wherein, described device also comprises:
The 4th judge module: for judging whether described device has been set up and be connected with the described webserver;
Set up judge module: in the time that described the 4th judge module is judged as NO, described device and the described webserver are connected, and judge that whether connection is successful;
The second detection module: whether when successful for connecting at described device and the described webserver, detecting active user is keeper;
The 5th judge module: in the time that described active user is not keeper, judge that whether operating system in current computer is higher than predetermined system;
The 6th judge module: in the time that described the 5th judge module is judged as YES, judge whether user account control interface is opened;
Output module: in the time that described the 5th judge module and the 6th judge module are judged as NO, output information, waits for that user confirms;
Receive judge module: for receiving the information of user's input, judge whether described information is the information of confirming continuation.
The beneficial effect that the present invention reaches: only the program for downloading is write without driving without soft Key with iso file layout in the present invention, thereby directly download without driving the drive installation bag without soft Key by default download address access services device, or by default address access services device download configuration file, download without driving the drive installation bag without soft Key according to the download path access services device in configuration file again, and not directly by drive installation bag with iso stored in file format without in driving without soft Key, thereby reduce without driving without the space for storing driver installation kit in soft Key, reach saving hardware resource, the effect of reduced cost, in the time arriving update time, to realizing automatically and upgrading without driving without the installation procedure of soft Key, and without artificial participation, simplify updating operation process.
Brief description of the drawings
The method flow diagram of a kind of automatic software installation that Fig. 1 provides for the embodiment of the present invention one;
A kind of method flow diagram of the automatic software installation of installation process for the first time of realizing that Fig. 2 provides for the embodiment of the present invention two;
The method flow diagram of a kind of automatic software installation of realizing escalation process that Fig. 3 provides for the embodiment of the present invention three;
The device block scheme of a kind of automatic software installation that Fig. 4 provides for the embodiment of the present invention four;
A kind of device block scheme of the automatic software installation of install driver for the first time of realizing that Fig. 5 provides for the embodiment of the present invention four;
A kind of device block scheme of automatic software installation of realizing upgrading driver that Fig. 6 provides for the embodiment of the present invention four.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described in further detail.
Embodiment mono-
The method of a kind of automatic software installation that the embodiment of the present invention one provides, carrying out before the method for the present embodiment, has set up and has been connected with computing machine without driving without soft Key, as shown in Figure 1, comprising:
Steps A: obtain download address after receiving trigger message;
In the present embodiment, in described steps A obtain download address before comprise steps A ', steps A ': receiving described trigger message, judge whether to download up-to-date drive installation bag, is to perform step A, otherwise finishes;
In installation process for the first time, steps A ' be specially: in the time receiving the first trigger message, described device is activated, and judges local whether installation without driving the driver without soft Key, is to finish, otherwise obtains download address; The download address of obtaining in steps A can be the direct download address of up-to-date driving bag and/or the default address of configuration file.
In update process, in the time receiving the second trigger message, first according to default address download configuration file, when the driving version number in configuration file is during higher than the version number of this locality install driver, from configuration file, obtain download address for subsequent use; Or in the time receiving the second trigger message, directly obtain the download address setting in advance;
In the present embodiment, described the first trigger message is to insert the trigger message of computing machine or the trigger message of click button installation without driving without soft KEY; Described the second trigger message is to insert computing machine and arrive the trigger message of update cycle or the trigger message of click upgrade button without driving without soft KEY.
Step B: downloading up-to-date drive installation bag according to described download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C;
In the present embodiment, in step B, can from the webserver, directly download according to the download address of obtaining up-to-date drive installation bag, and/or download up-to-date drive installation bag according to download address for subsequent use in configuration file from the webserver; Download address for subsequent use in configuration file can arrange one or more;
While installation for the first time, the download of configuration file can be carried out in steps A, also can in step B, carry out;
In update process, when in steps A, obtain be the download address setting in advance time, in the time that step B is judged as YES, first perform step B ', step B ' comprising: the version number of more described up-to-date drive installation bag and the local version number of install driver, as described in the driving version number of up-to-date drive installation bag higher, perform step D, as higher in the version number of this locality install driver, finish.
Step C: judge whether download time exceedes default number of retries, is to finish, otherwise return to step B;
Step D: obtaining signing certificate from described up-to-date drive installation bag, and judge that whether described signing certificate is legal, is to perform step E, otherwise finish;
Step e: judge whether active user is keeper, is to perform step G, otherwise execution step F;
Step F: creative management person's authority process, and judge that whether establishment is successful, is to perform step G, otherwise finishes;
Step G: described up-to-date drive installation bag is installed;
In update process, step G is specially: cover described up-to-date drive installation bag is installed.
In the present embodiment, in described steps A, receive trigger message and obtain between download address and can also comprise:
Steps A 01: judging whether it has set up and be connected with the webserver, is to perform step A03, otherwise execution step A02;
Steps A 02: connect with the webserver, and judge that whether connection is successful, is to perform step A03, otherwise finishes;
Steps A 03: whether be keeper, be to obtain download address if detecting active user, order performs step B, otherwise execution step A04;
Steps A 04: judge that operating system in current computer, whether higher than predetermined system, is to perform step A05, otherwise execution step A06;
Steps A 05: judge whether user account control interface is opened, and is to finish, otherwise execution step A06;
Steps A 06: output information, wait for that user confirms;
Steps A 07: receive the information of user's input, judge whether described information is the information of confirming continuation, is to obtain download address, and order performs step B, otherwise finishes.
(1), in the present embodiment, in the time installing for the first time, steps A and step B are to there being following six kinds of implementations;
(1) download address of obtaining in steps A is download address for subsequent use in configuration file, and described steps A comprises:
Steps A 11: according to default address download configuration file from the webserver, and judging whether to download successfully, is to perform step A13, otherwise execution step A12;
Steps A 12: judge whether download time exceedes default number of retries, is to finish, otherwise return to steps A 11;
Steps A 13: obtain download address for subsequent use from described configuration file, order performs step B.
1. when download address for subsequent use in described configuration file arranges one, described step B comprises:
Downloading up-to-date drive installation bag according to described download address for subsequent use from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C.
2. when download address for subsequent use in described configuration file arranges many, described step B comprises:
Step B11: using Article 1 download address for subsequent use in described configuration file as current download address;
Step B12: downloading up-to-date drive installation bag according to described current download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B13;
Step B13: judging whether download address for subsequent use in described configuration file is finished, is to perform step C, otherwise execution step B14;
Step B14: using next download address for subsequent use in described configuration file as current download address, return to step B12.
(2) download address of obtaining in steps A is the download address setting in advance, and described steps A comprises: obtain default download address.
(3) download address of obtaining in steps A is the first download address of setting in advance and the default address for download configuration file, and in steps A download configuration file, described steps A comprises:
Steps A 21: obtain the first download address and default address;
Steps A 22: according to described default address download configuration file from the webserver, and judging whether to download successfully, is to perform step A24, otherwise execution step A23;
Steps A 23: judge whether download time exceedes default number of retries, is to finish, otherwise return to steps A 22;
Steps A 24: obtain the second download address for subsequent use from described configuration file, order performs step B.1. when the second download address for subsequent use in described configuration file arranges one, described step B comprises:
Step B21: downloading up-to-date drive installation bag according to described the first download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B22;
Step B22: downloading up-to-date drive installation bag according to described the second download address for subsequent use from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C.
2. when the second download address for subsequent use in described configuration file arranges many, described step B comprises:
Step B31: downloading up-to-date drive installation bag according to described the first download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B32;
Step B32: using download address for subsequent use Article 1 in described configuration file as current the second download address;
Step B33: downloading up-to-date drive installation bag according to current the second download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B34;
Step B34: judge whether the second download address for subsequent use in described configuration file is finished, and is to perform step C, otherwise execution step B35;
Step B35: next second download address for subsequent use in described configuration file, as current the second download address, is returned to step B33.
(4) download address of obtaining in steps A is the first download address of setting in advance and the default address for download configuration file, and in step B download configuration file, in this implementation configuration file, download address for subsequent use arranges many;
Described steps A comprises: obtain the first download address and default address;
Described step B comprises:
Step B41: downloading up-to-date drive installation bag according to described the first download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B42;
Step B42: according to described default address download configuration file from the webserver, and judging whether to download successfully, is to perform step B44, otherwise execution step B43;
Step B43: judge whether download time exceedes default number of retries, is to finish, otherwise return to step B42;
Step B44: using download address for subsequent use Article 1 in described configuration file as current the second download address;
Step B45: downloading up-to-date drive installation bag according to current the second download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B46;
Step B46: judge whether the second download address for subsequent use in described configuration file is finished, and is to perform step C, otherwise execution step B47;
Step B47: next second download address for subsequent use in described configuration file, as current the second download address, is returned to step B45.
(5) download address of obtaining in steps A is the first download address of setting in advance and the default address for download configuration file, and in step B download configuration file, in this implementation configuration file, download address for subsequent use arranges one;
Described steps A comprises: obtain the first download address and default address;
Described step B comprises:
Step B51: downloading up-to-date drive installation bag according to described the first download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B52;
Step B52: according to described default address download configuration file from the webserver, and judging whether to download successfully, is to perform step B54, otherwise execution step B53;
Step B53: judge whether download time exceedes default number of retries, is to finish, otherwise return to step B52;
Step B54: downloading up-to-date drive installation bag according to the second download address in described configuration file from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C.
(6) download address of obtaining in steps A is the first download address of setting in advance and the default address for download configuration file, and downloads up-to-date drive installation bag and configuration file according to the first download address and default address from the webserver in step B simultaneously;
Described steps A comprises: obtain the first download address and default address;
Described step B comprises:
Download up-to-date drive installation bag and configuration file according to described the first download address and default address from the webserver respectively, and judge respectively whether described up-to-date drive installation bag and configuration file are downloaded successfully,
As both all do not download successfully, perform step C;
As described in only having, up-to-date drive installation bag is downloaded successfully, performs step D;
As configuration file is downloaded successfully as described in only having, download up-to-date drive installation bag according to the second download address in configuration file from the webserver, and judge whether to download successfully, be to perform step D, otherwise finish;
As both all download successfully, download up-to-date drive installation bag according to the download address in described configuration file from the webserver, and detect according to the up-to-date drive installation bag of the described first default address download with according to the height of the version number of the up-to-date drive installation bag of described the second download address download, order performs step D; Step D is specially: from the highest up-to-date drive installation bag of version number, obtaining signing certificate, and judge that whether described signing certificate is legal, is to perform step E, otherwise finishes.
(2), in the present embodiment, in the time of update, steps A and step B are to there being following several implementation;
(1) judge whether to carry out upgrading processing before A in execution step, in the time of needs upgrading processing, download again up-to-date drive installation bag, in described steps A obtain download address before comprise steps A ", described steps A " comprising:
Steps A " 1: in the time receiving the second trigger message, according to default address download configuration file from the webserver, and judging that whether download is successful, is to perform step A " 3, otherwise execution step A " 2;
Steps A " 2: judge whether download time exceedes default number of retries, is to finish, otherwise return to steps A " 1, re-start download;
Steps A " 3: the relatively version number of the up-to-date drive installation bag in configuration file and the local version number of install driver; as described in driving version number in configuration file higher; perform step A, as higher in the version number of this locality install driver, finish.
Described steps A comprises: from described configuration file, obtain download address.
1. when the download address in described configuration file arranges one, described step B comprises: download up-to-date drive installation bag according to the described download address of obtaining from the webserver.
2. when the download address in described configuration file arranges many, described step B comprises:
Step B61: using the described Article 1 download address of obtaining as current download address;
Step B62: downloading up-to-date drive installation bag according to current download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B63;
Step B63: whether the download address of obtaining described in judgement is finished, is to perform step C, otherwise execution step B64;
Step B64: using described next that an obtain download address as current download address, return to step B62.
(2) first download up-to-date drive installation bag according to the download address setting in advance from the webserver, when the version number of up-to-date drive installation bag is during higher than the version number of local installed drivers, then carry out upgrading processing;
Described steps A comprises: in the time receiving the second trigger message, obtain default download address;
Between described step B and step D, comprise step B ', step B is judged as YES rear execution step B ',
Step B ': the version number of more described up-to-date drive installation bag and the local version number of install driver, as described in the driving version number of up-to-date drive installation bag higher, perform step D, as higher in the version number of this locality install driver, finish.
(3) download up-to-date drive installation bag and configuration file according to the first download address and default address from the webserver, carry out different upgrading processing processes for the difference of the situation of download simultaneously;
Described steps A comprises: in the time receiving the second trigger message, obtain the first download address and default address;
Described B comprises:
Download up-to-date drive installation bag and configuration file according to described the first download address and default address from the webserver respectively, and judge respectively whether described up-to-date drive installation bag and configuration file are downloaded successfully,
As both all do not download successfully, perform step C;
As described in only having, up-to-date drive installation bag is downloaded successfully, the version number of more described up-to-date drive installation bag and the local version number of install driver, as as described in the driving version number of up-to-date drive installation bag higher, perform step D, as higher in the version number of this locality install driver, finish;
As described in only having, configuration file is downloaded successfully, download up-to-date drive installation bag according to download address for subsequent use in configuration file from the webserver, and judge that whether download is successful, version number and the local version number of install driver of more described up-to-date drive installation bag, as as described in the driving version number of up-to-date drive installation bag higher, perform step D, as higher in the version number of this locality install driver, finish; As download unsuccessfully, finish;
As both all download successfully, download up-to-date drive installation bag according to the standby address in described configuration file from the webserver, and judge whether to download successfully, version number and the local height of the version number of install driver that detects the up-to-date drive installation bag of downloading according to the described first default address, the up-to-date drive installation bag of downloading according to described standby address, as higher in the driving version number of up-to-date drive installation bag, perform step D, as higher in the version number of this locality install driver, finish; As download unsuccessfully, finish; Step D is specially: from the highest up-to-date drive installation bag of version number, obtaining signing certificate, and judge that whether described signing certificate is legal, is to perform step F, otherwise finishes.
In the escalation process of the present embodiment, when driving version number to be preset in configuration file, can first download configuration file, download up-to-date drive installation bag according to download address for subsequent use in configuration file from the webserver again, then the height of the version number of more up-to-date drive installation bag and the version number of local installed drivers, or download up-to-date drive installation bag according to download address for subsequent use in configuration file from the webserver successively, more all successfully your version numbers of up-to-date drive installation bag and the height of the version number of local installed drivers of downloading, carry out upgrading processing, also can first download up-to-date drive installation bag according to default download address, download when unsuccessful downloading according to download address for subsequent use in configuration file, or download up-to-date drive installation bag according to download address for subsequent use in default download address and configuration file from the webserver simultaneously, carry out upgrading processing.The concrete downloading process from the webserver can, with reference to aforesaid way, not repeat them here.
In the present embodiment, in the time receiving trigger message, download drive installation bag and install from server according to download address, to lower without driving without the hardware requirement of soft Key, saving production cost; When receive be the first trigger message time, realize installation process for the first time, when receive be the second trigger message time, carry out update process, whole installation process is without artificial participation, simplifies install operation process, is user-friendly to.
Embodiment bis-
The embodiment of the present invention two provides a kind of method of automatic software installation, realizes installation process for the first time, specifically describes as an example of (4) kind mode example.In the time that nothing is driven without soft Key insertion computing machine, download drive installation bag by the first default download address from the webserver, as download and successfully carry out installation process, as download unsuccessful again by default address access services device download configuration file, download described drive installation bag according to the second download address for subsequent use in configuration file from the webserver, as download and successfully carry out installation process, unsuccessfully finish as downloaded.Referring to Fig. 2, the method that the present embodiment provides comprises:
Step 201: described in the time receiving the first trigger message, device starts, described device judges whether this locality has been installed described nothing and driven the driver without soft Key, is to finish, otherwise execution step 202;
In the present embodiment, computing machine receives and loads iso program after the first trigger message is that described device is activated, and described the first trigger message is the trigger message of clicking button installation without the trigger message of soft Key insertion computing machine or user without driving; Step 201 is specially: described device reads the mark version in registration table, judges whether the value of version is 1, is described nothing to be installed drive the installation kit without soft Key, otherwise does not install;
Step 202: described device judges whether to have set up and be connected with the webserver, is to perform step 204, otherwise execution step 203;
In the present embodiment, step 202 is specially: described device judges current network connection status by system function InternetCheckConnection;
Step 203: described device and the webserver connect, and judge that whether connection is successful, is to perform step 204, otherwise finishes;
Whether particularly, in the present embodiment, computing machine obtains network state by calling system function InternetGetConnectedState, can be connected with server by calling system function InternetCheckConnection judgement;
Step 204: described device detects whether active user is keeper, is to perform step 209, otherwise execution step 205;
Particularly, in the present embodiment, step 204 specifically comprises:
Step 204-1: described device judges whether current process has administrator right, is to perform step 204-2, otherwise execution step 205;
Step 204-2: the information that described device obtains active user and described active user judges whether active user is keeper, is to perform step 209, otherwise execution step 205;
Step 205: described device judges that current operating system version, whether higher than default operating system version, is to perform step 206, otherwise execution step 207;
Preferably, in the present embodiment, described default operating system is Vista;
Step 206: described device judges whether user account control interface is opened, and is to finish, otherwise execution step 207;
In the present embodiment, step 206 is specially: by reading the mark of UAC in registration table, judge whether the mark of UAC is preset value, be to be opened, otherwise be not opened;
Step 207: described device output information, treat that user confirms;
Preferably, in the present embodiment, described information is that " active user non-administrator, can need you to input keeper's account and password in installation process, continue? "
Step 208: described device receives the information of user's input, judges whether the information of described input is the information of confirming continuation, is to perform step 209, otherwise end operation;
Step 209: described device obtains default address and the first download address;
Step 210: described device is downloaded up-to-date drive installation bag according to the first download address from the webserver, judges whether after download to download successfully, is to perform step 217, otherwise execution step 211;
In the present embodiment, as the name of up-to-date drive installation bag is called " ABCDSetup ", the first download address is " http://www.xxxxx.cn/update/down/ABCDSetup.exe ";
In the present embodiment, judge to download whether be successfully specially: after downloading, judge according to described default memory address whether the local file of up-to-date drive installation bag exists, exist and download successfully, there is not failed download, continue according to default fixed address download configuration file;
Between step 210 and step 211, also can comprise step 210 ', when being judged as NO, step 210 performs step 210 ';
Step 210 ': described device judges whether download time exceedes default number of retries, is to perform step 211, otherwise returns to step 209;
In the present embodiment, also can not perform step 209 and step 210, while being judged as YES in step 208, order performs step 211;
Step 211: the default address of described device basis download configuration file from described server, and judge whether to download successfully, be to perform step 213, otherwise execution step 212;
In the present embodiment, as described in configuration file name be called " ABCDVer ", described default address is: http://www.xxxxx.cn/update/down/ABCVDer.ini; Described configuration file comprises following content:
Configuration file format is
[version]
Version=// up-to-date K Bao Qudonganzhuanbao of agricultural bank
[update]
Updatetime=10//update cycle is set
The standby address 1 of Adr1=// up-to-date drive installation bag
The standby address 2 of Adr2=// up-to-date drive installation bag
The standby address 3 of Adr3=// up-to-date drive installation bag;
In the present embodiment, judge whether to download successfully and be specially: after downloading, described device judges according to default memory address whether the local file of configuration file exists, and existence is downloaded successfully, does not have failed download;
Step 212: described device judges whether download time exceedes default number of retries, is to finish, otherwise returns to step 211;
Step 213: using download address for subsequent use Article 1 in described configuration file as current the second download address;
Step 214: described device is downloaded up-to-date drive installation bag according to current the second download address from the webserver, and judges whether to download successfully, is to perform step 217, otherwise execution step 215;
In the present embodiment, judge to download whether be successfully specially: after downloading, described device judges according to described default memory address whether the local file of up-to-date drive installation bag exists, and exists and downloads successfully, does not have failed download;
Step 215: described device judges whether the standby address in described configuration file exhausts, and is to finish, otherwise execution step 216;
Step 216: described device as current the second download address, returns to next second download address for subsequent use in described configuration file to step 214;
Step 217: described device obtains signing certificate from the local file of described up-to-date drive installation bag;
Step 218: described device verifies that whether described signing certificate is legal, is to perform step 219, otherwise finish;
In the present embodiment, step 218 specifically comprises:
Step 218-1: described device judges that by WinVerifyTrust function whether described signing certificate is legal windows signature, is to perform step 218-2, otherwise finishes;
Step 218-2: whether the signing certificate obtaining described in described device judgement is signed and issued by VeriSign, is to perform step 219, otherwise end operation;
Step 218-2 is specially: described device obtains root card from described signing certificate, judges whether described card conforms to the certificate chain of VeriSign;
Step 219: described device judges whether active user is keeper, is to perform step 221, otherwise execution step 220;
In this enforcement, the deterministic process of this step is identical with step 204, repeats no more;
Step 220: described device creative management person authority process, and judge that whether establishment is successful, is to perform step 221, otherwise finishes;
In the present embodiment, step 220 is specially: described device calling system function creation administrator right process, and obtain rreturn value, whether the rreturn value of obtaining described in judging is " success ", is to perform step 221, otherwise finishes;
Described in the present embodiment, system function is specially ShellExecuteEx;
Step 221: described device is installed described up-to-date drive installation bag on described computing machine.
Configuration file in the present embodiment also can be pre-stored without in driving without the iso file on soft Key, implementation procedure is saved step 211 and step 212, when step 210 is judged as NO, sequentially performs step 213.
In the present embodiment, download the process of up-to-date drive installation bag and according to the process interchangeable of default address download configuration file according to the first download address, i.e. step 210 and step 211-216 interchangeable.
In the present embodiment, also can on server, download up-to-date drive installation bag and configuration file from network respectively according to the first download address and default address simultaneously, download up-to-date drive installation bag according to all standby addresss in configuration file again, finally judge the height of the version number of the up-to-date drive installation bag of all downloads, and the highest up-to-date drive installation bag of version number is carried out to installation process.
In the present embodiment, also can first download configuration file, download up-to-date drive installation bag according to the second download address for subsequent use in configuration file from the webserver, download when unsuccessful and download up-to-date drive installation bag according to the first download address from server again.The present embodiment drives the method for bag by Auto-mounting, when without after driving and being inserted on computing machine without soft Key, automatically download drive installation bag and carry out installation process from the webserver, save without driving the hardware resource without soft Key, reduce without driving the hardware requirement without soft Key.
Embodiment tri-
The embodiment of the present invention three provides a kind of method of the automatic software installation at escalation process, concrete plant and in implementation and configuration file, be provided with many articles of download address and describe as example taking (1) of escalation process, when nothing is driven without soft Key insertion computing machine and in the time that driver arrives the update cycle, device is by default address download configuration file from the webserver, relatively version number's height of the up-to-date drive installation bag in version number and the configuration file of installed drivers in local computer, in the time that the version number of the up-to-date drive installation bag in configuration file is higher, described device is downloaded up-to-date drive installation bag according to the download address in configuration file from the webserver, mounted described nothing in computing machine is driven without the driver of soft Key and carried out upgrading processing.As shown in Figure 3, comprising:
Step 301: in the time receiving the second trigger message, described device judges whether to have set up and be connected with the webserver, is to perform step 303, otherwise execution step 302;
In the present embodiment, step 301 is specially: judge current network connection status by system function InternetCheckConnection;
In the present embodiment, described the second trigger message is the trigger message that inserts computing machine and the trigger message of arrival update cycle or user and click upgrade button without soft KEY without driving; The time that described device records driver while upgrading for the last time, when the interval of the time in the time that last update time and driver are installed for the first time arrives the predetermined update cycle, generate the second trigger message.
Step 302: described device and the webserver connect, and judge that whether connection is successful, is to perform step 303, otherwise finishes;
Whether particularly, in the present embodiment, computing machine obtains network state by calling system function InternetGetConnectedState, can be connected with server by system function InternetCheckConnection judgement;
Step 303: described device detects whether active user is keeper, is to perform step 308, otherwise execution step 304;
Particularly, in the present embodiment, step 303 specifically comprises:
Step 303-1: described device, by judging whether current process has administrator right, is to perform step 303-2, otherwise execution step 304;
Step 303-2: the information that described device obtains active user and described active user judges whether active user is keeper, is to perform step 308, otherwise execution step 304;
Step 304: described device judges that current operating system version, whether higher than default operating system version, is to perform step 305, otherwise execution step 306;
Preferably, in the present embodiment, described default operating system is Vista;
Step 305: described device judges whether user account control interface is opened, and is to finish, otherwise execution step 306;
In the present embodiment, step 305 is specially: by reading the mark of UAC in registration table, the mark that judges UAC whether with preset value, be that user account control interface is opened, otherwise be not opened;
Step 306: described device output information, treat that user confirms;
Preferably, in the present embodiment, described information is that " active user non-administrator, can need you to input keeper's account and password in installation process, continue? "
Step 307: described device receives the information of user's input, judges whether the information of described input is the information of confirming continuation, is to perform step 308, otherwise end operation;
Step 308: the default address of described device basis download configuration file from the webserver, and judge whether to download successfully, be to perform step 310, otherwise execution step 309;
In the present embodiment, as described in configuration file name be called " ABCDVer ", described fixed address is: http://www.xxxxx.cn/update/down/ABCDVer.ini; Described configuration file comprises following content:
Configuration file format is
[version]
The version of version=// up-to-date drive installation bag
[update]
Updatetime=10//update cycle is set
The standby address 1 of Adr1=// up-to-date drive installation bag
The standby address 2 of Adr2=// up-to-date drive installation bag
The standby address 3 of Adr3=// up-to-date drive installation bag;
In the present embodiment, judge whether to download to be successfully specially: after downloading, judge according to default memory address whether the local file of configuration file exists, exist and download successfully, do not have failed download;
Step 309: described device judges whether download time exceedes default number of retries, is to finish, otherwise returns to step 308, re-starts download;
Step 310: described device obtains the version number of up-to-date drive installation bag from described configuration file, and described in judgement, whether the version number that obtains, higher than the version number of local installed drivers, is to perform step 311, otherwise finishes;
Step 311: described device obtains download address from described configuration file;
Step 312: described device is using the Article 1 download address of obtaining as current download address;
Step 313: described device is downloaded up-to-date drive installation bag according to current download address from the webserver, and judges whether to download successfully, is to perform step 317, otherwise execution step 314;
In the present embodiment, judge whether to download successfully and be specially: after downloading, described device judges according to described default memory address whether the local file of up-to-date drive installation bag exists, exist and download successfully, do not have failed download,
Step 314: whether the download address of obtaining described in described device judgement is finished, and is to perform step 316, otherwise execution step 315;
Step 315: described device, using described next that an obtain download address as current download address, returns to step 313, re-starts download;
Step 316: described device judges whether download time exceedes default number of retries, is to finish, otherwise returns to step 312;
Step 317: described device obtains signing certificate from described up-to-date drive installation bag;
Step 318: described device verifies that whether described signing certificate is legal, is to perform step 319, otherwise finish;
In the present embodiment, step 318 specifically comprises:
Step 318-1: described device judges that by WinVerifyTrust function whether described signing certificate is legal windows signature, is to perform step 318-2, otherwise finishes;
Step 318-2: whether the signing certificate obtaining described in described device judgement is signed and issued by VeriSign, is to perform step 319, otherwise end operation;
Particularly, from described signing certificate, obtain root card, judge whether described card conforms to the certificate chain of VeriSign;
Step 319: described device judges whether active user is keeper, is to perform step 321, otherwise execution step 320;
Step 320: described device creative management person authority process, and judge that whether establishment is successful, is to perform step 321, otherwise finishes;
In the present embodiment, step 320 is specially: described device calling system function creation administrator right process, and obtain rreturn value, and judge that whether described rreturn value is " success ", is to create successfully, otherwise creates unsuccessful;
Described system function in the present embodiment is specially ShellExecuteEx;
Step 321: described device covers installs the described up-to-date drive installation bag of having downloaded.
In the present embodiment, described device also can directly be downloaded up-to-date drive installation bag from server according to default download address, then compare the height of the version number of the version number of installed drivers and the up-to-date drive installation bag of download, as higher in the version number of the up-to-date drive installation bag of downloading, carry out upgrading processing, cover the described up-to-date drive installation bag of having downloaded is installed; As higher in the version number of installed drivers, finish;
Or in the present embodiment, described device is downloaded drive installation bag according to default the first download address and default address from server simultaneously, as both all do not download successfully, judge whether download time exceedes preset times, is to finish, otherwise re-start download;
As described in only having, up-to-date drive installation bag is downloaded successfully, the version number of more described up-to-date drive installation bag and the local version number of install driver, as as described in the driving version number of up-to-date drive installation bag higher, perform step 317, as higher in the version number of this locality install driver, finish;
As described in only having, configuration file is downloaded successfully, download up-to-date drive installation bag according to download address for subsequent use in configuration file from the webserver, and judge that whether download is successful, version number and the local version number of install driver of more described up-to-date drive installation bag, as as described in the driving version number of up-to-date drive installation bag higher, perform step 317, as higher in the version number of this locality install driver, finish; As download unsuccessfully, finish;
As both all download successfully, download up-to-date drive installation bag according to the standby address in described configuration file from the webserver, and judge whether to download successfully, version number and the local height of the version number of install driver that detects the up-to-date drive installation bag of downloading according to the described first default address, the up-to-date drive installation bag of downloading according to described standby address, as higher in the driving version number of up-to-date drive installation bag, perform step 317, as higher in the version number of this locality install driver, finish; As download unsuccessfully, finish; Step 317 is specially: from the highest up-to-date drive installation bag of version number, obtaining signing certificate, and judge that whether described signing certificate is legal, is to perform step 318, otherwise finishes.
The method of the automatic software installation in the present embodiment, in software upgrade process, in the time receiving the second trigger message, first download configuration file, compare again the version number of up-to-date drive installation bag and the version number of local installed drivers in configuration file, in the time that the version number of the up-to-date drive installation bag in configuration file is higher, carry out upgrading processing, automatically upgrade without artificial participation, and up-to-date drive installation bag need to be downloaded from the webserver, save without driving the hardware resource without soft Key, reduce without driving the hardware requirement without soft Key.
Embodiment tetra-
The embodiment of the present invention four provides a kind of device from mounting software, as shown in Figure 4, comprising:
Receiver module 401: for receiving trigger message;
In the present embodiment, described trigger message comprises the first trigger message or the second trigger message; Described the first trigger message is to insert the trigger message of computing machine or the trigger message of click button installation without driving without soft KEY; Described the second trigger message is to insert computing machine and arrive the trigger message of update cycle or the trigger message of click upgrade button without driving without soft KEY;
Acquisition module 402: obtain download address after receiving trigger message at described receiver module 401;
In the present embodiment, described acquisition module 402 specifically comprises:
The first acquiring unit: obtain the first download address and/or default address after receiving trigger message at described receiver module 401;
Second acquisition unit: for obtaining configuration file the second download address for subsequent use;
Download judge module 403: for downloading up-to-date drive installation bag according to described download address from the webserver, and judge whether to download successfully; And/or for according to described default address download configuration file from the webserver, and judge whether to download successfully;
Described download address comprise the first download address and or the second download address;
The first judge module 404: when unsuccessful for downloading in described download judge module 403 judgements, judge whether download time exceedes default number of retries;
Obtain judge module 405: in the time that described download judge module 403 judgements are downloaded successfully, from described up-to-date drive installation bag, obtain signing certificate, and judge that whether described signing certificate is legal;
The second judge module 406: in the time that described signing certificate is legal, judge whether active user is keeper;
Create judge module 407: while being not keeper for active user, creative management person's authority process, and judge that whether establishment is successful;
Installation module 408: for described up-to-date drive installation bag is installed under administrator right.
As shown in Figure 5, in the time that described device is used for realizing for the first time install driver, the device that the present embodiment provides also comprises the 3rd judge module 409: in the time receiving trigger message, judge whether to download up-to-date drive installation bag;
For improving the security of automatic downloading software, the device that the present embodiment provides further also comprises:
The 4th judge module 411: for judging whether described device has been set up and be connected with the webserver;
Set up judge module 412: in the time that described the 4th judge module 411 is judged as NO, described device and the webserver are connected, and judge that whether connection is successful;
The second detection module 413: whether in the time that described device and the webserver connect, detecting active user is keeper;
The 5th judge module 414: in the time that active user is not keeper, judge that whether operating system in current computer is higher than predetermined system;
The 6th judge module 415: in the time that described the 5th judge module 414 is judged as YES, judge whether user account control interface is opened;
Output module 416: in the time that described the 5th judge module 414 and the 6th judge module 415 are judged as NO, output information, waits for that user confirms;
Receive judge module 417: for receiving the information of user's input, judge whether described information is the information of confirming continuation.
As shown in Figure 6, in the time that described device is used for realizing the escalation process of driver, the device that the present embodiment provides also comprises:
First detection module 410: for detection of the height of the version number of up-to-date drive installation bag and the version number of local installed drivers;
Described installation module 408 is installed described up-to-date drive installation bag specifically for covering;
For improving the security of automatic downloading software, the device that the present embodiment provides further also comprises:
The 4th judge module 411: for judging whether described device has been set up and be connected with the webserver;
Set up judge module 412: for being judged as NO at described the 4th judge module 411 be, described device and the webserver are connected, and judge that whether connection is successful;
The second detection module 413: whether in the time that described device and the webserver connect, detecting active user is keeper;
The 5th judge module 414: in the time that active user is not keeper, judge that whether operating system in current computer is higher than predetermined system;
The 6th judge module 415: in the time that described the 5th judge module 414 is judged as YES, judge whether user account control interface is opened;
Output module 416: in the time that described the 5th judge module 414 and the 6th judge module 415 are judged as NO, output information, waits for that user confirms;
Receive judge module 417: for receiving the information of user's input, judge whether described information is the information of confirming continuation.
The device providing in the present embodiment, can realize the process of upgrading after installing for the first time and installing of wrapping without the driving packaging of soft Key without driving, save manually operated process, and without driving without only pre-stored download address or default address and without storing driver installation kit in soft Key, save without driving the hardware resource without soft Key, reduce without driving the hardware requirement without soft Key.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (10)

1. Auto-mounting, without a method of driving without the driver of soft Key, is characterized in that, comprising:
Steps A: obtain download address after receiving trigger message;
Step B: downloading up-to-date drive installation bag according to described download address from the webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C;
Step C: judge that whether download time exceedes the first default number of retries, is to finish, otherwise returns to step B;
Step D: obtaining signing certificate from described up-to-date drive installation bag, and judge that whether described signing certificate is legal, is to perform step E, otherwise finish;
Step e: judge whether active user is keeper, is to perform step G, otherwise execution step F;
Step F: calling system function ShellExecuteEx creative management person authority process, and obtain rreturn value, judge whether described rreturn value is " success ", is to perform step G, otherwise finish;
Step G: described up-to-date drive installation bag is installed;
Described steps A comprises:
Steps A 10: in the time receiving the first trigger message, device is activated, described device judges local whether installation without driving the driver without soft Key, is to finish, otherwise execution step A11; Described the first trigger message is to insert the trigger message of computing machine or the trigger message of click button installation without driving without soft Key;
Steps A 11: obtain default address, and according to described default address download configuration file from the webserver, and judge whether to download successfully, be to perform step A13, otherwise execution step A12;
Steps A 12: whether the download time that judges described configuration file exceedes the second default number of retries, is to finish, otherwise returns to steps A 11;
Steps A 13: obtain download address for subsequent use from described configuration file;
Described step B comprises:
Step B11: using Article 1 download address for subsequent use in described configuration file as current download address;
Step B12: downloading up-to-date drive installation bag according to described current download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step B13;
Step B13: judging whether download address for subsequent use in described configuration file is finished, is to perform step C, otherwise execution step B14;
Step B14: using next download address for subsequent use in described configuration file as current download address, return to step B12;
Described step e comprises:
Step e 11: judging whether current process has administrator right, is to perform step E12, otherwise execution step F;
Step e 12: obtain active user and described active user's information and judge whether described active user is keeper, is to perform step G, otherwise execution step F.
2. the method for claim 1, is characterized in that, in described configuration file, download address for subsequent use arranges one, and described step B11-step B14 replaces with:
Downloading up-to-date drive installation bag according to described download address for subsequent use from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step C.
3. method as claimed in claim 1 or 2, is characterized in that, comprises: obtain the first download address between described steps A 10 and steps A 11;
Downloading up-to-date drive installation bag according to described the first download address from the described webserver, and judge whether to download successfully, is to perform step D, otherwise execution step A11.
4. the method for claim 1, is characterized in that, described steps A-step B replaces with:
Steps A 20: in the time receiving the first trigger message, device is activated, described device judges local whether installation without driving the driver without soft Key, is to finish, otherwise execution step A21; Described the first trigger message is to insert the trigger message of computing machine or the trigger message of click button installation without driving without soft Key;
Steps A 21: obtain the first download address and default address;
Steps A 22: download up-to-date drive installation bag and configuration file according to described the first download address and default address from the described webserver respectively, and judge respectively whether described up-to-date drive installation bag and configuration file are downloaded successfully;
As both all do not download successfully, perform step C;
As described in only having, up-to-date drive installation bag is downloaded successfully, performs step D;
As configuration file is downloaded successfully as described in only having, download up-to-date drive installation bag according to download address for subsequent use in configuration file from the described webserver, and judge whether to download successfully, be to perform step D, otherwise finish;
As both all download successfully, download up-to-date drive installation bag according to download address for subsequent use in described configuration file from the described webserver, and judge whether to download successfully, successfully detect as downloaded according to as described in the up-to-date drive installation bag downloaded of the first download address and according to as described in the height of version number of the up-to-date drive installation bag that download address for subsequent use is downloaded in configuration file, use the higher up-to-date drive installation bag of version number, order performs step D; As download the unsuccessful D that performs step; Describedly download up-to-date drive installation bag according to download address for subsequent use in described configuration file from the described webserver, and judge whether to download successfully, specifically comprise:
Step S11: obtain download address for subsequent use from described configuration file, execution step S12;
Step S12: using Article 1 download address for subsequent use in described configuration file as current download address;
Step S13: downloading up-to-date drive installation bag according to described current download address from the described webserver, and judge whether to download successfully, is to continue, otherwise execution step S14;
Step S14: judging whether download address for subsequent use in described configuration file is finished, is to perform step C, otherwise execution step S15;
Step S15: using next download address for subsequent use in described configuration file as current download address, return to step S13.
5. the method for claim 1, is characterized in that, described steps A-step B replaces with:
Steps A 31: in the time receiving the second trigger message, obtain the first download address and default address; Described the second trigger message is to insert computing machine and arrive the trigger message of update cycle or the trigger message of click upgrade button without driving without soft Key;
Steps A 32: download up-to-date drive installation bag and configuration file according to described the first download address and default address from the described webserver respectively, and judge respectively whether described up-to-date drive installation bag and described configuration file are downloaded successfully,
As both all do not download successfully, perform step C;
As described in only having, up-to-date drive installation bag is downloaded successfully, the version number of more described up-to-date drive installation bag and the local version number of install driver, as as described in the version number of up-to-date drive installation bag higher, perform step D, as as described in the version number of install driver is higher in this locality, finish;
As described in only having, configuration file is downloaded successfully, download up-to-date drive installation bag according to download address for subsequent use in described configuration file from the described webserver, and judge that whether download is successful, as as described in downloading successfully relatively up-to-date drive installation bag version number and as described in this locality version number of install driver, as as described in the version number of up-to-date drive installation bag higher, perform step D, as described in the version number of install driver is higher in this locality, finish; As download unsuccessfully, finish;
As both all download successfully, download up-to-date drive installation bag according to download address for subsequent use in described configuration file from the described webserver, and judge whether to download successfully, successfully detect as downloaded according to as described in the version number of up-to-date drive installation bag that downloads of the first download address, version number and described this locality height of the version number of install driver of the up-to-date drive installation bag of downloading according to described download address for subsequent use, as according to as described in the up-to-date drive installation bag downloaded of the first download address or according to as described in the version number of the up-to-date drive installation bag downloaded of download address for subsequent use higher, use the higher up-to-date drive installation bag of version number, execution step D, as as described in the version number of install driver is higher in this locality, finish, as download unsuccessfully, finish,
Describedly download up-to-date drive installation bag according to download address for subsequent use in described configuration file from the described webserver, and judge whether to download successfully, specifically comprise:
Step S21: obtain download address for subsequent use from described configuration file, execution step S22;
Step S22: using Article 1 download address for subsequent use in described configuration file as current download address;
Step S23: downloading up-to-date drive installation bag according to described current download address from the described webserver, and judge whether to download successfully, is to continue, otherwise execution step S24;
Step S24: judging whether download address for subsequent use in described configuration file is finished, is to perform step C, otherwise execution step S25;
Step S25: using next download address for subsequent use in described configuration file as current download address, return to step S23.
6. method as claimed in claim 5, is characterized in that, described step G is specially: cover described up-to-date drive installation bag is installed.
7. the method for claim 1, is characterized in that, receives trigger message and obtain between download address to comprise in described steps A:
Steps A 01: judge whether it has set up and be connected with the described webserver, is to perform step A03, otherwise execution step A02;
Steps A 02: connect with the described webserver, and judge that whether connection is successful, is to perform step A03, otherwise finishes;
Steps A 03: whether be keeper, be to obtain download address if detecting active user, order performs step B, otherwise execution step A04;
Steps A 04: judge that operating system in current computer, whether higher than predetermined system, is to perform step A05, otherwise execution step A06;
Steps A 05: judge whether user account control interface is opened, and is to finish, otherwise execution step A06;
Steps A 06: output information, wait for that user confirms;
Steps A 07: receive the information of user's input, judge whether described information is the information of confirming continuation, is to obtain download address, and order performs step B, otherwise finishes.
8. Auto-mounting, without the device driving without the driver of soft Key, is characterized in that, comprising:
Receiver module: for receiving trigger message;
Acquisition module: obtain download address after receiving trigger message at described receiver module;
Download judge module: for downloading up-to-date drive installation bag according to described download address from the webserver, and judge whether to download successfully;
The first judge module: when unsuccessful for downloading in described download judge module judgement, judge whether download time exceedes the first default number of retries;
Obtain judge module: in the time that described download judge module judgement is downloaded successfully, from described up-to-date drive installation bag, obtain signing certificate, and judge that whether described signing certificate is legal;
The second judge module: in the time that described signing certificate is legal, judge whether active user is keeper;
Create judge module: while being not keeper for active user, calling system function ShellExecuteEx creative management person authority process, and obtain rreturn value, judge whether described rreturn value is " success ";
Installation module: for described up-to-date drive installation bag is installed under administrator right;
The trigger message that described receiver module receives comprises the first trigger message or the second trigger message; Described the first trigger message is to insert the trigger message of computing machine or the trigger message of click button installation without driving without soft KEY; Described the second trigger message is to insert computing machine and arrive the trigger message of update cycle or the trigger message of click upgrade button without driving without soft KEY;
Described acquisition module specifically comprises:
The first judging unit, for judging local whether installation without driving the driver without soft Key, is to finish, otherwise first downloads judging unit work;
Described first downloads judging unit, for obtaining default address, and according to described default address download configuration file from the webserver, and judge whether to download successfully, be the second judging unit work, otherwise the first acquiring unit work;
Described the second judging unit, for judging whether the download time of described configuration file exceedes the second default number of retries, be to finish, otherwise described first is downloaded judging unit work;
Described the first acquiring unit: for obtaining download address for subsequent use from described configuration file;
Described download judge module specifically comprises:
The first setting unit, for using Article 1 download address for subsequent use described configuration file as current download address;
Second downloads judging unit, for downloading up-to-date drive installation bag according to described current download address from the described webserver, and judges whether to download successfully, is to obtain judge module work described in, otherwise the 3rd judging unit work;
Described the 3rd judging unit, for judging whether described configuration file download address for subsequent use is finished, is the first judge module work, otherwise the second setting unit work;
Described the second setting unit, for using next download address for subsequent use described configuration file as current download address;
The second judge module specifically comprises:
The 4th judging unit, for judging whether current process has administrator right, is the 5th judging unit work, otherwise the work of described establishment judge module;
Described the 5th judging unit, for obtaining active user and described active user's information and judging whether described active user is keeper, is described installation module work, otherwise the work of described establishment judge module.
9. device as claimed in claim 8, is characterized in that, also comprises first detection module: for detection of the height of the version number of up-to-date drive installation bag and the version number of local installed drivers, and use the higher up-to-date drive installation bag of version number;
Described installation module is installed described up-to-date drive installation bag specifically for covering under administrator right.
10. device as claimed in claim 8, is characterized in that, also comprises:
The 4th judge module: for judging whether described device has been set up and be connected with the described webserver;
Set up judge module: in the time that described the 4th judge module is judged as NO, described device and the described webserver are connected, and judge that whether connection is successful;
The second detection module: whether when successful for connecting at described device and the described webserver, detecting active user is keeper;
The 5th judge module: in the time that described active user is not keeper, judge that whether operating system in current computer is higher than predetermined system;
The 6th judge module: in the time that described the 5th judge module is judged as YES, judge whether user account control interface is opened;
Output module: in the time that described the 5th judge module and the 6th judge module are judged as NO, output information, waits for that user confirms;
Receive judge module: for receiving the information of user's input, judge whether described information is the information of confirming continuation.
CN201210019286.9A 2012-01-20 2012-01-20 Method and device for automatically installing software Active CN102567063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210019286.9A CN102567063B (en) 2012-01-20 2012-01-20 Method and device for automatically installing software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210019286.9A CN102567063B (en) 2012-01-20 2012-01-20 Method and device for automatically installing software

Publications (2)

Publication Number Publication Date
CN102567063A CN102567063A (en) 2012-07-11
CN102567063B true CN102567063B (en) 2014-07-30

Family

ID=46412564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210019286.9A Active CN102567063B (en) 2012-01-20 2012-01-20 Method and device for automatically installing software

Country Status (1)

Country Link
CN (1) CN102567063B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020501B (en) * 2012-11-14 2017-02-15 无锡城市云计算中心有限公司 Access control method and access control device of user data
CN103970648B (en) * 2013-01-30 2016-12-28 百度国际科技(深圳)有限公司 The method of testing of installation kit and system
CN104102538B (en) * 2013-04-09 2018-02-27 联想(北京)有限公司 The method and electronic equipment of information processing
CN103677937B (en) * 2013-12-23 2017-02-08 腾讯科技(深圳)有限公司 Method and device for upgrading and running software
CN105282180B (en) * 2014-05-28 2019-08-09 南京中兴软件有限责任公司 The processing method and processing device of service authentication
CN105391705A (en) * 2015-10-29 2016-03-09 青岛海尔智能家电科技有限公司 Method of carrying out authentication on application service and device
CN106060124A (en) * 2016-05-21 2016-10-26 乐视控股(北京)有限公司 Application program downloading method and mobile terminal
CN106126302A (en) * 2016-06-30 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of device update method and device
CN107302453A (en) * 2017-06-16 2017-10-27 郑州云海信息技术有限公司 A kind of method built based on the keys of M13 machine K UX systems VNCserver mono-
CN112596794B (en) * 2020-12-14 2023-06-06 深圳忆联信息系统有限公司 Control method, device, computer equipment and storage medium for driving deployment sequence
CN113342643B (en) * 2021-05-31 2024-03-22 重庆长安汽车股份有限公司 Automatic test method and system for vehicle FOTA function

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127781A (en) * 2007-09-26 2008-02-20 北京搜狐新时代信息技术有限公司 Method, device and mobile terminal for mobile terminal to download files
CN101668284A (en) * 2009-09-09 2010-03-10 中兴通讯股份有限公司 Method and device for guaranteeing security of edition software on network device
CN102004655A (en) * 2010-11-25 2011-04-06 北京飞天诚信科技有限公司 Device and method for automatically installing drivers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127781A (en) * 2007-09-26 2008-02-20 北京搜狐新时代信息技术有限公司 Method, device and mobile terminal for mobile terminal to download files
CN101668284A (en) * 2009-09-09 2010-03-10 中兴通讯股份有限公司 Method and device for guaranteeing security of edition software on network device
CN102004655A (en) * 2010-11-25 2011-04-06 北京飞天诚信科技有限公司 Device and method for automatically installing drivers

Also Published As

Publication number Publication date
CN102567063A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102567063B (en) Method and device for automatically installing software
CN101989212B (en) Method and device for providing virtual machine management program for starting blade server
CN107769949B (en) Application component deployment method and deployment node
CN106708597A (en) Method, device and system for creating cluster environment on the basis of Openstack
CN107957903A (en) Asynchronous task scheduling method, server and storage medium
EP2456257A1 (en) Method and system for upgrading wireless data card
CN101546270A (en) Automatic installation method for Linux operation system, device and system
CN107678875B (en) Fault detection and automatic repair method, device, terminal and storage medium
CN107832065A (en) Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN113312064B (en) Method and device for installing and configuring physical machine and computer readable medium
CN108809683B (en) Method and device for deploying cloud application system
CN103164244A (en) Firmware system long-distance updating methods based on unified extensible firmware interface
CN106873970B (en) Installation method and device of operating system
CN109451098A (en) FPGA accelerator card MAC Address configuration method, device and accelerator card
CN105335195A (en) Device driver upgrading method and device and electronic device
US8738755B2 (en) Providing external access to service versions via a bundle framework
CN108965403A (en) O&M monitors establishment of connection method and terminal device
CN107148772A (en) Information processor and its control method and program
CN105320534A (en) BOOT remote updating method, BOOT remote updating device and BOOT remote updating system for single board
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
US7284120B2 (en) Method and system for allowing a system under test (SUT) to boot a plurality of operating systems without a need for local media
CN108572847B (en) Method for upgrading single chip microcomputer software version through USB port
CN110377358A (en) Coprocessor firmware dynamic loading method, system, equipment and storage medium
CN115766439A (en) KVM device batch upgrading method and device and electronic device
CN113010195B (en) System upgrading method, storage medium and terminal equipment

Legal Events

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