CN106775798A - A kind of installation method of operating system and device - Google Patents

A kind of installation method of operating system and device Download PDF

Info

Publication number
CN106775798A
CN106775798A CN201610058188.4A CN201610058188A CN106775798A CN 106775798 A CN106775798 A CN 106775798A CN 201610058188 A CN201610058188 A CN 201610058188A CN 106775798 A CN106775798 A CN 106775798A
Authority
CN
China
Prior art keywords
script
operating system
installation
terminal
file
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.)
Pending
Application number
CN201610058188.4A
Other languages
Chinese (zh)
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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201610058188.4A priority Critical patent/CN106775798A/en
Publication of CN106775798A publication Critical patent/CN106775798A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of installation method of operating system and device, it is related to field of computer technology, is applied to first terminal, the method includes:Obtain the first script and the second script, initialize local operating conditions and call the second script by running the first script, by running the second script, operating system installation file and configuration file are obtained from second terminal, according to the Profile Up operating system installation file, installation operation system.Using technical scheme provided in an embodiment of the present invention, intervention number of times of the user in installation operation systematic procedure is reduced, improve the automaticity of operating system installation.

Description

A kind of installation method of operating system and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of operating system Method for Installation and device.
Background technology
At present, when installing Windows operating system on computers, into Windows PE (Windows Preinstallation Environment, Windows WindowsPE) after, it is impossible to installation procedure is directly invoked, Need user to manually boot installation procedure, such computer by performing the installation procedure installation operation system, In addition, during computer performs installation procedure, in addition it is also necessary to which the various installation parameters of user's manually determined are (such as: The parameters such as install medium, operating system version, user name, sequence number), various peaces only are determined in user After dress parameter, the installation of operating system could be completed.
It can be seen that, in the prior art, it is necessary to user repeatedly intervenes, automates during installation Windows operating system Low degree.
The content of the invention
The embodiment of the invention discloses a kind of operating system Method for Installation and device, to reduce user in installation operation Intervention number of times, raising automaticity in systematic procedure.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of installation method of operating system, is applied to One terminal, methods described includes step:
Obtain the first script and the second script;
Initialize local operating conditions and call second script by running first script;
By running second script, operating system installation file and configuration text are obtained from the second terminal Part, wherein, the configuration file includes the configuration parameter needed for installation operation systematic procedure;
The operating system installation file according to the Profile Up, installation operation system.
In a specific embodiment of the present invention, acquisition the first script and second script, including:
Receive operating system installation instruction;
Script is sent to second terminal to be asked, wherein, the script is asked to include:First pin This mark and the mark of the second script;
Receive mark and the mark of second script according to first script that the second terminal is returned First script and second script for obtaining.
In a specific embodiment of the present invention, first script is by the default of default script Position increases the script that the mode of call instruction is generated, wherein, the default script is local for initializing The script of running environment, the call instruction is the instruction for calling second script.
In a specific embodiment of the present invention, second script is to be generated by default edit tool Custom script.
It is described to be pacified according to the Profile Up operating system in a specific embodiment of the present invention Dress file, after installation operation system, including:
The announcement information that generation is installed for operating system.
To reach above-mentioned purpose, the embodiment of the invention also discloses a kind of operating system erecting device, it is applied to First terminal, described device includes:Script obtaining unit, the first script running unit, the operation of the second script Unit and operating system installation unit;
Wherein, the script obtaining unit, for obtaining the first script and the second script;
The first script running unit, for initializing local operating conditions by running first script And call second script;
The second script running unit, for by running second script, being obtained from the second terminal Operating system installation file and configuration file are obtained, wherein, the configuration file includes installation operation system mistake Configuration parameter needed for journey;
The second script running unit, text is installed for the operating system according to the Profile Up Part, installation operation system.
In a specific embodiment of the present invention, the script obtaining unit, including:Command reception Unit, script obtain request transmission sub-unit and script receiving subelement;
Wherein, the command reception subelement, for receiving operating system installation instruction;
The script obtains request transmission sub-unit, is asked for sending script to second terminal, wherein, The script is asked to include:The mark and the mark of the second script of the first script;
The script receiving subelement, for receiving that the second terminal returns according to first script First script and second script that the mark of mark and second script is obtained.
In a specific embodiment of the present invention, first script is by the default of default script Position increases the script that the mode of call instruction is generated, wherein, the default script is local for initializing The script of running environment, the call instruction is the instruction for calling second script.
In a specific embodiment of the present invention, second script is to be generated by default edit tool Custom script.
In a specific embodiment of the present invention, described device also includes:Announcement information generation unit, For:
The announcement information that generation is installed for operating system.
From the foregoing, it will be observed that in the embodiment of the present invention, first terminal obtains the first script and the second script, two are obtained After individual script, the first script automatic running initializes local operating conditions and calls second script, leads to The second script of operation is crossed, then operating system installation file and configuration file, first terminal are obtained from second terminal After obtaining operating system installation file and configuration file, text can be installed according to Profile Up operating system Part, installation operation system.In the technical scheme that the present invention is provided, because the first script is automatic running, Second script is called by the first script, then operating system installation file and configuration text are obtained by the second script Part, manually boots without user, in addition, comprising matching somebody with somebody needed for installation operation systematic procedure in configuration file Parameter is put, the various installation parameters of user's manually determined are not needed during installation operation system, therefore, Reduce intervention number of times of the user in installation operation systematic procedure, improve automaticity.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to implementing Example or the accompanying drawing to be used needed for description of the prior art are briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of installation method of operating system provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another installation method of operating system provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another installation method of operating system provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of operating system erecting device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another operating system erecting device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another operating system erecting device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation Property work under the premise of the every other embodiment that is obtained, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of installation method of operating system and device, it is related to field of computer technology, First terminal is applied to, the method includes:The first script and the second script are obtained, at the beginning of by running the first script Beginningization local operating conditions simultaneously call the second script, by running the second script, are operated from second terminal System installation file and configuration file, according to the Profile Up operating system installation file, installation operation System.
Below by specific embodiment, the present invention is described in detail.
With reference to Fig. 1, Fig. 1 is a kind of schematic flow sheet of installation method of operating system provided in an embodiment of the present invention, First terminal is applied to, the method may include steps of:
S101:Obtain the first script and the second script;
Wherein, the first script, for initializing local running environment and for calling second script, Second script, for obtaining operating system installation file and configuration file from second terminal, wraps in configuration file Include the configuration parameter needed for installation operation systematic procedure.
In a specific embodiment of the present invention, above-mentioned first script is by the default of default script Position increases the script that the mode of call instruction is generated.Here, default script is for initializing local runtime The script of environment, call instruction is the instruction for calling the second script.
Specifically, when Windows operating system is installed, above-mentioned default script can be startnet.cmd, should Script is stored under Windows/System32 catalogues, because when Windows PE are entered, first terminal meeting Automatic running startnet.cmd, initialization terminal running environment, according to the characteristic, can be in startnet.cmd Predeterminated position increase a line call instruction, be achieved in that script is exactly the first script startnet.cmd, first eventually Holding can directly invoke the second script when the script of startnet.cmd initialization terminal running environment is run, and then Operating system installation file and configuration file are obtained from second terminal, and text is installed according to the operating system for obtaining Part and configuration file, installation operation system.It is assumed that the second script is install.bat, then above-mentioned call instruction can Think call install.bat, the first script has been generated as after the call instruction is inserted into startnet.cmd Startnet.cmd, the startnet.cmd that reruns can just call install.bat, and call instruction is inserted as here Prior art, here is omitted.
In addition, above-mentioned predeterminated position can be the bottom of the content of startnet.cmd, end is not interfered with thus The initialization at end, also will not in turn result in the installation operation system that can not succeed because of terminal initialization not exclusively.
In a specific embodiment of the present invention, above-mentioned second script is to be generated by default edit tool Custom script.Here, default edit tool can be Windows AIK (Automated Installation Kit, automatic fitting tool bag), it is prior art using Windows AIK generation custom scripts, herein not Repeat again.
In a specific embodiment of the present invention, in order to reduce user in installation operation systematic procedure Intervene number of times, improve automaticity, user needs to obtain configuration file, operating system installation file, the One script and the second script, specifically, configuration file, operating system installation file, the first script and second Script can be generated by a under type:
User performs " DISM.exe/mount-wim/wimfile in command prompt window:d:\winpe.wim /index:1/mountdir:d:Mount ", winpe.wim is mirrored to the d of computer where user:Mount, here Winpe.wim is Windows PE image files, and startnet.cmd and all operation systems are included in winpe.wim System installation file, startnet.cmd is stored under Windows/System32 catalogues.
Enter into catalogue d:Mount, then into Windows/System32 catalogues, change startnet.cmd File, a line call install.bat are increased in bottom, and here, install.bat is the second script.
The second script install.bat is added, in addition, the operating system that will be included in configuration file and winpe.wim Installation file is placed under same catalogue.
" DISM.exe/unmount-wim/mountdir is performed in command prompt window:d:\mount / commit " is ordered, and closes winpe image files.
In practical application, above-mentioned second terminal can be computer where user, or a shared service Device, such as:TFTP (trivial file transfer protocol, TFTP) server.Assuming that: The catalogue of the operating system installation file included in configuration file and winpe.wim is placed for share directory, when the When two terminals are computer where user, share directory is stored on the computer;When second terminal can be one Shared server, user needs for the content of the share directory and the share directory to be sent to the shared server, When so other users need installation operation system, can be obtained from the shared server, without again Configuration aforesaid operations system installation file, configuration file, the first script and the second script.
S102:Initialize local operating conditions and call the second script by running the first script;
Here, after the first script is obtained, automatic running first script initializes local runtime to first terminal Environment, in addition, comprising the call instruction for the second script in the first script, therefore can be in operation first During script, the second script is called and run.
S103:By running the second script, operating system installation file and configuration file are obtained from second terminal;
Here, after running above-mentioned second script, the operating system installation file that will can be stored in second terminal In configuration file storage to first terminal, such as:
net use R:Share directory path/user:Shared user name password
R:
setup.exe/unattend:autounattend.xml
Wherein, by running the second script, share directory is mapped as local R disks, is wrapped under the share directory Include:(here, configuration filename is referred to as operating system installation file and configuration file:Autounattend.xml), Therefore first terminal obtains operating system installation file and configuration file, and system is operated according to Profile Up System installation file, can complete operating system installation.
In practical application, above-mentioned configuration file is referred to as deployment configuration file, and configuration file can be used Windows AIK are generated, and are prior art using Windows AIK generation custom scripts, are no longer gone to live in the household of one's in-laws on getting married herein State.In a kind of specific implementation, it is necessary to the configuration file and operating system are pacified after configuration file generation Dress file is stored under same share directory, so that first terminal can accurately obtain configuration file and operation system System installation file, because different operating system versions, it is necessary to different during operating system installation file, enters And configuration file is also difference, such as:User needs the operating system of Windows2008 to be mounted, then first eventually End obtains the operating system installation file of Windows2008, and the operating system for installing Windows2008 installs text During part, the parameter that it needs is stored in the configuration file of Windows2008, when user needs to install During Windows2003 operating systems, first terminal obtains the operating system installation file of Windows2003, peace When filling the operating system installation file of Windows2003, the configuration file of Windows2008 is not appropriate for The operating system installation file of Windows2003, first terminal needs to obtain the configuration text of Windows2003 Part.
S104:According to Profile Up operating system installation file, installation operation system.
In this case, first terminal obtains operating system installation file and configuration file, the configuration file In contain configuration parameter needed for installation operation systematic procedure, therefore during installation operation system The various installation parameters of user's manually determined are not needed.
Using embodiment illustrated in fig. 1, first terminal obtains the first script and the second script, after obtaining two scripts, First script automatic running, initializes local operating conditions and calls second script, by operation second Script, then operating system installation file and configuration file are obtained from second terminal, first terminal obtains operation system After system installation file and configuration file, behaviour can be installed according to Profile Up operating system installation file Make system.In the technical scheme that the present invention is provided, because the first script is automatic running, by the first pin Originally the second script is called, then operating system installation file and configuration file is obtained by the second script, without use Family manually boots, in addition, the configuration parameter needed for installation operation systematic procedure is included in configuration file, The various installation parameters of user's manually determined are not needed during installation operation system, therefore, reduce user Intervention number of times in installation operation systematic procedure, improve automaticity.
With reference to Fig. 2, Fig. 2 is that the flow of another installation method of operating system provided in an embodiment of the present invention is illustrated Figure, is applied to first terminal, and in the method, step S101 may include steps of:
S1011:Receive operating system installation instruction;
Specifically, if first terminal is a bare machine, any operating system and software are not installed, then first eventually End is when start-up command is received, it is believed that have received operating system installation instruction;If first terminal is Operating system is mounted with, then first terminal is when the order for entering WindowsPE is received, it is believed that connect Have received operating system installation instruction.
In a specific embodiment of the present invention, when first terminal is a bare machine, user can adopt With PXE (preboot execute environment, Pre-boot Execution Environment)+DHCP (Dynamic Host Configuration Protocol, DHCP)+TFTP mode, from network side start first Terminal, and then the first script, the second script, configuration file and operating system installation file are obtained, behaviour is installed Make system, now, being kept before first terminal without personnel can just complete the installation for installing first terminal, real Show remote installation operation system, improve the automaticity of operating system installation.It is above-mentioned The mode installation operation system of PXE+DHCP+TFTP is prior art, and here is omitted.
S1012:Script is sent to second terminal to be asked;
Wherein, script is asked to include:The mark and the mark of the second script of the first script.
S1013:The mark acquisition of mark and the second script according to the first script that reception second terminal is returned First script and the second script.
In a specific embodiment of the present invention, configuration file and operating system installation file can be from Second terminal is obtained, without install medium (such as CD, USB flash disk), therefore, in configuration file, install The part of medium should fill in the address of the catalogue of storage configuration file and operating system installation file in second terminal (address above mentioned is properly termed as overlapping trees address), it is assumed that the operating system of installation is that Windows operates system System, then install medium should be filled in:
<InstallFrom>
<MetaData wcm:Action=" add ">
<Key>/IMAGE/NAME</Key>
<Value>Windows 2008R2Standard</Value>
</MetaData>
<Path>Overlapping trees address</Path>
</InstallFrom>
Using embodiment illustrated in fig. 2, after first terminal receives operating system installation instruction, then to second terminal Send script to be asked, second terminal obtains request and obtains the first script and the second script according to script, and First script and the second script are sent to first terminal, so, first terminal is only receiving operation system In the case of system installation instruction, just go to obtain the first script and the second script, rather than going acquisition first at any time Script and the second script, it is ensured that the normal operation of first terminal.
With reference to Fig. 3, Fig. 3 is that the flow of another installation method of operating system provided in an embodiment of the present invention is illustrated Figure, is applied to first terminal, and the method can also comprise the following steps:
S105:The announcement information that generation is installed for operating system.
In a specific embodiment of the present invention, after generation announcement information, can be direct in first terminal Export the announcement information, it is also possible to which the announcement information is sent to second terminal, exporting this by second terminal leads to Know information, announcement information can also be sent to default terminal, to inform that operating system of user is installed.
In a specific embodiment of the present invention, during installation operation system, first terminal is also The prompt message of the installation progress for operating system can be generated, can be comprising behaviour at present in the prompt message Being mounted with percent as system, how many, estimated how long also have can the information such as installation.As for the prompting The display form of information, can be diversified forms, such as progress bar, and the present invention is not defined to this.
Using embodiment illustrated in fig. 3, after operating system is installed, generation is directed to operating system to first terminal The announcement information for installing, so that the notification message is exported to user, it is not necessary to which user is always etc. to be operated System is installed, so humanized.
With reference to Fig. 4, Fig. 4 is a kind of structural representation of operating system erecting device provided in an embodiment of the present invention, First terminal is applied to, the device can include:Script obtaining unit 401, the first script running unit 402, Second script running unit 403 and operating system installation unit 404;
Wherein, script obtaining unit 401, for obtaining the first script and the second script, here, the first script, For initializing local running environment and for calling the second script, the second script, for from second terminal Operating system installation file and configuration file are obtained, configuration file is included needed for installation operation systematic procedure Configuration parameter;
In a specific embodiment of the present invention, above-mentioned first script is by the default of default script Position increases the script that the mode of call instruction is generated.Here, default script is for initializing local runtime The script of environment, call instruction is the instruction for calling the second script.
Specifically, when Windows operating system is installed, above-mentioned default script can be startnet.cmd, should Script is stored under Windows/System32 catalogues, because when Windows PE are entered, first terminal meeting Automatic running startnet.cmd, initialization terminal running environment, according to the characteristic, can be in startnet.cmd Predeterminated position increase a line call instruction, be achieved in that script is exactly the first script startnet.cmd, first eventually Holding can directly invoke the second script when the script of startnet.cmd initialization terminal running environment is run, and then Operating system installation file and configuration file are obtained from second terminal, and text is installed according to the operating system for obtaining Part and configuration file, installation operation system.It is assumed that the second script is install.bat, then above-mentioned call instruction can Think call install.bat, the first script has been generated as after the call instruction is inserted into startnet.cmd Startnet.cmd, the startnet.cmd that reruns can just call install.bat, and call instruction is inserted as here Prior art, here is omitted.
In addition, above-mentioned predeterminated position can be the bottom of the content of startnet.cmd, end is not interfered with thus The initialization at end, also will not in turn result in the installation operation system that can not succeed because of terminal initialization not exclusively.
In a specific embodiment of the present invention, above-mentioned second script is to be generated by default edit tool Custom script.Here, default edit tool can be Windows AIK (Automated Installation Kit, automatic fitting tool bag), it is prior art using Windows AIK generation custom scripts, herein not Repeat again.
In a specific embodiment of the present invention, in order to reduce user in installation operation systematic procedure Intervene number of times, improve automaticity, user needs to obtain configuration file, operating system installation file, the One script and the second script, specifically, configuration file, operating system installation file, the first script and second Script can be generated by a under type:
User performs " DISM.exe/mount-wim/wimfile in command prompt window:d:\winpe.wim /index:1/mountdir:d:Mount ", winpe.wim is mirrored to the d of computer where user:Mount, here Winpe.wim is Windows PE image files, and startnet.cmd and all operation systems are included in winpe.wim System installation file, startnet.cmd is stored under Windows/System32 catalogues.
Enter into catalogue d:Mount, then into Windows/System32 catalogues, change startnet.cmd File, a line call install.bat are increased in bottom, and here, install.bat is the second script.
The second script install.bat is added, in addition, the operating system that will be included in configuration file and winpe.wim Installation file is placed under same catalogue.
" DISM.exe/unmount-wim/mountdir is performed in command prompt window:d:\mount / commit " is ordered, and closes winpe image files.
In practical application, above-mentioned second terminal can be computer where user, or a shared service Device, such as:TFTP (trivial file transfer protocol, TFTP) server.Assuming that: The catalogue of the operating system installation file included in configuration file and winpe.wim is placed for share directory, when the When two terminals are computer where user, share directory is stored on the computer;When second terminal can be one Shared server, user needs for the content of the share directory and the share directory to be sent to the shared server, When so other users need installation operation system, can be obtained from the shared server, without again Configuration aforesaid operations system installation file, configuration file, the first script and the second script.
First script running unit 402, for initializing local operating conditions and calling by running the first script Second script;
Here, after the first script is obtained, automatic running first script initializes local runtime to first terminal Environment, in addition, comprising the call instruction for the second script in the first script, therefore can be in operation first During script, the second script is called and run.
Second script running unit 403, for by running the second script, operating system being obtained from second terminal Installation file and configuration file;
Here, after running above-mentioned second script, the operating system installation file that will can be stored in second terminal In configuration file storage to first terminal, such as:
net use R:Share directory path/user:Shared user name password
R:
setup.exe/unattend:autounattend.xml
Wherein, by running the second script, share directory is mapped as local R disks, is wrapped under the share directory Include:(configuration file is entitled here for operating system installation file and configuration file:Autounattend.xml), Therefore first terminal obtains operating system installation file and configuration file, and system is operated according to Profile Up System installation file, can complete operating system installation.
In practical application, above-mentioned configuration file is referred to as deployment configuration file, and configuration file can be used Windows AIK are generated, and are prior art using Windows AIK generation custom scripts, are no longer gone to live in the household of one's in-laws on getting married herein State.In a kind of specific implementation, it is necessary to the configuration file and operating system are pacified after configuration file generation Dress file is stored under same share directory, so that first terminal can accurately obtain configuration file and operation system System installation file, because different operating system versions, it is necessary to different during operating system installation file, enters And configuration file is also difference, such as:User needs the operating system of Windows2008 to be mounted, then first eventually End obtains the operating system installation file of Windows2008, and the operating system for installing Windows2008 installs text During part, the parameter that it needs is stored in the configuration file of Windows2008, when user need to be to be mounted During the operating system of Windows2003, first terminal obtains the operating system installation file of Windows2003, When installing the operating system installation file of Windows2003, the configuration file of Windows2008 is not appropriate for The operating system installation file of Windows2003, first terminal needs to obtain the configuration text of Windows2003 Part.
Second script running unit 404, for according to Profile Up operating system installation file, installing behaviour Make system.
In this case, first terminal obtains operating system installation file and configuration file, the configuration file In contain configuration parameter needed for installation operation systematic procedure, therefore during installation operation system The various installation parameters of user's manually determined are not needed.
Using embodiment illustrated in fig. 4, first terminal obtains the first script and the second script, after obtaining two scripts, First script automatic running, initializes local operating conditions and calls second script, by operation second Script, then operating system installation file and configuration file are obtained from second terminal, first terminal obtains operation system After system installation file and configuration file, behaviour can be installed according to Profile Up operating system installation file Make system.In the technical scheme that the present invention is provided, because the first script is automatic running, by the first pin Originally the second script is called, then operating system installation file and configuration file is obtained by the second script, without use Family manually boots, in addition, the configuration parameter needed for installation operation systematic procedure is included in configuration file, The various installation parameters of user's manually determined are not needed during installation operation system, therefore, reduce user Intervention number of times in installation operation systematic procedure, improve automaticity.
With reference to Fig. 5, Fig. 5 is the structural representation of another operating system erecting device provided in an embodiment of the present invention Figure, is applied to first terminal, and in the device, script obtaining unit 401 can include:Command reception is single Unit 4011, script obtains request transmission sub-unit 4012 and script receiving subelement 4013;
Wherein, command reception subelement 4011, for receiving operating system installation instruction;
Specifically, if first terminal is a bare machine, any operating system and software are not installed, then first eventually End is when start-up command is received, it is believed that have received operating system installation instruction;If first terminal is Operating system is mounted with, then first terminal is when the order for entering WindowsPE is received, it is believed that connect Have received operating system installation instruction.
In a specific embodiment of the present invention, when first terminal is a bare machine, user can adopt With PXE (preboot execute environment, Pre-boot Execution Environment)+DHCP (Dynamic Host Configuration Protocol, the mode of DHCP+TFTP starts first eventually from network side End, and then obtain the first script, the second script, configuration file and operating system installation file, installation operation System, now, being kept before first terminal without personnel can just complete the installation for installing first terminal, realize Remote installation operation system, improves the automaticity of operating system installation.It is above-mentioned The mode installation operation system of PXE+DHCP+TFTP is prior art, and here is omitted.
Script obtains request transmission sub-unit 4012, is asked for sending script to second terminal, here, Script is asked to include:The mark and the mark of the second script of the first script;
Script receiving subelement 4013, for receive second terminal return according to the mark of the first script and the The first script and the second script that the mark of two scripts is obtained.
In a specific embodiment of the present invention, configuration file and operating system installation file can be from Second terminal is obtained, without install medium (such as CD, USB flash disk), therefore, in configuration file, install The part of medium should fill in the address of the catalogue of storage configuration file and operating system installation file in second terminal (address above mentioned is properly termed as overlapping trees address), it is assumed that the operating system of installation is that Windows operates system System, then the part of install medium should fill in:
<InstallFrom>
<MetaData wcm:Action=" add ">
<Key>/IMAGE/NAME</Key>
<Value>Windows 2008R2Standard</Value>
</MetaData>
<Path>Overlapping trees address</Path>
</InstallFrom>
Using embodiment illustrated in fig. 5, after first terminal receives operating system installation instruction, then to second terminal Send script to be asked, second terminal obtains request and obtains the first script and the second script according to script, and First script and the second script are sent to first terminal, so, first terminal is only receiving operation system In the case of system installation instruction, just go to obtain the first script and the second script, rather than going acquisition first at any time Script and the second script, it is ensured that the normal operation of first terminal.
It is the structural representation of another operating system erecting device provided in an embodiment of the present invention with reference to Fig. 6, First terminal is applied to, the device can also include:Announcement information generation unit 405;
Announcement information generation unit 405, for generating the announcement information installed for operating system.
In a specific embodiment of the present invention, after generation announcement information, can be direct in first terminal Export the announcement information, it is also possible to which the announcement information is sent to second terminal, exporting this by second terminal leads to Know information, announcement information can also be sent to default terminal, to inform that operating system of user is installed.
In a specific embodiment of the present invention, during installation operation system, first terminal is also The prompt message of the installation progress for operating system can be generated, can be comprising behaviour at present in the prompt message Being mounted with percent as system, how many, estimated how long also have can the information such as installation.As for the prompting The display form of information, can be diversified forms, such as progress bar, and the present invention is not defined to this.
Using embodiment illustrated in fig. 6, after operating system is installed, generation is directed to operating system to first terminal The announcement information for installing, so that the notification message is exported to user, it is not necessary to which user is always etc. to be operated System is installed, so humanized.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparing of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these There is any this actual relation or order between entity or operation.And, term " including ", "comprising" Or any other variant thereof is intended to cover non-exclusive inclusion, so that a series of mistake including key elements Journey, method, article or equipment not only include those key elements, but also other including being not expressly set out Key element, or it is this process, method, article or the intrinsic key element of equipment also to include.Do not having In the case of more limitations, the key element limited by sentence "including a ...", it is not excluded that wanted including described Also there is other identical element in process, method, article or the equipment of element.
One of ordinary skill in the art will appreciate that realizing all or part of step in above method implementation method Program be can be by instruct the hardware of correlation to complete, described program can be stored in computer-readable In taking storage medium, storage medium designated herein, such as:ROM/RAM, magnetic disc, CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the scope of the present invention. All any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in In protection scope of the present invention.

Claims (10)

1. a kind of installation method of operating system, is applied to first terminal, it is characterised in that methods described includes Step:
Obtain the first script and the second script;
Initialize local operating conditions and call second script by running first script;
By running second script, operating system installation file and configuration text are obtained from the second terminal Part, wherein, the configuration file includes the configuration parameter needed for installation operation systematic procedure;
The operating system installation file according to the Profile Up, installation operation system.
2. method according to claim 1, it is characterised in that the script of the acquisition first and crus secunda This, including:
Receive operating system installation instruction;
Script is sent to second terminal to be asked, wherein, the script is asked to include:First pin This mark and the mark of the second script;
Receive mark and the mark of second script according to first script that the second terminal is returned First script and second script for obtaining.
3. method according to claim 1 and 2, it is characterised in that first script is by pre- If the predeterminated position of script increases the script that the mode of call instruction is generated, wherein, the default script is use In the script of initialization local operating conditions, the call instruction is the instruction for calling second script.
4. method according to claim 1, it is characterised in that second script is by default volume The custom script of the instrument of collecting generation.
5. method according to claim 1, it is characterised in that described according to the Profile Up Operating system installation file, after installation operation system, including:
The announcement information that generation is installed for operating system.
6. a kind of operating system erecting device, is applied to first terminal, it is characterised in that described device includes: Script obtaining unit, the first script running unit, the second script running unit and operating system installation unit;
Wherein, the script obtaining unit, for obtaining the first script and the second script;
The first script running unit, for initializing local operating conditions by running first script And call second script;
The second script running unit, for by running second script, being obtained from the second terminal Operating system installation file and configuration file are obtained, wherein, the configuration file includes installation operation system mistake Configuration parameter needed for journey;
The second script running unit, text is installed for the operating system according to the Profile Up Part, installation operation system.
7. device according to claim 6, it is characterised in that the script obtaining unit, including: Command reception subelement, script obtain request transmission sub-unit and script receiving subelement;
Wherein, the command reception subelement, for receiving operating system installation instruction;
The script obtains request transmission sub-unit, is asked for sending script to second terminal, wherein, The script is asked to include:The mark and the mark of the second script of the first script;
The script receiving subelement, for receiving that the second terminal returns according to first script First script and second script that the mark of mark and second script is obtained.
8. the device according to claim 6 or 7, it is characterised in that first script is by pre- If the predeterminated position of script increases the script that the mode of call instruction is generated, wherein, the default script is use In the script of initialization local operating conditions, the call instruction is the instruction for calling second script.
9. device according to claim 6, it is characterised in that second script is by default volume The custom script of the instrument of collecting generation.
10. device according to claim 6, it is characterised in that described device also includes:Announcement information Generation unit, is used for:
The announcement information that generation is installed for operating system.
CN201610058188.4A 2016-01-28 2016-01-28 A kind of installation method of operating system and device Pending CN106775798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610058188.4A CN106775798A (en) 2016-01-28 2016-01-28 A kind of installation method of operating system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610058188.4A CN106775798A (en) 2016-01-28 2016-01-28 A kind of installation method of operating system and device

Publications (1)

Publication Number Publication Date
CN106775798A true CN106775798A (en) 2017-05-31

Family

ID=58972050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610058188.4A Pending CN106775798A (en) 2016-01-28 2016-01-28 A kind of installation method of operating system and device

Country Status (1)

Country Link
CN (1) CN106775798A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021375A (en) * 2017-12-05 2018-05-11 郑州云海信息技术有限公司 The management method and computer-readable recording medium of data in cloud computing system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710788A (en) * 2012-06-18 2012-10-03 苏州超集信息科技有限公司 Rapid and unattended operation system
CN103744695A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 Method and system for operating system remote installation on basis of PXE
CN103984575A (en) * 2014-05-28 2014-08-13 浪潮电子信息产业股份有限公司 Rapid deployment method of cluster Linux operation system in cloud-computing environment
CN104079434A (en) * 2014-07-07 2014-10-01 用友软件股份有限公司 Device and method for managing physical devices in cloud computing system
CN105117268A (en) * 2015-09-24 2015-12-02 上海爱数软件有限公司 Installing method and system for automatically installing linux systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710788A (en) * 2012-06-18 2012-10-03 苏州超集信息科技有限公司 Rapid and unattended operation system
CN103744695A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 Method and system for operating system remote installation on basis of PXE
CN103984575A (en) * 2014-05-28 2014-08-13 浪潮电子信息产业股份有限公司 Rapid deployment method of cluster Linux operation system in cloud-computing environment
CN104079434A (en) * 2014-07-07 2014-10-01 用友软件股份有限公司 Device and method for managing physical devices in cloud computing system
CN105117268A (en) * 2015-09-24 2015-12-02 上海爱数软件有限公司 Installing method and system for automatically installing linux systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021375A (en) * 2017-12-05 2018-05-11 郑州云海信息技术有限公司 The management method and computer-readable recording medium of data in cloud computing system

Similar Documents

Publication Publication Date Title
US10002054B2 (en) Method and system for performing automatic system recovery
US8352916B2 (en) Facilitating the automated testing of daily builds of software
US9053236B1 (en) Automated directory services test setup utility
JP2004532481A (en) Web-based file manipulation system
WO2002006991A2 (en) Method and apparatus for automatically uninstalling software on a network
CN103826162A (en) Embedded system of intelligent set top box based on Android and recovery method of embedded system
CN107038519B (en) Method and system for bidirectional data synchronization between systems
US7293168B2 (en) System and method for initially configuring and booting a device using a device identifier
CN106502713A (en) A kind of method for upgrading software and system
CN103164247B (en) The method and device that system application is repaired automatically
CN106569854B (en) Method and system for setting equipment firmware and realizing factory test
EP1866758B1 (en) Method, system and apparatus for launching an interface with an electronic device
CN107566518A (en) The method and apparatus of management equipment information during installation file
WO2020199543A1 (en) Method and apparatus applicable to release and upgrade of hybrid application, and intelligent device
CN106775798A (en) A kind of installation method of operating system and device
CN102622254A (en) Method and system for processing television outage
CN103581749A (en) Method and device allowing television to have access to MTP mode externally-connected device
CN104516743A (en) Upgrading method and system of embedded device firmware based on ActiveX
CN110716733A (en) ONT product software mutual upgrading method
CN113419814B (en) Virtual machine creating method, device, equipment and storage medium in cloud platform
Cisco Installing the CiscoWorks NetView Interface
Cisco Upgrading Cisco CallManager Release 3.0(5a) from the Web
Cisco Installing ViewRunner on Distributed Machines
CN115185553A (en) Method for updating device firmware of user and related device
CN109347937B (en) Intelligent remote upgrading method applied to video monitoring equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531