CN101000548A - Method for installing software installation packet - Google Patents

Method for installing software installation packet Download PDF

Info

Publication number
CN101000548A
CN101000548A CN 200610022730 CN200610022730A CN101000548A CN 101000548 A CN101000548 A CN 101000548A CN 200610022730 CN200610022730 CN 200610022730 CN 200610022730 A CN200610022730 A CN 200610022730A CN 101000548 A CN101000548 A CN 101000548A
Authority
CN
China
Prior art keywords
installation kit
identification information
array
erection sequence
information
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.)
Granted
Application number
CN 200610022730
Other languages
Chinese (zh)
Other versions
CN100501673C (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.)
Maipu Communication Technology Co Ltd
Original Assignee
MAIPU(SICHUAN) COMMUNICATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MAIPU(SICHUAN) COMMUNICATION TECHNOLOGY CO LTD filed Critical MAIPU(SICHUAN) COMMUNICATION TECHNOLOGY CO LTD
Priority to CNB2006100227307A priority Critical patent/CN100501673C/en
Publication of CN101000548A publication Critical patent/CN101000548A/en
Application granted granted Critical
Publication of CN100501673C publication Critical patent/CN100501673C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A method for erecting software installation packet includes setting unique identification information on each software erection packet, setting erection order information on each software erection packet, calculating out erection order of software erection packet according to said identification information and said erection order information and erecting software erection packet according to calculated out erection order.

Description

A kind of method of install software installation kit
Technical field
The present invention relates to the installation of computer software, relate in particular to a kind of computer software installation method that relies on erection sequence that has.
Background technology
For the software product of difference in functionality combination is provided based on different users, and the upgrade maintenance of being convenient to software product, at present the software product that develops of Software Production manufacturer can be made of a plurality of functional modules, makes up based on the functional module of different customer selecting to constitute different releasing software products.Often some functional module installation kit of this software product could correctly be installed after might must depending on other functional module installation, perhaps the software product upgrading time will increase a plurality of functional modules with erection sequence dependence, we just for this reason the installation procedure of software product formulate the erection sequence that the functional module installation kit of a correspondence is gathered.For this kind situation, general method commonly used is the erection sequence table that at first defines each functional module installation kit that it comprised in the installation procedure of current software product, and installation procedure is installed each functional module one by one according to this pre-determined erection sequence table.The shortcoming of the method is: because different user needs the combination possibility difference of the functional module of software product, therefore need the number of installed software installation kit and array mode there are differences, thereby Software Production manufacturer must be according to having the installation scheduling feature of different combination realizations based on the software product installation procedure of different erection sequence tables now, so just increased the workload of safeguarding the erection sequence table greatly, and existing erection sequence table can not be applicable to emerging combination of software function, has reduced the adaptive faculty of installation procedure.
Summary of the invention
Technical matters to be solved by this invention is that a kind of method that realizes installing automatically the computer software with erection sequence dependence is provided.
The present invention is for addressing the above problem, and the technical scheme that is adopted is that a kind of method of install software installation kit may further comprise the steps:
A, unique identification information is set for each software installation kit;
B, also be provided with its erection sequence dependency information for each software installation kit;
C, according to the identification information and the erection sequence dependency information of all software installation kits, calculate software installation kit erection sequence;
D, according to erection sequence install software installation kit.
The invention has the beneficial effects as follows, according to the method for the invention, software installation procedure can calculate the erection sequence of software installation kit dynamically, thereby avoided safeguarding the work of a large amount of software erection sequence tables, improved the versatility of software installation procedure, do not do simultaneously the automatic software installation that any work just can adapt to the stylish software environment of customer upgrade software product, promoted the adaptive faculty of component software installation kit greatly.
Embodiment
Comprise in the software installation kit of each software product assembly function in the mount message file, this file comprises the erection sequence dependency information of unique identification information He this software installation kit of this software installation kit.The erection sequence dependency information is for installing the identification information of other software installation kit that must install earlier before this software installation kit.
According to comprising the mount message file in each software installation kit, installation procedure calculates correct erection sequence as follows:
1, the identification information of the installation kit of all erection sequences to be determined is all put into an interim array undetermined, create an interim stack and preserve intermediate result, create a net result of array preservation as a result;
2, from interim array undetermined, shift out the identification information of the installation kit of an order to be determined at random;
3, the identification information that this is shifted out enters step 4 as the identification information of current installation kit to be determined;
If got the identification information less than the installation kit of order to be determined, then execution in step 7;
4, detect the erection sequence dependency information of current installation kit to be determined; Judging whether not have erection sequence relies on information or erection sequence and relies on information all in array as a result; In this way, enter step 6; As not, enter step 5;
5, from the erection sequence dependency information, take out the installation kit identification information of a dependence, the installation kit identification information of this dependence is shifted out from interim array undetermined;
Whether the installation kit identification information that detects this dependence is in interim stack; In this way, install and rely on existence unusually, empty array as a result, return failure;
As denying, the identification information of current installation kit to be determined is deposited in interim stack,, get back to step 4 the identification information of the installation kit identification information of this dependence as current installation kit to be determined, in the erection sequence dependency information, the installation kit identification information of all dependences is removed;
6, the identification information with current installation kit information to be determined deposits array as a result in, and from interim stack by first-in last-out order, shift out identification information, get back to step 3; All identification informations are moved out of in interim stack, get back to step 2;
7, ordering finishes, and returns the array as a result that sequences order.
Array as a result according to returning obtains erection sequence, thereby realizes the self-adaptation installation.
Embodiment 1
In the functional module software installation kit set of a software product, all comprise a mount message file install.txt in each software installation kit, this file comprises the erection sequence dependency information (DependOn) of unique identification information (ID) and this software installation kit of this software installation kit.Dependency information is the identification information of necessary first installed software installation kit before installing.
With a cover software installation component is example, comprises 5 software installation kits, is designated A installation kit, B installation kit, C installation kit, D installation kit, E installation kit respectively; Its dependence is as follows:
ID=A;
ID=B;DependOn=A;
ID=C;DependOn=A,B;
ID=D;DependOn=A,B,C;
ID=E;DependOn=A,B,C,D。
A, B, C, D, E are all put into an interim array undetermined, create an interim stack and preserve intermediate result, create a net result of array preservation as a result;
Interim array undetermined Interim stack Array as a result
A
B
C
D
E
At random, the identification information of C, from interim array undetermined, shift out C as current installation kit to be determined;
Detect the erection sequence dependency information of C installation kit, be A, B;
Take out the installation kit identification information B of a dependence, B is shifted out from interim array undetermined;
Detect, B is not in interim stack; C is deposited in interim stack; With the identification information of B as current installation kit to be determined;
Interim array undetermined Interim stack Array as a result
A C
?B
?D
?E
Detect the erection sequence dependency information of current installation kit B to be determined, be A;
Take out the installation kit identification information A of this dependence, A is shifted out from interim array undetermined;
Detect, A is not in interim stack; B is deposited in interim stack; With the identification information of A as current installation kit to be determined;
Interim array undetermined Interim stack Array as a result
A C
D B
E
Detect the erection sequence dependency information of the identification information A of current installation kit to be determined, no erection sequence dependence;
With identification information A, deposit array as a result in;
Interim array undetermined Interim stack Array as a result
D C A
E B
Shift out identification information B from interim stack;
With the identification information of B as current installation kit to be determined;
Detect the erection sequence dependency information of B, be A;
A preserves B in array as a result in array as a result;
Interim array undetermined Interim stack Array as a result
D C A
E B
Shift out identification information C from interim stack; With the identification information of C as current installation kit to be determined; Detect the erection sequence dependency information of C, be A, B;
A, B preserve C in array as a result in array as a result;
Interim array undetermined Interim stack Array as a result
D ?A
E ?B
?C
At random, the identification information of D, from interim array undetermined, shift out D as current installation kit to be determined;
Detect the erection sequence dependency information of D, be A, B, C;
A, B, C preserve D in array as a result in array as a result;
Interim array undetermined Interim stack Array as a result
E ?A
?B
?C
?D
The identification information of E, from interim array undetermined, shift out E as current installation kit to be determined; Detect the erection sequence dependency information of E, be A, B, C, D;
A, B, C, D preserve E in array as a result in array as a result;
Interim array undetermined Interim stack Array as a result
A
B
C
D
E
Got the identification information less than the installation kit of order to be determined, ordering finishes, and returns the array as a result that sequences order;
Install software is installed this 5 installation kits according to the order of A, B, C, D, E.
Embodiment 2
With another set of software installation component is example, comprises 5 software installation kits, is designated A installation kit, B installation kit, C installation kit, D installation kit, E installation kit respectively; Its dependence is as follows:
ID=A;
ID=B;DependOn=A;
ID=C;DependOn=A,B,D;
ID=D;DependOn=A,B,C;
ID=E;DependOn=A,B,C,D;
At random, as current installation kit information to be determined, from interim array undetermined, shift out C with C; Detect the dependence of C, from the erection sequence dependence, shift out B, and from interim array undetermined, shift out this B;
Detect B whether in interim stack, do not exist, then C is deposited in the interim stack, simultaneously B as current installation kit information to be determined;
Interim array undetermined Interim stack Array as a result
A C
B
D
E
Detect the dependence of B, from the erection sequence dependence, shift out A, and from interim array undetermined, shift out A;
Detect A whether in interim stack, do not exist, then B is deposited in the interim stack, simultaneously A as current installation kit information to be determined;
Interim array undetermined Interim stack Array as a result
A ?C
D ?B
E
Detect the dependence of A, no erection sequence dependence deposits A in array as a result;
Interim array undetermined Interim stack Array as a result
D C A
E B
Shift out B from interim stack simultaneously, because A in array as a result, therefore deposits B in array as a result, because C relies on D, so C continues to stay in the interim stack;
Interim array undetermined Interim stack Array as a result
D C A
E B
At random, D as current installation kit information to be determined, is shifted out D from interim array undetermined;
Detect the dependence of D, find C in interim stack, it is unusual to occur relying on circulation, returns failure, can not install.

Claims (3)

1, a kind of method of install software installation kit is characterized in that, may further comprise the steps:
A, unique identification information is set for each software installation kit;
B, also be provided with its erection sequence dependency information for each software installation kit;
C, according to the identification information and the erection sequence dependency information of all software installation kits, calculate software installation kit erection sequence;
D, according to erection sequence install software installation kit.
2, a kind of according to claim 1 method of install software installation kit is characterized in that, the erection sequence dependency information of described software installation kit is the flag information of other software installation kit that must install earlier before installing.
3, a kind of according to claim 1 method of install software installation kit is characterized in that, described step c specifically may further comprise the steps:
C1, the identification information of the installation kit of all erection sequences to be determined is all put into an interim array undetermined, create an interim stack and preserve intermediate result, creates a net result of array preservation as a result;
C2, from interim array undetermined, shift out the identification information of the installation kit of an order to be determined at random;
C3, with the identification information of this identification information that shifts out as current installation kit to be determined, enter step c4;
If got identification information less than the installation kit of order to be determined, execution in step c7 then;
C4, detect the erection sequence dependency information of current installation kit to be determined; Whether there are not erection sequence dependency information or erection sequence dependency information all in array as a result; In this way, enter step c6; As not, enter step c5;
C5, from the erection sequence dependency information, take out the installation kit identification information of a dependence, the installation kit identification information of this dependence is shifted out from interim array undetermined;
The identification information of current installation kit to be determined is deposited in interim stack, the identification information of the installation kit identification information of this dependence as current installation kit to be determined, get back to step c4, in the erection sequence dependency information, the installation kit identification information of all dependences is removed;
C6, deposit the identification information of current installation kit information to be determined in array as a result, and from interim stack by first-in last-out order, shift out identification information, get back to step c3; All identification informations are moved out of in interim stack, get back to step c2;
C7, software installation kit erection sequence calculate and finish the return results array.
CNB2006100227307A 2006-12-31 2006-12-31 Method for installing software installation packet Expired - Fee Related CN100501673C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100227307A CN100501673C (en) 2006-12-31 2006-12-31 Method for installing software installation packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100227307A CN100501673C (en) 2006-12-31 2006-12-31 Method for installing software installation packet

Publications (2)

Publication Number Publication Date
CN101000548A true CN101000548A (en) 2007-07-18
CN100501673C CN100501673C (en) 2009-06-17

Family

ID=38692536

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100227307A Expired - Fee Related CN100501673C (en) 2006-12-31 2006-12-31 Method for installing software installation packet

Country Status (1)

Country Link
CN (1) CN100501673C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404381A (en) * 2011-09-02 2012-04-04 西安交通大学 Software deployment system and deployment method based on workflow in cloud computing environment
WO2012072039A1 (en) * 2010-12-03 2012-06-07 Hangzhou H3C Technologies Co., Ltd. Software upgrade method and apparatus
CN102736927A (en) * 2011-03-31 2012-10-17 索尼公司 Method and apparatus for downloading software updates to place user terminal into desired configuration state
CN105159729A (en) * 2015-09-25 2015-12-16 北京金山安全软件有限公司 Method and device for installing driver
CN105446757A (en) * 2014-08-21 2016-03-30 阿里巴巴集团控股有限公司 Data packet processing method and device
CN105528232A (en) * 2016-01-27 2016-04-27 国家电网公司 Automatic installation method and system for software
CN108108203A (en) * 2016-11-25 2018-06-01 阿里巴巴集团控股有限公司 The method, apparatus and system of installation process are downloaded for installation kit
CN110600138A (en) * 2019-08-30 2019-12-20 国网山东省电力公司电力科学研究院 Credible application environment construction method based on active immune SDIPQR propagation model

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1573528A2 (en) * 2002-10-07 2005-09-14 Koninklijke Philips Electronics N.V. Broadcasting of software packages
CN100399267C (en) * 2005-03-18 2008-07-02 联想(北京)有限公司 Method of managing software installation and unloading

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012072039A1 (en) * 2010-12-03 2012-06-07 Hangzhou H3C Technologies Co., Ltd. Software upgrade method and apparatus
CN102736927A (en) * 2011-03-31 2012-10-17 索尼公司 Method and apparatus for downloading software updates to place user terminal into desired configuration state
CN102404381A (en) * 2011-09-02 2012-04-04 西安交通大学 Software deployment system and deployment method based on workflow in cloud computing environment
CN105446757A (en) * 2014-08-21 2016-03-30 阿里巴巴集团控股有限公司 Data packet processing method and device
CN105159729A (en) * 2015-09-25 2015-12-16 北京金山安全软件有限公司 Method and device for installing driver
CN105528232A (en) * 2016-01-27 2016-04-27 国家电网公司 Automatic installation method and system for software
CN108108203A (en) * 2016-11-25 2018-06-01 阿里巴巴集团控股有限公司 The method, apparatus and system of installation process are downloaded for installation kit
CN108108203B (en) * 2016-11-25 2021-02-26 斑马智行网络(香港)有限公司 Method, device and system for downloading and installing process of installation package
CN110600138A (en) * 2019-08-30 2019-12-20 国网山东省电力公司电力科学研究院 Credible application environment construction method based on active immune SDIPQR propagation model
CN110600138B (en) * 2019-08-30 2020-06-23 国网山东省电力公司电力科学研究院 Credible application environment construction method based on active immune SDIPQR propagation model

Also Published As

Publication number Publication date
CN100501673C (en) 2009-06-17

Similar Documents

Publication Publication Date Title
CN100501673C (en) Method for installing software installation packet
CN106874031B (en) Method and device for starting system program of terminal equipment
CN103580908B (en) The collocation method of server and system
TW200620052A (en) Smart component-based management techniques in a substrate processing system
WO2007041019A3 (en) System and method for a household services marketplace
CN105786667A (en) Distributed automated testing method and system
EP1662384A3 (en) Method and system for distributing and installing software
AU2003216113A1 (en) Method and system for linking firmware modules in a pre-memory execution environment
CN103186466A (en) Information interaction device and method based on automatic generation of associated test cases
CN101140528A (en) Method, device and system for realizing timing tasks load equilibria in cluster
WO2008126221A1 (en) Software modification management program, software modification management device, and software modification management method
CN101252458A (en) Firmware batch upgrading method
CN103186404A (en) System firmware update method and server system applying same
CN102520975A (en) Intelligent updating method of external equipment driver, device and system
WO2007058973A3 (en) Support case management system
CN107193609A (en) Functional module call method and device, electronic equipment in
CN100399270C (en) Automatic installation method of USB device filter drive program
CN102402533A (en) Address matching method and system
WO2002089073A3 (en) Deposit return system for disposable objects
CN109542794A (en) A kind of Software Automatic Testing Method applied to embedded system
CN103188335A (en) Node deployment method and server system using by same
CN106201602A (en) A kind of tag providing method, acquisition methods, server and electronic equipment
CN101930377B (en) Link library compiling method by dynamically acquiring UID
CN101436136A (en) System for automatically performing preinstalled software element and performing method thereof
CN106951296A (en) A kind of Oftware updating method and device

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
ASS Succession or assignment of patent right

Owner name: MAIPU COMMUNICATION TECHNOLOGIES CO., LTD.

Free format text: FORMER OWNER: MAIPU(SICHUAN) COMMUNICATION TECHNOLOGY CO.,LTD.

Effective date: 20120215

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20120215

Address after: 610041 Sichuan city of Chengdu province high tech Zone nine Hing Road No. 16 building, Maipu

Patentee after: Maipu Communication Technologies Co., Ltd.

Address before: 610041 Sichuan city of Chengdu province high tech Zone nine Hing Road No. 16 building, Maipu

Patentee before: Maipu(Sichuan) Communication Technology Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090617

Termination date: 20151231

EXPY Termination of patent right or utility model