Creating a custom windows PE Image

Source: Internet
Author: User
Tags filezilla

I. Preparation

 

Download the AIK from Microsoft and install it. I used 6001.18000.080118-1840-kb3aik_cn.iso.

 

 

 

Ii. process of creating a custom windows PE Image

0. Use copype. CMD to create a local Windows PE Build Environment

Copype. CMD x86 c: \ winpe_x86

1. Use imagex to apply the basic image (winpe. WIM) to the local shared directory. For example,
 
Imagex/apply winpe. Wim 1 c: \ mywinpe
 

2. Run the peimg/LIST command to view installed and installable packages. For example,

Peimg/List C: \ mywinpe \ WINDOWS
 

3. Use the peimg/install command to add drivers, packages, and language packs. For example, the command to add an HTA package is as follows:
 
Peimg/install = winpe-HTA-Package C: \ mywinpe \ WINDOWS
 

4. copy any other files or tools to be included in the image. For example,

C: \ mywinpe \ Program Files \ MyApp \ myapp.exe.
 

5. Add a device driver

Peimg/INF = <path> C: \ winpe_x86 \ Mount \ WINDOWS

6. Run the peimg/PREP command to prepare the image. This command deletes any packages and language packs that are not specified for the final image. For example,

Peimg/PREP c: \ mywinpe \ WINDOWS
 

7. Use imagex to capture new boot images. For example,

Imagex/boot/compress max/capture c: \ mywinpe c: \ Boot. Wim "My winpe image"

8. replace C: "winpe_x86" ISO "sources" boot. Wim with the C: "boot. Wim generated in the previous step.

9. Generate a CD image file

Oscdimg-n-BC: \ winpe_x86 \ etfsboot.com c: \ winpe_x86 \ Iso c: \ mywinpe. ISO

10. You can use daemon to load mywinpe. ISO and try it with VMware. Note that the memory of the vmwarevm is 512 MB. If

It cannot be started at MB.

 

 

3. The following is the actual command line copy

 

 
Updating path to include peimg, cdimage, imagex

C: \ Program Files \ Windows AIK \ tools \ petools \
C: \ Program Files \ Windows AIK \ tools \ petools \ .. \ x86

C: \ Program Files \ Windows AIK \ tools \ petools> copype. CMD x86 D: \ winpe_x86

========================================================== ==============
Creating windows PE customization working directory

D: \ winpe_x86
========================================================== ==============

1 file has been copied.
1 file has been copied.
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ Boot \ BCD
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ Boot. SDI
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ Boot \ bootfix. Bin
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ Boot \ etfsboot.com
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ Boot \ fonts \ chs_boot.ttf
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ Boot \ fonts \ cht_boot.ttf
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ Boot \ fonts \ jpn_boot.ttf
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ Boot \ fonts \ kor_boot.ttf
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ Boot \ fonts \ wgl4_boot.ttf
Copied 9 files
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ EFI \ Microsoft \ Boot \ BCD
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ EFI \ Microsoft \ Boot \ fonts \ chs_boot
. TTF
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ EFI \ Microsoft \ Boot \ fonts \ cht_boot
. TTF
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ EFI \ Microsoft \ Boot \ fonts \ jpn_boot
. TTF
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ EFI \ Microsoft \ Boot \ fonts \ kor_boot
. TTF
C: \ Program Files \ Windows AIK \ tools \ petools \ x86 \ EFI \ Microsoft \ Boot \ fonts \ wgl4_boo
T. TTF
6 files copied
1 file has been copied.
1 file has been copied.

Success

Updating path to include peimg, cdimage, imagex

C: \ Program Files \ Windows AIK \ tools \ petools \
C: \ Program Files \ Windows AIK \ tools \ petools \ .. \ x86

D: \ winpe_x86> imagex/apply winpe. Wim 1 D: \ mywinpe

Imagex tool for Windows
Copyright (c) Microsoft Corp. All rights reserved.

Progress: 0%

Error restoring image.

D: \ winpe_x86> mkdir D: \ mywinpe

D: \ winpe_x86> imagex/apply winpe. Wim 1 D: \ mywinpe

Imagex tool for Windows
Copyright (c) Microsoft Corp. All rights reserved.

Progress: 100%

Successfully applied image.

D: \ winpe_x86> xcopy/e d: \ filezilla "D: \ mywinpe \ Program Files \ filezilla"
Target D: \ mywinpe \ Program Files \ filezilla is the file name
Or directory name
(F = file, D = directory )? D
D: \ filezilla \ dbghelp. dll
D: \ filezilla. CHM
D: \ filezilla \ filezilla.exe
D: \ filezilla. PDB
D: \ filezilla. xml
D: \ filezilla \ fzgss. dll
D: \ filezilla \ fzresbu. dll
D: \ filezilla \ fzresch. dll
D: \ filezilla \ fzreschs. dll
D: \ filezilla \ fzresde. dll
D: \ filezilla \ fzreses. dll
D: \ filezilla \ fzresfr. dll
D: \ filezilla \ fzreshu. dll
D: \ filezilla \ fzresit. dll
D: \ filezilla \ fzresjp. dll
D: \ filezilla \ fzreskr. dll
D: \ filezilla \ fzresnor. dll
D: \ filezilla \ fzrespo. dll
D: \ filezilla \ fzresru. dll
D: \ filezilla \ fzsftp.exe
D: \ filezilla \ gpl.html
D: \ filezilla \ legal.htm
D: \ filezilla \ libeay32.dll
D: \ filezilla \ puttylicense.html
D: \ filezilla \ readme.htm
D: \ filezilla \ ssleay32.dll
D: \ filezilla \ trusted certs. dat
Copied 27 files

D: \ winpe_x86> peimg/INF = D: \ intel_pro1000_123_vista32 \ pro1000 \ Win32 D: \ mywinpe \ WINDOWS
Windows pre-installation environment image Installation Tool
Copyright (c) Microsoft Corp. All rights reserved.

Installing INF package: D: \ intel_pro1000_123_vista32 \ pro1000 \ Win32

Peimg cannot complete the operation. The status code is 0x800f0003.

D: \ winpe_x86> peimg/INF = D: \ intel_pro1000_123_vista32 \ pro1000 \ Win32 \ e1e6032. inf
Windows pre-installation environment image Installation Tool
Copyright (c) Microsoft Corp. All rights reserved.

Windows PE image not specified. Use/image =

Specify an image.

Use /? Display usage information.

D: \ winpe_x86> peimg/INF = D: \ intel_pro1000_123_vista32 \ pro1000 \ Win32 \ e1e6032. inf D: \ mywinpe \ WINDOWS
Windows pre-installation environment image Installation Tool
Copyright (c) Microsoft Corp. All rights reserved.

Installing INF package: D: \ intel_pro1000_123_vista32 \ pro1000 \ Win32 \ e1e6032. inf

Peimg has successfully completed the operation.

D: \ winpe_x86> peimg/INF = D: \ intel_pro1000_123_vista32 \ pro1000 \ Win32 \ e1g6032. inf D: \ mywinpe \ WINDOWS
Windows pre-installation environment image Installation Tool
Copyright (c) Microsoft Corp. All rights reserved.

Installing INF package: D: \ intel_pro1000_123_vista32 \ pro1000 \ Win32 \ e1g6032. inf

Peimg has successfully completed the operation.

D: \ winpe_x86> peimg/prep d: \ mywinpe \ WINDOWS
Windows pre-installation environment image Installation Tool
Copyright (c) Microsoft Corp. All rights reserved.

The/PREP command will permanently modify the Windows PE image, so you cannot perform
Service. This means the following operations:

-Install or uninstall optional functions
-Application patches or other service packages
-Install the Language Pack

It cannot be executed on the prepared image.

To continue, enter "yes ". Any other input will exit the program.

Continue? Yes
[=========================================== 100.0% ================ ===============]
Peimg has successfully completed the operation.

D: \ winpe_x86> imagex/boot/compress max/capture D: \ mywinpe D: \ Boot. Wim "winpe"

Imagex tool for Windows
Copyright (c) Microsoft Corp. All rights reserved.

Files/folders excluded from image capture by default:

\ Windows \ CSC
\ Recycler
\ $ Recycle. bin \*
\ System volume information
\ Pagefile. sys
\ Hiberfil. sys
\ $ NTFS. Log

Progress: 100%

Successfully imaged D: \ mywinpe

D: \ winpe_x86> Copy D: \ Boot. Wim D: \ winpe_x86 \ ISO \ sources \
Rewrite D: \ winpe_x86 \ ISO \ sources \ Boot. Wim? (Yes/No/All): Yes
1 file has been copied.

D: \ winpe_x86> oscdimg-n-BD: \ winpe_x86 \ etfsboot.com D: \ winpe_x86 \ iso d: \ mywinpe. ISO

Oscdimg 2.54 CD-ROM and DVD-ROM premastering Utility
Copyright (c) Microsoft, 1993-2007. All rights reserved.
Licensed only for producing Microsoft authorized content.

Scanning source tree
Scanning source tree complete (17 files in 8 Directories)

Computing directory information complete

Image File is 160000000 bytes

Writing 17 files in 8 directories to D: \ mywinpe. ISO

100% complete

Final image file is 160000000 bytes

Done.

D: \ winpe_x86> dir D: \ mywinpe. ISO
The volume in drive D is software
The serial number of the volume is the DC18-0AD8

D: \ directory

160,000,000 mywinpe. ISO
1 file, 160,000,000 bytes
0 directories, 22,609,256,448 available bytes

D: \ winpe_x86>

 

 

4. For more information about winpe, see the help of AIK.

 

 

V. Image shell (the following content comes from M $)

Winpeshl. ini controls whether to load custom Shell programs to Windows PE rather than the default "command prompt" window. To load a custom shell program, create a file named winpeshl. ini and place it in % SystemRoot % "system32 of the custom windows PE image. The. ini file must contain the following parts and items:

[Launchapp]
Apppath = % systemdrive % "myshell.exe

[Launchapps]
% Systemdrive % "mydir" application1.exe,-option1-option2
Application2.exe,-option1-option2

Set the apppath item to the path of the shell application. This path can be a fully qualified path, or you can use environment variables (such as % SystemRoot % "System32" myshell.exe) to represent this path. The apppath item does not support the command line option.

Use the [launchapps] section to run applications with command line options. Applications run in the listed order. Application names and their options are separated by commas.

When you exit the "command prompt" window or custom shell application, Windows PE restarts.
 

Important:

Do not edit the cmdline value in the setupreg. HIV HKEY_LOCAL_MACHINE "system" setup registry to start the shell application. You can call the cmdline value to use winpeshl.exe. winpeshl.exe will execute many functions, including calling the default "command prompt" window in Windows PE or your custom shell application.

 

 

Vi. Others

Http://www.winbuilder.net/

Http://www.vistape.net/

Http://princeproxy.info/index.php? Hl = F5 & Q = uggc % 3A % 2f % 2ftenaqfgernzqernzf. oybtfcbg. PBZ % 2f2007% 2f10% 2fivfgncr-ohvyqre-ghgbevny-uvtuyl.ugzy

Http://hi.baidu.com/chenfen/blog/item/a98dd8bf49b8830f18d81f77.html

Http://www.msfn.org/board/lofiversion/index.php/t73692.html

 

Http://digi.it.sohu.com/20070515/n250033092.shtml

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.