CN106648651B - A kind of production method and device of installation kit - Google Patents
A kind of production method and device of installation kit Download PDFInfo
- Publication number
- CN106648651B CN106648651B CN201611159494.3A CN201611159494A CN106648651B CN 106648651 B CN106648651 B CN 106648651B CN 201611159494 A CN201611159494 A CN 201611159494A CN 106648651 B CN106648651 B CN 106648651B
- Authority
- CN
- China
- Prior art keywords
- installation kit
- silent
- installation
- file
- original
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Abstract
The invention discloses a kind of production method of installation kit and devices.The production method includes: to obtain at least one original installation kit;At least one described original installation kit is mapped to corresponding docker container one by one;At least one described original installation kit is installed, and at least one the described operation information of original installation kit during the installation process is recorded by corresponding docker container;The corresponding silent installation kit of at least one described original installation kit is generated according to the operation information of at least one described original installation kit during the installation process.The production method of installation kit provided by the invention is not necessarily to the operation such as system reducing in the production process, and by starting different docker containers, the silent installation kit of multiple application software can be made simultaneously, realize that rapid batch makes silent installation kit, when for multiple devices batch installation application software, installation effectiveness is improved.
Description
Technical field
The present embodiments relate to computer application technology more particularly to the production methods and dress of a kind of installation kit
It sets.
Background technique
Application program installation kit, a usually compressed package, include in the compressed package installation script and with various files,
Such as resource file, configuration file and executable file.
In the prior art, installation kit tools such as nsis (Nullsoft Scriptable Install is commonly used
System) or inno setup etc. makes application program installation kit, these tools itself support to make silent installation kit,
The installation kit made can support silent installation.But software developer or company can shield silent installation sometimes, at this moment make
Installation kit does not just support silent installation.Wherein, silent that the unattended installation that is otherwise known as is installed, it refers to being not necessarily to when installation any
User intervention is directly installed by default setting.
However, when user needs to install application software for multiple devices batch, if the installation kit of the application software does not prop up
Silent installation is held, then user needs to monitor and operate in the installation process of every equipment to complete the application software and set
Installation in standby, causes installation effectiveness low.
Summary of the invention
The present invention provides the production method and device of a kind of installation kit, to realize that rapid batch makes silent installation kit, In
When application software being installed for multiple devices batch, installation effectiveness is improved.
In a first aspect, the embodiment of the invention provides a kind of production method of installation kit, which includes:
Obtain at least one original installation package informatin;
At least one described original installation kit is mapped to corresponding docker container one by one;
At least one described original installation kit is installed, and described at least one is original by corresponding docker container record
The operation information of installation kit during the installation process;
Generate that described at least one is original according at least one described original installation kit operation information during the installation process
The corresponding silent installation kit of installation kit.
Second aspect, the embodiment of the invention also provides a kind of producing device of installation kit, which includes:
Installation kit obtains module, for obtaining at least one original installation package informatin;
Installation kit mapping block holds at least one described original installation kit to be mapped to corresponding docker one by one
Device;
Information logging modle is remembered for installing at least one described original installation kit, and by corresponding docker container
Record at least one the described operation information of original installation kit during the installation process;
Silent installation kit generation module, for the operation letter according at least one described original installation kit during the installation process
Breath generates the corresponding silent installation kit of at least one described original installation kit.
The present invention is by obtaining at least one original installation kit;At least one original installation kit is mapped to one by one corresponding
Docker container;At least one original installation kit is installed, and at least one original installation is recorded by corresponding docker container
The operation information of packet during the installation process;It is generated at least according to the operation information of at least one original installation kit during the installation process
The corresponding silent installation kit of one original installation kit.In the production process without the operation such as system reducing, and pass through starting difference
Docker container, can make the silent installation kit of multiple application software simultaneously, realize that rapid batch makes silent installation kit, In
When application software being installed for multiple devices batch, installation effectiveness is improved.
Detailed description of the invention
Fig. 1 is the flow chart of the production method of one of the embodiment of the present invention one installation kit;
Fig. 2 is the flow chart of the production method of one of the embodiment of the present invention two installation kit;
Fig. 3 is the structural block diagram of the producing device of one of the embodiment of the present invention three installation kit.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the production method for installation kit that the embodiment of the present invention one provides, and the present embodiment is applicable
In need batch making silence installation kit the case where, which can be executed by the producing device of installation kit.Referring to Fig. 1,
Production method provided in this embodiment specifically comprises the following steps:
Step 110 obtains at least one original installation kit.
Wherein, original installation kit is not support the silent installation kit installed.Illustratively, when needing for setting in local area network
When standby batch installation office software and decompression software, then the installation kit for obtaining office software and decompression software is needed, if
The installation kit for obtaining office software and decompression software is not support the silent installation kit installed, then can not propping up according to acquisition
The office software of silent installation and the original installation kit of decompression software are held, makes its corresponding silent installation kit respectively, from
And during batch installs application software, it is monitored and operates without user, improve the efficiency of installation.
The mode for obtaining original installation kit has very much, such as obtains original installation kit by way of copy or website downloading,
Which is not limited by the present invention.
At least one original installation kit is mapped to corresponding docker container by step 120 one by one.
Docker is installed in host, multiple docker containers can be started by docker.Under normal circumstances, medium configuration
Host, such as can run dozens of docker container simultaneously with the host of 8G memory, 8 core CPU and solid state hard disk, will acquire
Original installation kit is mapped to one by one in corresponding docker container, then can obtain being mapped to the appearance in the docker container of generation
The original installation kit of device, to make it according to the original installation kit for being mapped to the docker container in each docker container
Corresponding silence installation kit.
Step 130 installs at least one original installation kit, and it is original by corresponding docker container to record at least one
The operation information of installation kit during the installation process.
In the docker container of starting, installation maps to the original installation kit of the docker container, such as holds in docker
Open original installation kit in device, successively carry out operations described below: click installation, selection installation directory, mounting assembly, etc. it is to be installed and
Installation is completed, and records the operation information in the original installation kit installation process.
Illustratively, it when the silent installation kit of two software of office software and decompression software need to be made, can first open
A docker container is moved, and the original installation kit of office software is mapped in the docker container, is held in the docker
The original installation kit that office software is installed in device, then restarts a docker container, by the original peace of decompression software
Dress packet maps in the docker container, and the original installation kit of decompression software is installed in the docker container, thus respectively
In two docker containers, according to the original installation kit of office software and decompression software, while office software is made
With the silent installation kit of decompression software.Due in fabrication and installation packet, needing pure system environments, peace in the prior art
Dress packet production method is both needed to restoring operation system in each fabrication and installation packet, makes peace to obtain pure system environments
Dress packet, it is complicated for operation, and producing efficiency is lower, and the present invention can make difference simultaneously directly in different docker containers and answer
With software or the silent installation kit of same application software, the efficiency for making silent installation kit is greatly improved, to install in batch
When application software, the efficiency of installation is improved.
Preferably, operation information includes: file copy operation, registration table write-in and delete operation and windows service
Registration and delete operation.
Step 140, to generate at least one according at least one operation information of original installation kit during the installation process original
The corresponding silent installation kit of installation kit.
After original installation kit is installed, according to the operation information of each installation kit of record during the installation process, production
Installation script, and the All Files in original installation kit during the installation process file copy operation are copied from original installation kit
Out, the file of installation script and copy constitutes silent installation kit.
It is run simultaneously by multiple docker containers as a result, the silent installation kit of multiple softwares can be made simultaneously, without every
System reducing operation is carried out when secondary production, improves the efficiency for making silent installation kit and batch installs the efficiency of application software.
The embodiment of the present invention is by obtaining at least one original installation kit;At least one original installation kit is mapped to one by one
Corresponding docker container;At least one original installation kit is installed, and at least one original is recorded by corresponding docker container
The operation information of beginning installation kit during the installation process;It is raw according to the operation information of at least one original installation kit during the installation process
At the corresponding silent installation kit of at least one original installation kit.In the production process without the operation such as system reducing, and by opening
Different docker containers is moved, the silent installation kit of multiple application software can be made simultaneously, realizes the silent peace of rapid batch production
Dress packet improves installation effectiveness when for multiple devices batch installation application software.
Embodiment two
Fig. 2 is a kind of flow chart of the production method of installation kit provided by Embodiment 2 of the present invention.The present embodiment is in reality
It applies and optimizes on the basis of example one, referring to fig. 2, production method provided in this embodiment specifically comprises the following steps:
Step 210 obtains at least one original installation kit.
Step 220 obtains WindowsSeverCore mirror image.
WindowsSeverCore mirror image can be pulled from official's mirror image warehouse docker hub, so that the container of starting
Based on WindowsSeverCore mirror image, the relative production environment of Windows systematic difference software is obtained.
Step 230, the starting script for writing docker container, wherein designated mirror is in starting script
WindowsSeverCore mirror image.
After obtaining WindowsSeverCore mirror image, the starting script of docker container is write, and in the starting foot write
Designated mirror is WindowsSeverCore mirror image in this, so that the container of starting is to be based on after calling starting script
The container of windowsSeverCore mirror image, so that production is based on Windows systematic difference in the docker container of starting
The silent installation kit of software.
Corresponding original installation kit, silent installation kit production process and silent installation kit are generated file extension by step 240
It is downloaded to docker container.
Corresponding original installation kit, silent installation kit production process and silent installation kit are generated into file in starting script
The catalogue of folder is mounted to docker container, so that original installation kit, silent installation kit production process and silent installation kit is raw
It is mapped in the docker container of starting at file.
Preferably, it is also provided with set interface, includes original installation kit, silent installation kit production process and quiet in interface
Window is arranged in the catalogue that silent installation kit generates file, further includes starting, the button for stopping and deleting docker container, then leads to
It crosses and the catalogue that original installation kit, silent installation kit production process and silent installation kit generate file is set in set interface,
Start button is clicked, starting script can be called, by the original installation kit being arranged in set interface, silent installation kit production process
Catalogue carry with silent installation kit generation file is into the docker container newly started, to obtain in the docker container
File is generated to original installation kit, silent installation kit production process and silent installation kit;Container can be called by stop button
Cease and desist order, stop the docker container being currently running;By delete button, the delete command of container can be called, is deleted
The docker container of generation.To carry out the production of silent installation kit more conveniently by set interface.
Step 250 installs at least one original installation kit, and it is original by corresponding docker container to record at least one
The operation information of installation kit during the installation process.
The original installation kit being arranged in set interface, silent installation kit production process and silent installation kit are generated into file
After the catalogue carry of folder to the docker container generated, then original installation kit, silent installation can be got in docker container
Packet production process and silent installation kit generate file, can install original installation kit in docker container, be mounted to
Silent installation kit production process in docker container records the operation information of original installation kit during the installation process.
In application software installation process, including decompression, file copy operation, registration table write-in and delete operation and
Windows service registration and delete operation.Preferably, operation information includes: file copy operation, registration table write-in and deletes behaviour
Work and windows service registration and delete operation.
260, file is generated in silent installation kit according at least one operation information of original installation kit during the installation process
Fabrication and installation script in folder.
270, by file copy operate in All Files be copied to silent installation kit and generate file.
After original installation kit is installed, silent installation kit production process of the carry into docker container is according to record
Operation information in installation process, fabrication and installation script, in the silent installation kit installation process of production, according to installation script
File copy operation, registration table write-in and delete operation and windows service registration and delete operation can be realized automatically, thus
The silent installation kit to complete can support silent installation, in its installation process, be not necessarily to user's operation.
After installation script completes, silent installation kit production process by file copy operate in All Files be copied to
Silent installation kit generates in file, and by silent installation kit installation process, the file needed is put into silent installation kit and generates
File.
It illustratively, include the file copied and corresponding catalogue in the file copy operation information of record, then in silence
It, can be automatically by corresponding file copy into corresponding catalogue according to installation script in installation kit installation process.
280, silent installation kit generation file is packaged as a compressed package.
All Files of the silent installation kit production process in installation script completes and operates file copy are copied
After shellfish generates file to silent installation kit, silent installation kit generation file is packaged as a compressed package, such as passes through installation
Silent installation kit is generated file and is packaged as a compressed package by packet tools nsis or other compressed softwares, then completes silence
The production of installation kit can be obtained in the catalogue of the silent installation kit generation file of carry to docker container and complete
Silent installation kit.
Preferably, after the production for completing silent installation kit, corresponding docker container is automatically closed and deletes.
The embodiment of the present invention, which passes through, generates corresponding original installation kit, silent installation kit production process and silent installation kit
The catalogue of file is mounted in docker container, thus by original installation kit, silent installation kit production process and silent peace
Dress packet generate folders into corresponding docker container, in docker container, silent installation kit production process according to
The operation information of original installation kit during the installation process generates in silent installation kit and makes silent installation kit in file, as a result,
Can be by docker container quick Fabrication silence installation kit, while can be made more by the parallel operation of multiple docker containers
The silent installation kit of a application program improves the producing efficiency of silent installation kit.
Embodiment three
Fig. 3 is a kind of structural block diagram of the producing device for installation kit that the embodiment of the present invention three provides, and above-mentioned apparatus is used for
The production method for realizing installation kit provided by the above embodiment, the producing device include that installation kit obtains module 310, installation kit reflects
Penetrate module 320, information logging modle 330 and silent installation kit generation module 340, wherein
Installation kit obtains module 310, for obtaining at least one original installation package informatin;
Installation kit mapping block 320, at least one described original installation kit to be mapped to corresponding docker one by one
Container;
Information logging modle 330 for installing at least one described original installation kit, and passes through corresponding docker container
Record at least one the described operation information of original installation kit during the installation process;
Silent installation kit generation module 340, for according to the behaviour of at least one original installation kit during the installation process
Make information and generates the corresponding silent installation kit of at least one described original installation kit.
In above scheme, optionally, the installation kit mapping block includes:
Mirror image acquiring unit, for obtaining WindowsSeverCore mirror image;
Script edit unit, for writing the starting script of docker container, wherein designated mirror in the starting script
For the windowsSeverCore mirror image;
Carry unit, for corresponding original installation kit, silent installation kit production process and silent installation kit to be generated text
Part folder is mounted to the docker container.
In above scheme, optionally, the operation information includes: file copy operation, registration table write-in and deletes behaviour
Work and windows service registration and delete operation.
In above scheme, optionally, the silence installation kit generation module, comprising:
Installation script production unit, for according at least one the described operation information of original installation kit during the installation process
Fabrication and installation script in file is generated in silent installation kit;
File copy unit, it is raw for the All Files in file copy operation to be copied to the silent installation kit
At file.
In above scheme, optionally, file packetization module is packaged for the silent installation kit to be generated file
For a compressed package.
Method provided by the embodiment of the present invention one and embodiment two can be performed in above-mentioned apparatus, has and executes above method phase
The functional module and beneficial effect answered.The not technical detail of detailed description in the present embodiment, reference can be made to the embodiment of the present invention one
With method provided by embodiment two.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (8)
1. a kind of production method of installation kit characterized by comprising
Obtain at least one original installation kit;
At least one described original installation kit is mapped to corresponding docker container one by one;
At least one described original installation kit is installed, and at least one described original installation is recorded by corresponding docker container
The operation information of packet during the installation process;
At least one described original installation is generated according to the operation information of at least one described original installation kit during the installation process
Wrap corresponding silent installation kit;
It is wherein, described that at least one described original installation kit is mapped to corresponding docker container one by one, comprising:
Obtain WindowsSeverCore mirror image;
The starting script of docker container is write, wherein designated mirror is the windowsSeverCore in the starting script
Mirror image;
Corresponding original installation kit, silent installation kit production process and silent installation kit generation file are mounted to described
Docker container.
2. the method according to claim 1, wherein the operation information includes: file copy operation, registration table
Write-in and delete operation and windows service registration and delete operation.
3. according to the method described in claim 2, it is characterized in that, described at least one original installation kit according to is being installed
Operation information in the process generates the corresponding silent installation kit of at least one described original installation kit, comprising:
It is generated in file according at least one the described operation information of original installation kit during the installation process in silent installation kit
Fabrication and installation script;
All Files in file copy operation are copied to the silent installation kit and generate file.
4. according to the method described in claim 3, it is characterized in that, the All Files by file copy operation are copied
Shellfish is generated to the silent installation kit after file, comprising:
The silent installation kit is generated into file and is packaged as a compressed package.
5. a kind of producing device of installation kit characterized by comprising
Installation kit obtains module, for obtaining at least one original installation kit;
Installation kit mapping block, at least one described original installation kit to be mapped to corresponding docker container one by one;
Information logging modle records institute for installing at least one described original installation kit, and by corresponding docker container
State at least one operation information of original installation kit during the installation process;
Silent installation kit generation module, for raw according to the operation information of at least one described original installation kit during the installation process
At the corresponding silent installation kit of at least one described original installation kit;
The installation kit mapping block, comprising:
Mirror image acquiring unit, for obtaining WindowsSeverCore mirror image;
Script edit unit, for writing the starting script of docker container, wherein designated mirror is institute in the starting script
State windowsSeverCore mirror image;
Carry unit, for corresponding original installation kit, silent installation kit production process and silent installation kit to be generated file
It is mounted to the docker container.
6. device according to claim 5, which is characterized in that the operation information includes: file copy operation, registration table
Write-in and delete operation and windows service registration and delete operation.
7. device according to claim 6, which is characterized in that the silence installation kit generation module, comprising:
Installation script production unit, at least one operation information of original installation kit during the installation process according to quiet
Silent installation kit generates fabrication and installation script in file;
File copy unit generates text for the All Files in file copy operation to be copied to the silent installation kit
Part folder.
8. device according to claim 7, which is characterized in that further include:
File packetization module is packaged as a compressed package for the silent installation kit to be generated file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611159494.3A CN106648651B (en) | 2016-12-15 | 2016-12-15 | A kind of production method and device of installation kit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611159494.3A CN106648651B (en) | 2016-12-15 | 2016-12-15 | A kind of production method and device of installation kit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106648651A CN106648651A (en) | 2017-05-10 |
CN106648651B true CN106648651B (en) | 2019-11-08 |
Family
ID=58822731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611159494.3A Active CN106648651B (en) | 2016-12-15 | 2016-12-15 | A kind of production method and device of installation kit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648651B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107729016B (en) * | 2017-09-22 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Rpm packet compiling method and system based on docker |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101866296A (en) * | 2010-06-30 | 2010-10-20 | 福建升腾资讯有限公司 | Windows file system based installation package silencing method and tool |
CN102736924A (en) * | 2011-04-06 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Software installation method and device |
CN104182257A (en) * | 2011-11-22 | 2014-12-03 | 华为数字技术(成都)有限公司 | Application software installation method and device |
CN104346195A (en) * | 2014-06-05 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Software installing method and system |
-
2016
- 2016-12-15 CN CN201611159494.3A patent/CN106648651B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101866296A (en) * | 2010-06-30 | 2010-10-20 | 福建升腾资讯有限公司 | Windows file system based installation package silencing method and tool |
CN102736924A (en) * | 2011-04-06 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Software installation method and device |
CN104182257A (en) * | 2011-11-22 | 2014-12-03 | 华为数字技术(成都)有限公司 | Application software installation method and device |
CN104346195A (en) * | 2014-06-05 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Software installing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106648651A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10430209B1 (en) | System and method for server customization | |
US7765542B2 (en) | Method and system for describing and extracting application information | |
US7778968B2 (en) | Systems and methods for compiling applications on a test server | |
US7284043B2 (en) | System and method for automated migration from Linux to Windows | |
CN105045663B (en) | The method and system of rapid deployment virtual machine | |
US8176482B1 (en) | Methods and systems for inserting software applications into images | |
KR20100099678A (en) | Improved user interface | |
US9223592B2 (en) | Configuring a system with various system components utilizing a configuration profile | |
JP2010205267A (en) | Method and system for unifying virtualized sublayers | |
US9116770B2 (en) | Recipe-based application conversion | |
US7673286B2 (en) | Architecture for converting control types in a data bound user interface | |
WO2017173922A1 (en) | Method and apparatus for upgrading virtual machine | |
CN109460358B (en) | Configuration management method and system based on Cmdb | |
KR100923161B1 (en) | Portable storage apparatus for providing working environment migration service, and method for providing working environment migration service in that | |
CN106648651B (en) | A kind of production method and device of installation kit | |
JP3348430B2 (en) | Automatic environment setting method of preinstalled application and storage medium | |
CN110928624A (en) | Cloud desktop calling method and device for user terminal and terminal | |
US9940334B2 (en) | Image forming apparatus and control method thereof | |
US20050066337A1 (en) | Portable operating environment | |
CN109634690A (en) | Data clearing method, device, terminal and storage medium based on WinPE system | |
US7350214B2 (en) | Printer driver initialization | |
JP2015035161A (en) | Management program, management device, and management method | |
CN108733467A (en) | The method and device of electronic equipment operation application, electronic equipment | |
CN106802806B (en) | Method and apparatus for integrating software development environments | |
CN117270951A (en) | Method and device for dynamically changing icons, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |