CN101751264B - Method for simplifying application program for installing window operating system - Google Patents

Method for simplifying application program for installing window operating system Download PDF

Info

Publication number
CN101751264B
CN101751264B CN 200810180198 CN200810180198A CN101751264B CN 101751264 B CN101751264 B CN 101751264B CN 200810180198 CN200810180198 CN 200810180198 CN 200810180198 A CN200810180198 A CN 200810180198A CN 101751264 B CN101751264 B CN 101751264B
Authority
CN
China
Prior art keywords
file
image file
window
data
windows
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
Application number
CN 200810180198
Other languages
Chinese (zh)
Other versions
CN101751264A (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.)
Taicang Hongyu Intelligent Technology Co., Ltd
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN 200810180198 priority Critical patent/CN101751264B/en
Publication of CN101751264A publication Critical patent/CN101751264A/en
Application granted granted Critical
Publication of CN101751264B publication Critical patent/CN101751264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a method for simplifying an application program for installing a window operating system, comprising: answer file is established, the establishment and the installation of the window operating system are conducted according to the installation sequence of the installation kit, and configuration file is established according to the environmental parameter; response file is loaded; pre-installation environmental image file of original window is read, and is stored to a storage unit, and is defined as pre-installation environmental image file of target window; the answer file is added to and modified to the window image file of the pre-installation environmental image file of target window; the pre-installation environmental image file of target window is started, and the installation program of the window operating system is conducted.

Description

Simplify the method for the application program of installing window operating system
Technical field
The present invention relates to a kind of method at the computing machine set up applications, particularly relate to the method for simplifying the installation procedure of application program under a kind of Windows, by revising window WindowsPE image file (Windows Preinstallation Environment Image, WIM) window image file, and then the installation procedure of the application program of simplification Windows.
Background technology
Windows PE is the abbreviation of window WindowsPE (Windows Preinstallation Environment), developed originally the purpose of Windows PE, in order to reduce when disposing Windows the dependence to the DOS environment, and also wishing to provide the manufacturer of the Windows execution environment of lightweight to computer system, as the deployed environment of manufacturer.In Windows universal to be ready taking off, the DOS environment was to the deployment of Windows or install and still play an important role, and the not only Windows fixing disc DOS environment of can starting shooting first, many deployment tools of manufacturer are also all or DOS version.But all the more universal as Windows, driver and application program have all been transferred to after the Windows environment, install or dispose Windows and also there is no need also to rest on the DOS environment.
Therefore, the slip-stick artist of Microsoft of group was installed at Windows at that time, and had just proposed the idea of lightweight Win32 execution environment, hope can allow after the CD start just with this environment loading calculation machine, and breaks away from the situation that installation, deployment Windows must rely on DOS.This idea also thereby develop into Windows PE, also be not difficult to find from the full name of Windows PE, this technology should want to produce " the needed environment of Windows is installed ", also because application program and the driver of many Windows environment have been arranged, and the Windows environment also becomes the platform that the developer is familiar with, so certainly wanting of being duty-bound of Windows PE can produce the Windows environment.
Moreover Windows PE should be individual for particular job, the customized operating environment of needs.Although having surpassed, Windows PE application now expected originally, concentrate on some work (as installing or disposing) but the application of Windows PE is still very simple, therefore Windows PE needs not be an all-round environment, and unwanted assembly can foreclose; Also because the application of Windows PE only is particular job, therefore be necessary to allow manufacturer customized to the function of Windows PE voluntarily.
Because existing Windows installation process needs the prompting of user's coupled system, carries out corresponding operation, so installation process is not full-automatic installation and needs extra manpower to cooperate.
Summary of the invention
In view of above problem, the technical problem to be solved in the present invention provides a kind of method of simplifying the application program of installing window operating system, and then simplifies the installation procedure of Windows.
In order to solve the problems of the technologies described above, the invention provides a kind of method of simplifying the application program of installing window operating system, in order to the application program that comprises many mounting kits to be installed under the environment of Windows, comprise: set up response file (Answer File), comprising installation setting and the configuration file of Windows; Be written into response document; Read original window WindowsPE image file (WindowsPreinstallation Environment Image, WIM), it is copied and is stored in the storage element, and it is defined as target window WindowsPE image file; Response file is increased and be modified in the window image file of target window WindowsPE image file; Start amended target window WindowsPE image file and carry out the installation procedure of the application program of Windows.
Wherein, response file can be set up to install according to the erection sequence of mounting kit and set, and set up configuration file according to the environmental parameter of Windows, and the response file form can be among Unattend.txt file or Unattend.xml file or the Autounattend.xml file any.
The disclosed method of the present invention also is included under the Linux environment to be increased and modification above-mentioned window image file.
Method according to the application program of simplification installing window operating system provided by the present invention is applied to the installation of Windows, can simplify the flow process of application program, and also need not the user in installation process and participate in, and then can save time and human cost.This method also is applicable to the Windows of various different editions in addition.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the process flow diagram according to the method for the application program of the simplification installing window operating system of one embodiment of the invention;
Fig. 2 is the structural drawing according to the window image file of the simplification installing window operating system of one embodiment of the invention;
Fig. 3 is the process flow diagram according to the window image file of the modifying target window WindowsPE of one embodiment of the invention.
Wherein, Reference numeral:
200 window image files
210 titles
220 first reflections
221 first file resources
223 first data resources
225 first look-up tables
227 first extensible markup language data
229 first integrality tables
230 second reflections
231 second file resources
233 second data resources
235 second look-up tables
237 second extensible markup language data
239 second integrality tables
Embodiment
Please refer to shown in Figure 1ly, it is the process flow diagram according to the method for the application program of simplification installing window operating system of the present invention.Flow process of the present invention may further comprise the steps:
S110 sets up response file, comprising installation setting and the configuration file of Windows, and sets up installation according to the erection sequence of mounting kit and sets, and set up configuration file according to the environmental parameter of Windows;
S120 is written into response document;
S130 reads original window WindowsPE image file, it is copied and is stored in the storage element, and it is defined as target window WindowsPE image file;
S140 increases response file and is modified in the window image file of target window WindowsPE image file; And
S150 starts amended target window WindowsPE image file and carries out the installation procedure of Windows.
Wherein, response document described above can be any among Unattend.txt file, Unattend.xml file or the Autounattend.xml file, and its content can be according to actual demand, the alternative response contents that increases.
In addition, the increase of the window image file described in the step S140 can be carried out under the Linux environment with modification.
Please refer to shown in Figure 2ly, it is the structural drawing according to the mouth image file of of the present inventionization installing window operating system.Window image file 200 comprises: title (header) 210, the first reflection the 220 and second reflection 230.Wherein, the first reflection 220 also can comprise: the first file resource (file resource) the 221, first data resource (metadata resource) the 223, first look-up table (lookup table) the 225, first extensible markup language data (eXtensible Markup Language data, XML data) the 227 and first integrality table (integrity table) 229.The second reflection 230 also can comprise: the second file resource 231, the second data resource 233, second look-up table 235, the second extensible markup language data 237 and the second integrality table 239.
In this, though be to describe two reflections are arranged, in fact the first reflection the 220 and second reflection 230 can be two or more reflections.
Wherein, the content of title 210 definition window image files comprises the core position of keystone resources (such as data resource, look-up table and extensible markup language data) and the attribute of window image file (such as version, size and compression kenel).The first file resource 221 and the second file resource 231 can be a series of external member (package), comprise the data (Tathagata source file) of obtaining.The first data resource 223 and the second data resource 233 can be the document content information that obtains, and comprise bibliographic structure and file attribute, and wherein the first reflection the 220 and second reflection 230 has a data resource.The first look-up table 225 and second look-up table 235 comprise the core position of the file resource of window image file.The first extensible markup language data 227 and the second extensible markup language data 237 comprise the excessive data of window image file.The first integrality table 229 comprises safe hash (security hash) information with the second integrality table 239, in order to the integrality of the first reflection of checking when application operates the 220 and second reflection 230.
Please refer to shown in Figure 3ly, it is the process flow diagram according to the window image file of modifying target window WindowsPE of the present invention.Increase at the window image file described in the step S140 can be carried out under the Linux environment with modification, can may further comprise the steps:
S1410 opens the window image file;
S1412, analysis window image file title (WIMheader), side-play amount and the size of data of based on analysis result's position offset table (OffsetTable), start data (BootMetaData) and extensible markup language data (XMLData);
S1414, it is terminal that response file is added to the window image file, and calculate the Hash Value of response document;
S1416, the data information of will starting shooting decompresses to get data of safety (Security Data) and directory entry (Directory Entry), and the information of response file adding directory entry, comprise attribute, file name, authority account, time and the Hash Value that calculates;
S1418 adds the window image file with amended start data information, and revises side-play amount and the size of data of start data information in the window image file title;
S1420, recomputate the start data Hash Value;
S1422, side-play amount, size of data and the Hash Value of start data data in the renewal look-up table;
S1424, the record of newly-increased side-play amount about response file, size of data and a Hash Value in look-up table;
S1426 adds the window image file with amended look-up table, and revises side-play amount and the size of data of look-up table in the window image file title;
S1428, size, quantity and the time of upgrading window image file in the extensible markup language data; And
S1430 adds the window image file with amended extensible markup language data, and revises side-play amount and the size of data of extensible markup language data in the window image file title.
Wherein, above-mentioned Hash Value can utilize SHA-1 (Secure Hash Algorithm, SHA) algorithm to calculate and get.
Can adopt LZX (MicrosoftLZX Algorithm) algorithm in the start data uncompressing data described in the step S1416.
Below list respectively the data structure of window image file title, data of safety, directory entry and look-up table.
Wherein, the data structure of window image file title is as follows:
typedef struct_WIMHEADER_V1_PACKED
{
CHAR ImageTag[8];//″MSWIM\0\0″
DWORD cbSize;
DWORD dwVersion;
DWORD dwFlags;
DWORD dwCompressionSize;
GUID gWIMGuid;
USHORT usPartNumber;
USHORT usTotalParts;
DWORD dwImageCount;
RESHDR_DISK_SHORT rhOffsetTable;
RESHDR_DISK_SHORT rhXmlData;
RESHDR_DISK_SHORT rhBootMetadata;
DWORD dwBoot Index;
RESHDR_DISK_SHORT rhIntegrity;
BYTE bUnused[60];
}WIMHEADER_V1_PACKED,*LPWIMHEADER_V1_PACKED;
Wherein, the data structure of the RESHDR_DISK_SHORT in the above-mentioned data structure is as follows:
typedef struct_RESHDR_DISK_SHORT
{
RESHDR_BASE_DISK Base;//Must be first.
LARGE_INTEGER liOriginalSize;
}RESHDR_DISK_SHORT,*LPRESHDR_DISK_SHORT;
Wherein, the data structure of the RESHDR_BASE_SHORT in the above-mentioned data structure is as follows:
typedef struct_RESHDR_BASE_DISK
{
ULONGLONG ullSize;
LARGE_INTEGER liOffset;
}RESHDR_BASE_DISK,*LPRESHDR_BASE_DISK;
In addition, the data structure of data of safety is as follows:
typedef struct_SECURITYBLOCK_DISK
{
DWORD dwTotalLength;
DWORD dwNumEntries;
ULARGE_INTEGER liEntryLength[0];
}SECURITYBLOCK_DISK,*LPSECURITYBLOCK_DISK;
In addition, the data structure of directory entry is as follows:
typedef struct_DIRENTRY
{
LARGE_INTEGER liLength;
DWORD dwAttributes;
DWORD dwSecurityId;
LARGE_INTEGER liSubdirOffset;
LARGE_INTEGER liUnused1;
LARGE_INTEGER liUnused2;
LARGE_INTEGER liCreationTime;
LARGE_INTEGER liLastAccessTime;
LARGE_INTEGER liLastWriteTime;
BYTE bHash[HASH_SIZE];
DWORD dwReparseTag;
LARGE_INTEGER liHardLink;
USHORT wStreams;
USHORT wShortNameLength;
USHORT wFileNameLength;
WCHAR FileName[0];
}DIRENTRY,*LPDIRENTRY;
At last, the data structure of look-up table is as follows:
typedef struct_RESHDR_DISK
{
RESHDR_DISK_SHORT DiskShort;
USHORT usPartNumber;
DWORD dwRefCount;
BYTE bHash[HASH_SIZE];
}RESHDR_DISK,*LPRESHDR_DISK;
The present invention relates to a kind of method of simplifying the application program of installing window operating system, can pass through under the Linux environment, to revise the means of the window image file of window WindowsPE, and then simplify the installation procedure of Windows.
Certainly; the present invention also can have other various embodiments; in the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of claim of the present invention.

Claims (3)

1. method of simplifying the application program of installing window operating system, in order to the application program that comprises a plurality of mounting kits to be installed under the environment of Windows, the method comprises:
Set up a response file, this response file comprises an installation setting and a configuration file of this Windows, and this erection sequence that this mounting kit of basis of design is installed is set up, and this configuration file is according to the environmental parameter foundation of this Windows;
Be written into this response file;
Read an original window WindowsPE image file, it is copied and be stored in the storage element, and it is defined as a target window WindowsPE image file;
This response file is increased and be modified in the window image file of this target window WindowsPE image file; And
Start amended this target window WindowsPE image file and carry out the installation procedure of Windows,
Wherein this response file is increased and is modified in the window image file of this target window WindowsPE image file and may further comprise the steps:
Open this window image file;
Analyze this window image file title, side-play amount and the size of data of based on analysis result's position offset table, start data and extensible markup language data;
It is terminal that this response file is added to this window image file, and calculate the Hash Value of this response file;
The data decompression of should starting shooting with data of safety and directory entry, and the information of this response file added directory entry, comprise attribute, file name, authority account, time and the Hash Value that calculates;
Should the start data add the window image file with amended, and revise side-play amount and the size of data of these start data in this window image file title;
Recomputate the Hash Value of these start data;
Upgrade side-play amount, size of data and the Hash Value of the data of should starting shooting in the look-up table;
The record of newly-increased side-play amount about this response file, size of data and a Hash Value in this look-up table;
Amended this look-up table is added this window image file, and revise side-play amount and the size of data of look-up table in this window image file title;
Upgrade size, quantity and the time of window image file in these extensible markup language data; And
Amended these extensible markup language data are added the window image file, and revise side-play amount and the size of data of extensible markup language data in this window image file title.
2. the method for the application program of simplification installing window operating system as claimed in claim 1 is characterized in that, this response file can be: any in Unattend.txt file, Unattend.xml file or the Autounattend.xml file.
3. the method for the application program of simplification installing window operating system as claimed in claim 1 is characterized in that, the increase of this window image file and modification are to carry out under the Linux environment.
CN 200810180198 2008-11-28 2008-11-28 Method for simplifying application program for installing window operating system Active CN101751264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810180198 CN101751264B (en) 2008-11-28 2008-11-28 Method for simplifying application program for installing window operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810180198 CN101751264B (en) 2008-11-28 2008-11-28 Method for simplifying application program for installing window operating system

Publications (2)

Publication Number Publication Date
CN101751264A CN101751264A (en) 2010-06-23
CN101751264B true CN101751264B (en) 2013-03-13

Family

ID=42478280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810180198 Active CN101751264B (en) 2008-11-28 2008-11-28 Method for simplifying application program for installing window operating system

Country Status (1)

Country Link
CN (1) CN101751264B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200922B (en) * 2011-04-06 2013-12-11 宇龙计算机通信科技(深圳)有限公司 Application program installation method and terminal
CN104765618B (en) * 2015-05-06 2017-12-08 中孚信息股份有限公司 A kind of making of linux system self-extracting installation kit and decompression installation method
CN107168726B (en) * 2017-03-30 2021-04-27 武汉斗鱼网络科技有限公司 Method and device for dynamically configuring application program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916848A (en) * 2005-08-16 2007-02-21 英业达股份有限公司 Method for fabricating operate system in version of optical disk through product line
CN101165654A (en) * 2006-10-16 2008-04-23 戴尔产品有限公司 Method and process for using common preinstallation environment for heterogeneous operating systems

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916848A (en) * 2005-08-16 2007-02-21 英业达股份有限公司 Method for fabricating operate system in version of optical disk through product line
CN101165654A (en) * 2006-10-16 2008-04-23 戴尔产品有限公司 Method and process for using common preinstallation environment for heterogeneous operating systems

Also Published As

Publication number Publication date
CN101751264A (en) 2010-06-23

Similar Documents

Publication Publication Date Title
US7735057B2 (en) Method and apparatus for packaging and streaming installation software
CN101719073B (en) Intelligent client-based on-demand downloading realization method
JP4652673B2 (en) A mechanism for downloading software components from a remote source for use by local software applications
CN100426235C (en) System and method for representing user process to software package in software package management system
US6748591B1 (en) Method, system, program, and data structures for loading programs into a runtime environment
CN101699400B (en) Method and system for generating and running installation program of client
CN103324474B (en) Based on (SuSE) Linux OS across the method for System structure ISO and module
US8190653B2 (en) Automatic file conversion to a target format
US20040010786A1 (en) System and method for automatically upgrading a software application
US20050055686A1 (en) Method and system for servicing software
US20030023770A1 (en) Automated software driver installation
JP2007535053A (en) Installing software on removable media
US20060248524A1 (en) System and method for common file installation
CN103530148A (en) Distribution method for large-scale Linux software package
CN105760200A (en) Terminal device and system updating method thereof
EP1717700A2 (en) Multimedia devices with enhanced functionality
JP2003208316A (en) Method, system, computer program, and data structure for installing software on mobile computing device using rollback and security features of configuration manager
CN103067392A (en) Security access control method based on Android terminal
CN104484172A (en) Method and device for packaging files
CN103514022A (en) RAID card drive integration method under LINUX
US20100211943A1 (en) Method for simplifying process for installing application of windows operating system
CN101751264B (en) Method for simplifying application program for installing window operating system
US20140143770A1 (en) Differential Flash Archive Installation
KR102088170B1 (en) Method of data structuring for difference between old and new data and device thereof
CN110889126A (en) Optimized Web application permission control method

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
TR01 Transfer of patent right

Effective date of registration: 20191211

Address after: No. 590 Xingwang Road, Bengbu High-tech Zone, Anhui Province

Patentee after: Bengbu Keda Electrical Equipment Co., Ltd.

Address before: 300193 West Lake Road, Tianjin, No. 38, No.

Co-patentee before: Yingda Co., Ltd.

Patentee before: Yingda Group (Tianjin) Electronic Technology Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201112

Address after: 215400 room 03, shop 43, Tinghai Road, Liuhe Town, Taicang City, Suzhou City, Jiangsu Province

Patentee after: Taicang Hongyu Intelligent Technology Co., Ltd

Address before: 233000, No. 590, prosperous road, hi tech Zone, Anhui, Bengbu

Patentee before: BENGBU KEDA ELECTRICAL EQUIPMENT Co.,Ltd.

TR01 Transfer of patent right