CN103885796A - Software dynamic deploying method based on script tool - Google Patents

Software dynamic deploying method based on script tool Download PDF

Info

Publication number
CN103885796A
CN103885796A CN201410074912.3A CN201410074912A CN103885796A CN 103885796 A CN103885796 A CN 103885796A CN 201410074912 A CN201410074912 A CN 201410074912A CN 103885796 A CN103885796 A CN 103885796A
Authority
CN
China
Prior art keywords
software
deployment
client
script
server
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
CN201410074912.3A
Other languages
Chinese (zh)
Other versions
CN103885796B (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.)
Xidian University
Original Assignee
Xidian University
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 Xidian University filed Critical Xidian University
Priority to CN201410074912.3A priority Critical patent/CN103885796B/en
Priority claimed from CN201410074912.3A external-priority patent/CN103885796B/en
Publication of CN103885796A publication Critical patent/CN103885796A/en
Application granted granted Critical
Publication of CN103885796B publication Critical patent/CN103885796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a software dynamic deploying method based on a script tool. The method includes the steps of S1, a server is provided, when the server joins new software, the server end starts an automatic script generating program and operates the software, the automatic script generating program monitors and records ActiveX handles of mouse clicking during installation and generates the script file of mouse clicking during software installation, the sever is provided with a database, the script file is stored in the database, and basic information of the software is stored in the data base; S2, at least one client is provided, each client detects the physical environment configuration of a target machine and generates a hardware information recording document and transmits the document to the server; S3, the server end receives the hardware information recording document transmitted by each client and writes the document into the database; S4, the server selects software and the corresponding client and transmits the to-be-deployed software to the client; S5, if deployment succeeds, the software dynamic deployment process is finished, and if the deployment fails, a compensation strategy is started.

Description

A kind of software dynamic deployment method based on wscript.exe
Technical field
The present invention relates to a kind of software dynamic deployment method based on wscript.exe.
Background technology
In recent years, along with the development of Internet technology, a large amount of software need to be installed on computer node.Just taking internet all trades and professions all in the cloud computing of paying close attention to as example, cloud computing is devoted to for internet provides fast, safe, network calculations and data storage service easily; This makes the enterprise can be by resource switch to the application of needs, access computer and storage system according to demand.Under the promotion of computer virtualized technology, cloud computing comprises that physical machine and virtual machine get more and more at interior calculating node, and the computational resource number that data center need to manage is multiplied, and a large amount of software need to be deployed on each computational resource of network.
In order to reduce human and material resources, internet industry has proposed the method for a lot of software Dynamical Deployments, and software Dynamical Deployment is intended to complete under participation that people is few configuration, the installation process of software.But the correctness that the complicacy of the diversity of software, hardware environment and software are installed all becomes the care point of software Dynamical Deployment, how to make Software deployment reach real meaning left unguarded, automatically perform the difficult point that becomes this research.
The software dynamic deployment method of main flow has the dispositions method based on script at present, the dispositions method based on specification software description and the dispositions method based on extracting software information.Wherein:
1, the dispositions method based on script
The thought of the dispositions method based on script is, the software of selecting to need deployment from server end, artificial is this software programming script, the software that then transmission need to be disposed and script are to target machine, target machine end is with the automatic Run Script of mode of order line, deployment software.The deployment scheme of this thought as shown in Figure 1.This method is applicable to most Software deployment, also just means, as long as the script of writing at server end is no problem, does not also just have problem in the deployment of client.But the drawback of this deployment software has also just embodied, first at the artificial compile script of server end, greatly strengthen user and used the difficulty of this deployment system; Secondly not mutual in Software deployment process, what in Software deployment process, occur does not process extremely yet; Be finally that Software deployment process becomes a kind of single pattern, if the physical environment of target machine is different with server, the script that server end is write may be unsuccessful in target machine deploy.
2, the dispositions method based on specification software description
The thought of the dispositions method based on specification software description is, describes software by the software architecture document of specification, as described software from following three aspects:
Software essential information.Comprise the simple description of dbase, software version number and software etc.
Software module information.Comprise title, version number, the signature of software.The software and hardware demand of software, comprises the requirement of CPU, the requirement of internal memory, the requirement of storage space, the requirement of operating system etc.
The restriction relation of inter-module.Comprise dependence and the constraint of two assemblies of participating.
By the xml document forming after such description, as the input of Dynamical Deployment software, all software can be realized by unified deployment template.The deployment scheme of this thought as shown in Figure 2.By the description to software architecture, can make the deployment of Software deployment simplify, can dispose a class software by Software deployment template.But such Software deployment system is in the time being used to user, also need consult and write software in the mode of specification with software vendor.So, increased on the one hand the difficulty that user uses this deployment system, the development degree of just present internet on the other hand, thinks unified software architecture and forms certain rule, itself is a difficult problem.For the software providing without software provider, just can not use unified deployment template, also just make Software deployment process revert to the initial conditions of the corresponding software of a masterplate.In efficiency, use software architecture is described, adopting common template to dispose is the method for full blast, but disposing in performance, Software deployment also comprises the dynamic-configuration of software, and general template has only comprised the general character of a class software, in the time disposing specific software, the characteristic of software has just showed, and uses common template just can not dispose for the characteristic of software.Dimension, for the software that needs dynamic-configuration, is not too applicable to using the method.
3, the dispositions method based on extracting software information
The thought of dispositions method based on extracting software information is, is indifferent to the process of Software deployment, and what be only concerned about is the result of software Dynamical Deployment.As after a Software deployment completes, this software can increase accordingly, delete and revise for the file of operating system, file and registration table.Therefore, Software deployment only needs software information to extract, and knows which operation software has done to operating system after deployment finishes, can be accordingly for target machine does same operation.
Had this thought, the specific practice of the dispositions method based on extracting software information is:
Extract the resource information of exe or msi file.Include file, file.Extract the registry information of this software to operating system configuration.This process is by after server end deployment software, and the variation of front and back registration table is disposed in monitoring, extracts the registry entry changing.Reorganize and reconstruct software package.By the software of classification and registry entry uniform packing, reconstruct.
The scheme of this deployment thought as shown in Figure 3.By the reconstruct to software package, the Dynamical Deployment process of software is desalinated in this thought, is mainly the change monitoring to operating system to software before and after Software deployment.Three class files after software package reconstruct, are comprised: file item, registry entry and script item.Here the effect of script is that the software item of having classified is copied to respectively in corresponding operating system file system.Do like this difficulty that has overcome manual compiling script, also overcome the software architecture of reaching an agreement with software vendor and described a difficult problem, make deployment reach robotization just very, intellectuality.But the software Dynamical Deployment of this thought, does not consider the dynamic-configuration of mentioning before in Software deployment process.Once software needs amendment or configuration, just must at server end according to specified configuration, reinstall software, reconstruction software installation kit.
Summary of the invention
In order to address the above problem, the invention provides a kind of software dynamic deployment method based on wscript.exe, it comprises,
S1 provides a server, when described server adds new software, server end booting script automatically generating program also moves described software, the control handle that in installation process, mouse is clicked is monitored and recorded to described automatic script generator program, and generate the script file that the mouse installed when described software is clicked, and described server is provided with database, described script file deposits in described database, and described database also has the essential information of described software;
S2 provides at least one client, and described client detection target machine physical environment configures and generates hardware information and records document and be sent to server;
S3 server end records document by having received the hardware information that client sends, and write into Databasce;
S4 server is selected software and client and will be treated that deployment software is sent to client;
If S5 deployment success, software Dynamical Deployment process finishes, if dispose unsuccessfully, starts compensation policy.
On the basis of technique scheme, described server is selected software and client, described selection software refers to that server end adds after new software, at the enterprising line item of database of server end and form software matrix, selecting software is in software matrix, to select to be deployed to the software in client.
On the basis of technique scheme, described startup compensation policy comprises sets up software description document, described software description document package installs containing software essential information and software the operation system information relying on, described document information and upgraded the minimum requirements of the operating system that relies on of logging software by update software, described minimum requirements forms the foundation of the success or failure that software disposes at this target machine.
On the basis of technique scheme, if compensation number of times is greater than 3, implement anti-deployment, software Dynamical Deployment process finishes.
On the basis of technique scheme, counter being deployed as of described enforcement recovered client to disposing previous state.
On the basis of technique scheme, if compensation number of times is less than 3, reading database, repeats S4 and S5.
On the basis of technique scheme, described reading database refers to and has read software information to be disposed in current deployment and client-side information.
On the basis of technique scheme, the essential information of described software has comprised software name, software author, software type, software size, software version number and software description.
On the basis of technique scheme, described Software deployment script automatic generation method idiographic flow comprises:
Step 1, in the time that server newly adds a software, at server end booting script automatically generating program and move this software;
Step 2, according to software installation step, click successively form control;
Step 3, catch the control that mouse is clicked;
Step 4, record control handle;
Step 5, analog mouse are clicked effect;
Step 6, corresponding corresponding script function;
The script of step 7, generation robotization;
Step 8, the automatic product process of Software deployment script based on wscript.exe finish.
On the basis of technique scheme, locator meams, the locator meams of forms handle and the locator meams of mouse coordinates that the method for analog mouse click effect comprises homoatomic chain dish.
On the basis of technique scheme, operating system essential information is operating system version, operating system CPU, dominant frequency, operating system memory and operating system hard disk capacity, and operating system essential information is constantly upgraded the minimum requirements of the operating system that logging software relies on.
Compared with prior art, script described in the invention can generate automatically, has overcome the difficulty of manual compiling script, has greatly lowered the difficulty of disposing.In the process generating at script, the present invention proposes the mode of three kinds of location form controls, for the accurate location of script provides guarantee; Simultaneously, the present invention proposes deployment compensation policy, software description document has been proposed in the middle of compensation policy, the document is used for describing software essential information and software is installed the operation system information relying on, carry out the minimum requirements of the operating system that logging software relies on by constantly updating software description document, described minimum requirements forms software disposes success or failure foundation at this target machine.By software description document, can be before deployment software, comparison software is described document and is treated the physical message of deploying client, and can judgement in client deployment success, for the correctness of Software deployment provides a foundation.
Brief description of the drawings
Fig. 1 is the schematic diagram based on script dispositions method;
Fig. 2 is the schematic diagram of the dispositions method based on specification software description.
Fig. 3 is the schematic diagram of the dispositions method based on extraction software information.
Fig. 4 is dispositions method schematic diagram of the present invention.
Embodiment
Please refer to Fig. 4, a kind of software dynamic deployment method based on wscript.exe, it comprises,
S1 provides a server, when described server adds new software, server end booting script automatically generating program also moves described software, the control handle of mouse point in installation process is monitored and recorded to described automatic script generator program, and generate the script file that the mouse installed when described software is clicked, and described server is provided with database, described script file deposits in described database, and described database also has the essential information of described software;
S2 provides at least one client, and described client detection target machine physical environment configures and generates hardware information and records document and be sent to server;
S3 server end records document by having received the hardware information that client sends, and write into Databasce;
S4 server is selected software and client and will be treated that deployment software is sent to client;
If S5 deployment success, software Dynamical Deployment process finishes, if dispose unsuccessfully, starts compensation policy.
Server is selected software and client, and described selection software refers to that server end adds after new software, and at the enterprising line item of database of server end and form software matrix, selecting software is in software matrix, to select to be deployed to the software in client.
Startup compensation policy comprises sets up software description document, described software description document package installs containing software essential information and software the operation system information relying on, described document information and upgraded the minimum requirements of the operating system that relies on of logging software by update software, described minimum requirements forms the foundation of the success or failure that software disposes at this target machine.If compensation number of times is greater than 3, implement anti-deployment, software Dynamical Deployment process finishes.
Implement counter being deployed as and recover client to disposing previous state.If compensation number of times is less than 3, reading database repeats S4 and S5.
Wherein reading database, refers to and has read software information to be disposed in current deployment and client-side information.
Wherein Software deployment method, has utilized the robotization generating to dispose script, in the time of needs deployment software, sends software package to the target machine of specifying at server end, and automatically perform shell script by target machine and carry out deployment software, according to following flow performing:
Step 1, at server end, select software to be disposed;
Step 2, at server end, select target machine to be disposed (can multiselect);
Step 3, at server end, click dispose;
Step 4, target machine receive and treat automatically to move the shell script of this software by deployment software, and complete installation, deployment;
After step 5, target machine have been disposed, automatic Verification is disposed correctness, and returns and dispose result to server end;
If step 6 success, turns to step 7; If failure, operating software is disposed compensation policy; If compensation number of times is less than 3, turns to step 4, otherwise turn to step 8;
Step 7, Software deployment flow process based on wscript.exe finish;
Step 8, dispose target machine is counter, dispose flow process and finish.
Meanwhile, the essential information of software has comprised software name, software author, software type, software size, software version number and software description.And Software deployment script automatic generation method idiographic flow comprises:
Step 1, in the time that server newly adds a software, at server end booting script automatically generating program and move this software;
Step 2, according to software installation step, click successively form control;
Step 3, catch the control that mouse is clicked;
Step 4, record control handle;
Step 5, analog mouse are clicked effect;
Step 6, corresponding corresponding script function;
The script of step 7, generation robotization;
Step 8, the automatic product process of Software deployment script based on wscript.exe finish.
Locator meams, the locator meams of forms handle and the locator meams of mouse coordinates that the method for analog mouse click effect comprises homoatomic chain dish.
Script described in the invention can generate automatically, has overcome the difficulty of manual compiling script, has greatly lowered the difficulty of disposing.In the process generating at script, the present invention proposes the mode of three kinds of location form controls, for the accurate location of script provides guarantee; Simultaneously, the present invention proposes deployment compensation policy, software description document has been proposed in the middle of compensation policy, the document is used for describing software essential information and software is installed the operation system information relying on, carry out the minimum requirements of the operating system that logging software relies on by constantly updating software description document, described minimum requirements forms software disposes success or failure foundation at this target machine.By software description document, can be before deployment software, comparison software is described document and is treated the physical message of deploying client, and can judgement in client deployment success, for the correctness of Software deployment provides a foundation.
In sum, be only the present invention's preferred embodiment, do not limit protection scope of the present invention with this, all equivalences of doing according to the scope of the claims of the present invention and description change and modify, within being all the scope that patent of the present invention contains.

Claims (10)

1. the software dynamic deployment method based on wscript.exe, is characterized in that: it comprises,
S1 provides a server, when described server adds new software, server end booting script automatically generating program also moves described software, the control handle that in installation process, mouse is clicked is monitored and recorded to described automatic script generator program, and generate the script file that the mouse installed when described software is clicked, and described server is provided with database, described script file deposits in described database, and described database also has the essential information of described software;
S2 provides at least one client, and described client detection target machine physical environment configures and generates hardware information and records document and be sent to server;
S3 server end records document by having received the hardware information that client sends, and write into Databasce;
S4 server is selected software and client and will be treated that deployment software is sent to client;
If S5 deployment success, software Dynamical Deployment process finishes, if dispose unsuccessfully, starts compensation policy.
2. a kind of software dynamic deployment method based on wscript.exe as claimed in claim 1, it is characterized in that: described server is selected software and client, described selection software refers to that server end adds after new software, at the enterprising line item of database of server end and form software matrix, selecting software is in software matrix, to select to be deployed to the software in client.
3. a kind of software dynamic deployment method based on wscript.exe as claimed in claim 1, it is characterized in that: described startup compensation policy comprises sets up software description document, described software description document package installs containing software essential information and software the operation system information relying on, described document information and upgraded the minimum requirements of the operating system that logging software relies on by update software, described minimum requirements forms the foundation of the success or failure that software disposes at this target machine.
4. a kind of software dynamic deployment method based on wscript.exe as claimed in claim 3, is characterized in that: if compensation number of times is greater than 3, implement anti-deployment, software Dynamical Deployment process finishes.
5. a kind of software dynamic deployment method based on wscript.exe as claimed in claim 4, is characterized in that: counter being deployed as of described enforcement recovered client to disposing previous state.
6. a kind of software dynamic deployment method based on wscript.exe as claimed in claim 3, it is characterized in that: if compensation number of times is less than 3, reading database, repeats S4 and S5, and described reading database refers to and read software information to be disposed in current deployment and client-side information.
7. a kind of software dynamic deployment method based on wscript.exe as claimed in claim 1, is characterized in that: the essential information of described software has comprised software name, software author, software type, software size, software version number and software description.
8. a kind of software dynamic deployment method based on wscript.exe as claimed in claim 1, is characterized in that: described Software deployment script automatic generation method idiographic flow comprises:
Step 1, in the time that server newly adds a software, at server end booting script automatically generating program and move this software;
Step 2, according to software installation step, click successively form control;
Step 3, catch the control that mouse is clicked;
Step 4, record control handle;
Step 5, analog mouse are clicked effect;
Step 6, corresponding corresponding script function;
The script of step 7, generation robotization;
Step 8, the automatic product process of Software deployment script based on wscript.exe finish.
9. a kind of software dynamic deployment method based on wscript.exe as claimed in claim 8, is characterized in that: locator meams, the locator meams of forms handle and the locator meams of mouse coordinates that the method for analog mouse click effect comprises homoatomic chain dish.
10. a kind of software dynamic deployment method based on wscript.exe as claimed in claim 1, it is characterized in that: operating system essential information is operating system version, operating system CPU, dominant frequency, operating system memory and operating system hard disk capacity, operating system essential information is constantly upgraded the minimum requirements of the operating system that logging software relies on.
CN201410074912.3A 2014-03-03 A kind of software dynamic deployment method based on wscript.exe Active CN103885796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410074912.3A CN103885796B (en) 2014-03-03 A kind of software dynamic deployment method based on wscript.exe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410074912.3A CN103885796B (en) 2014-03-03 A kind of software dynamic deployment method based on wscript.exe

Publications (2)

Publication Number Publication Date
CN103885796A true CN103885796A (en) 2014-06-25
CN103885796B CN103885796B (en) 2016-11-30

Family

ID=

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511872A (en) * 2015-11-30 2016-04-20 国云科技股份有限公司 Application automatic deployment method based on cloud computing platform
CN105786564A (en) * 2016-02-22 2016-07-20 上海新炬网络信息技术有限公司 Automatic custom installation and deployment method for Oracle
CN106648806A (en) * 2017-01-03 2017-05-10 深圳铂睿智恒科技有限公司 Analytical method, system of application installation package of application server and application server
CN106713281A (en) * 2016-11-30 2017-05-24 国网北京市电力公司 Monitoring system
CN109298868A (en) * 2018-08-22 2019-02-01 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Intelligent dynamic deployment and unloading method for mapping image data processing software
CN109800258A (en) * 2018-12-10 2019-05-24 平安科技(深圳)有限公司 Data file dispositions method, device, computer equipment and storage medium
CN110286915A (en) * 2019-06-27 2019-09-27 公安部第一研究所 Automatically dispose system and method under internet and trusted identity authentication platform
CN111782222A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Object deployment method and device
CN116225460A (en) * 2023-02-15 2023-06-06 天津赛象科技股份有限公司 Method for simplifying software deployment of operators in industrial personal computers

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511872B (en) * 2015-11-30 2019-02-01 国云科技股份有限公司 A kind of application Automation arranging method based on cloud computing platform
CN105511872A (en) * 2015-11-30 2016-04-20 国云科技股份有限公司 Application automatic deployment method based on cloud computing platform
CN105786564A (en) * 2016-02-22 2016-07-20 上海新炬网络信息技术有限公司 Automatic custom installation and deployment method for Oracle
CN106713281A (en) * 2016-11-30 2017-05-24 国网北京市电力公司 Monitoring system
CN106648806A (en) * 2017-01-03 2017-05-10 深圳铂睿智恒科技有限公司 Analytical method, system of application installation package of application server and application server
CN109298868B (en) * 2018-08-22 2024-01-09 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Intelligent dynamic deployment and uninstallation method for mapping image data processing software
CN109298868A (en) * 2018-08-22 2019-02-01 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Intelligent dynamic deployment and unloading method for mapping image data processing software
CN109800258A (en) * 2018-12-10 2019-05-24 平安科技(深圳)有限公司 Data file dispositions method, device, computer equipment and storage medium
CN109800258B (en) * 2018-12-10 2024-01-26 平安科技(深圳)有限公司 Data file deployment method, device, computer equipment and storage medium
CN110286915A (en) * 2019-06-27 2019-09-27 公安部第一研究所 Automatically dispose system and method under internet and trusted identity authentication platform
CN111782222A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Object deployment method and device
CN111782222B (en) * 2020-06-30 2022-07-26 联想(北京)有限公司 Object deployment method and device
CN116225460A (en) * 2023-02-15 2023-06-06 天津赛象科技股份有限公司 Method for simplifying software deployment of operators in industrial personal computers
CN116225460B (en) * 2023-02-15 2023-10-17 天津赛象科技股份有限公司 Method for simplifying software deployment of operators in industrial personal computers

Similar Documents

Publication Publication Date Title
CN105765575B (en) Data flow intake and persistence technology
CN105723679B (en) System and method for configuration node
CN107925696B (en) System and method for identifying, indexing and navigating to a depth state of a mobile application
CN104793946B (en) Dispositions method and system are applied based on cloud computing platform
CN105706086B (en) For obtaining, storing and consuming the management service of large-scale data stream
EP2306320B1 (en) Server image migration
CN101840346B (en) Method and system for deploying cloud host computer
CN104714822B (en) For the method and system for the real-time update for performing operating system
CN102999369B (en) The method and device of virtual machine upgrading
US10108501B2 (en) Terminal backup and recovery method
CN104049968B (en) Popularize the method and system of the metadata driven version management service in environment
CN105122233A (en) Cloud object
WO2012003048A1 (en) Systems and methods for sharing the results of analyses among virtual machines
WO2010014551A2 (en) Encapsulated file management systems
CN107707625A (en) Foreground resource based on Maven is packed and carries out version management and the method used
CN112099800B (en) Code data processing method, device and server
CN110134496A (en) Container monitors method, apparatus, equipment and computer readable storage medium
EP2992415A1 (en) Coordinating application deployment with a platform tier
CN108551764A (en) System and method for backing up large-scale distributed data system extending transversely
CN104657200A (en) Method for creating shared disk in virtual machine
WO2016111673A1 (en) Multi-tenant upgrading
US20150242282A1 (en) Mechanism to update software packages
CN106126303A (en) The installation method of (SuSE) Linux OS, Apparatus and system
US20140201643A1 (en) System and method for manipulating user-interface display items for web widgets
US11080909B2 (en) Image layer processing method and computing 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