CN101751264A - 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
CN101751264A
CN101751264A CN 200810180198 CN200810180198A CN101751264A CN 101751264 A CN101751264 A CN 101751264A CN 200810180198 CN200810180198 CN 200810180198 CN 200810180198 A CN200810180198 A CN 200810180198A CN 101751264 A CN101751264 A CN 101751264A
Authority
CN
China
Prior art keywords
file
window
image file
windows
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200810180198
Other languages
Chinese (zh)
Other versions
CN101751264B (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, be 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 the purpose of Windows PE originally, be in order to reduce when disposing Windows 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, the not only Windows fixing disc DOS environment of can starting shooting earlier, and many deployment tools of manufacturer also all still are 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 and just this environment be added borne computer after the CD start, 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 full name of Windows PE, this technology should want to produce " the needed environment of Windows is installed ", also because the 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 wanting certainly of being duty-bound of Windows PE can produce the Windows environment.
Moreover Windows PE should be individual at particular job, the customized operating environment of needs.Though having surpassed, Windows PE application now expected originally, but some work (as installing or disposing) that concentrates on that 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, therefore be necessary to allow manufacturer customized to the function of Windows PE voluntarily because the application of Windows PE only is a particular job.
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 the installation setting and the configuration file of Windows; Be written into response document; (WindowsPreinstallation Environment Image WIM), duplicates it and be stored in the storage element, and it is defined as target window WindowsPE image file to read original 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 and set according to the erection sequence of mounting kit, 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 the 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 duplicated 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, above-mentioned described response document 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, first reflection, 220 and second reflection 230.Wherein, first reflection 220 also can comprise: first file resource (file resource), 221, first data resource (metadata resource), 223, first look-up table (lookup table), 225, the first extensible markup language data (eXtensible Markup Language data, XML data), the 227 and first integrality table (integrity table) 229.Second reflection 230 also can comprise: second file resource 231, 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 first reflection, 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 (as data resource, look-up table and extensible markup language data) and the attribute of window image file (as version, size and compression kenel).First file resource 221 and second file resource 231 can be a series of external member (package), comprise the data of obtaining (Tathagata source file).First data resource 223 and second data resource 233 can be the document content information that obtains, and comprise bibliographic structure and file attribute, and wherein first reflection, 220 and second reflection 230 all has a data resource.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 checking first reflection 220 and second reflection 230 when application is operated.
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) is according to position offset table (OffsetTable), the start data (BootMetaData) and the side-play amount and the size of data of extensible markup language data (XMLData) of analysis result;
S1414 is added to window image file end with response file, and calculates 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, comprise attribute, file name, authority number of the account, time and the Hash Value that calculates the information of response file adding directory entry;
S1418 adds the window image file with amended start data information, and revises the 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 the 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 the 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 computation and getting.
Can adopt LZX (MicrosoftLZX Algorithm) algorithm in the start data uncompressing data described in the step S1416.
Below list the data structure of window image file title, data of safety, directory entry and look-up table respectively.
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; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, 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, this 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 document;
Read an original window WindowsPE image file, it is duplicated 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.
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 true CN101751264A (en) 2010-06-23
CN101751264B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200922A (en) * 2011-04-06 2011-09-28 宇龙计算机通信科技(深圳)有限公司 Application program installation method and terminal
CN104765618A (en) * 2015-05-06 2015-07-08 山东中孚信息产业股份有限公司 Manufacturing method and decompression installation method of Linux system self-decompression installation packet
CN107168726A (en) * 2017-03-30 2017-09-15 武汉斗鱼网络科技有限公司 A kind of method and apparatus of dynamic configuration application program

Family Cites Families (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
US8225309B2 (en) * 2006-10-16 2012-07-17 Dell Products L.P. Method and process for using common preinstallation environment for heterogeneous operating systems

Cited By (6)

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

Also Published As

Publication number Publication date
CN101751264B (en) 2013-03-13

Similar Documents

Publication Publication Date Title
US7370066B1 (en) System and method for offline editing of data files
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
CN102289397B (en) Method and device for automatically restoring embedded system of set top box
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
US6748591B1 (en) Method, system, program, and data structures for loading programs into a runtime environment
CN103067392B (en) Security access control method based on Android terminal
US20020095671A1 (en) System and method for repairing a damaged application program
EP1717700A2 (en) Multimedia devices with enhanced functionality
WO2012068101A1 (en) Shared resource dependencies
CN101305358A (en) Slave replica member
CN104484172A (en) Method and device for packaging files
CN103514022A (en) RAID card drive integration method under LINUX
US9292272B2 (en) Differential flash archive installation
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
CN113467790A (en) Software packaging method and device and readable storage medium
KR102088170B1 (en) Method of data structuring for difference between old and new data and device thereof
CN102622254A (en) Method and system for processing television outage
WO2008124246A2 (en) Side-by-side application manifests for single-purpose applications
CN110889126A (en) Optimized Web application permission control method
CN104217021A (en) Reading server, terminal equipment and method for displaying reading contents
Cisco Installing the CiscoWorks NetView Interface
KR20040029089A (en) Device for use in a network environment

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
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.