CN100501673C - Method for installing software installation packet - Google Patents

Method for installing software installation packet Download PDF

Info

Publication number
CN100501673C
CN100501673C CNB2006100227307A CN200610022730A CN100501673C CN 100501673 C CN100501673 C CN 100501673C CN B2006100227307 A CNB2006100227307 A CN B2006100227307A CN 200610022730 A CN200610022730 A CN 200610022730A CN 100501673 C CN100501673 C CN 100501673C
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.)
Expired - Fee Related
Application number
CNB2006100227307A
Other languages
Chinese (zh)
Other versions
CN101000548A (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

Landscapes

  • Stored Programmes (AREA)

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; 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;
C, according to the identification information and the erection sequence dependency information of all software installation kits, calculate software installation kit erection sequence:
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 is not in erection sequence dependency information or the erection sequence dependency information installation kit identification 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; Enter steps d;
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; Judge whether not have erection sequence and rely in information or the erection sequence dependence information installation kit identification 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 (1)

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; 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;
C, according to the identification information and the erection sequence dependency information of all software installation kits, calculate software installation kit erection sequence:
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 is not in erection sequence dependency information or the erection sequence dependency information installation kit identification 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; Enter steps d;
D, according to erection sequence install software installation kit.
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 CN101000548A (en) 2007-07-18
CN100501673C true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006332B (en) * 2010-12-03 2013-12-11 杭州华三通信技术有限公司 Method and system for software upgrading
US20120254859A1 (en) * 2011-03-31 2012-10-04 Sony Corporation Method and apparatus for downloading software updates to place user terminal into a desired configuration state
CN102404381A (en) * 2011-09-02 2012-04-04 西安交通大学 Software deployment system and deployment method based on workflow in cloud computing environment
CN105446757B (en) * 2014-08-21 2019-09-17 阿里巴巴集团控股有限公司 A kind of processing method and equipment of data packet
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
CN108108203B (en) * 2016-11-25 2021-02-26 斑马智行网络(香港)有限公司 Method, device and system for downloading and installing process of installation package
CN110600138B (en) * 2019-08-30 2020-06-23 国网山东省电力公司电力科学研究院 Credible application environment construction method based on active immune SDIPQR propagation model

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1754149A (en) * 2002-10-07 2006-03-29 皇家飞利浦电子股份有限公司 Broadcasting of software packages
CN1834913A (en) * 2005-03-18 2006-09-20 联想(北京)有限公司 Method of managing software installation and unloading

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1754149A (en) * 2002-10-07 2006-03-29 皇家飞利浦电子股份有限公司 Broadcasting of software packages
CN1834913A (en) * 2005-03-18 2006-09-20 联想(北京)有限公司 Method of managing software installation and unloading

Also Published As

Publication number Publication date
CN101000548A (en) 2007-07-18

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
EP1662384A3 (en) Method and system for distributing and installing software
CN105786667A (en) Distributed automated testing method and system
AU2003216113A1 (en) Method and system for linking firmware modules in a pre-memory execution environment
WO2008126221A1 (en) Software modification management program, software modification management device, and software modification management method
CN1723440A (en) Apparatus and method for controlling resource transfers in a logically partitioned computer system
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
MY155867A (en) Scheduling collections in a scheduler
CN101252458A (en) Firmware batch upgrading method
CN102520975B (en) Intelligent updating method of external equipment driver, device and system
CN103186404A (en) System firmware update method and server system applying same
CN107193609A (en) Functional module call method and device, electronic equipment in
CN100399270C (en) Automatic installation method of USB device filter drive program
CN102331944A (en) Application adding method based on electronic store
CN103488562A (en) Automated testing method and device
WO2002089073A3 (en) Deposit return system for disposable objects
CN102402533A (en) Address matching method and system
CN109542794A (en) A kind of Software Automatic Testing Method applied to embedded system
CN103188335A (en) Node deployment method and server system using by same
CN103853636A (en) Cabinet server system and detecting method thereof
WO2007099520A3 (en) A grid computing architecture & associated method of invoking/registering network services for subscription

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