Steps to create the perfect WinPE3.0 by hand

Source: Internet
Author: User
Tags command line commit ini

first, the specific method of production:

1. Copy the Sourcesboot.wim file from the Windows7 CD (or CD image) to the D:winpesources directory

2, in the attachment to provide IMGAEX directory right click on the INF file, select Install. (Imagex 6.0 AIK Packaging tool)

3, run cmd, enter the IMGAEX directory.

4, IMAGEX/MOUNTRW d:winpesourcesboot.wim 2 d:winpenew (map d:winpesourcesboot.wim image to d:winpenew directory)

5. Delete the Setup.exe file under the d:winpenew root directory. Delete the Sources folder, it is important to streamline WinPE yo.

6. Imagex/unmount/commit D:winpenew (merging the changes to the image files in the D:winpenew directory and uninstalling them)

7, imagex/compress Maximum/export "D:winpesourcesboot.wim" 2 "D:winpepe3boot.wim", the boot.wim separation and re-compression.

7, D:winpepe3boot.wim is the modified image. This time running this image WinPE is the default "command Prompt" window.

  Second, the production of PE disc Image:

1. New D:winpepe, New d:winpepesources

2. Copy (Windows7 disc X) X:boot directory (including files) to D:winpepe

Copy the X:efi directory (including files) to D:winpepe

Copy x:bootmgr file to D:winpepe

Copy the modified Boot.wim file to D:winpepesources (x is the Windows7 disc character)

3. extract Windows7 disc boot file with UltraISO, save as Windows7.bif

4. Add the directories and files under D:winpepe to the disc image with UltraISO, load the windows7.bif, save the image as PE 3.0.iso

  Iii. image Shell (below from m$)

Winpeshl.ini Controls whether custom shells are loaded into Windows PE instead of the default command Prompt window. To load a custom shell, create a file named Winpeshl.ini, and then place it in the%SYSTEMROOT% "System32 of the custom Windows PE image. The. ini file must contain the following sections and items:

  [Launchapp]

AppPath =%systemdrive% "Myshell.exe

  [Launchapps]

%systemdrive% "Mydir" Application1.exe,-option1-option2

Application2.exe,-option1-option2

Set the AppPath key as the path to the shell application. The path can be a fully qualified path, or you can use an environment variable (such as%SYSTEMROOT% "System32" Myshell.exe) to represent the path. The AppPath item does not support command-line options.

Use the [Launchapps] section to run an application with command-line options. The application runs in the order listed, and the name of the application and its options are separated by commas.

Windows PE Restarts when you exit the Command Prompt window or when you customize the shell application.

  Important matters:

Do not edit the CmdLine value in the Setupreg.hiv Hkey_local_machinesystemsetup registry key to start the shell application. The value of CmdLine can be called Winpeshl.exe,winpeshl.exe performs many functions, including calling the default command Prompt window in Windows PE or your custom shell application.

  Example: using Bsexplorer to make homemade version windowspe, download Bsexplorer program from the Internet, from cmd to imagex directory: IMAGEX/MOUNTRW d:winpesourcesboot.wim 1 D:winpenew, unzip the bsexplorer and put it in the D:winpenewwindows directory together with the folder, Put the above built Winpeshl.ini, inside to point out the path of Bsexplorer.exe, put in D:winpenewwindowssystem32.

  Defined:

  "Bs_desktop.ini"

This file is used to customize the desktop shortcut for PE, and the first line of [desktop CFG file Ver.1] must be preserved.

  Format:

"-itembegin-"

itemx=

itemy=

caption=

Exename=

Iconname=

Iconnumber=

Exedir=

cmdparam=

Showstate=

"-itemend-"

  Example:

"-itembegin-"

Itemx=20

Itemy=20

caption= Explorer

Exename=%systemdrive%program FilesA43A43.exe

Iconname=%systemdrive%program Filesa43a43.ico

Iconnumber=0

Exedir=%systemdrive%program filesA43

cmdparam=

Showstate=normal

"-itemend-"

  Parameter description:

Each icon on the left is generated by such a configuration, and each icon must start and end with "-itembegin-" and "-itemend-", itemx= refers to the horizontal distance of the icon, the default first column is 20, the second column is 100, the third column is 180, and so on (each next The value of the column is increased by 80 from the previous column, which is the default setting and can be modified freely, but this is the best design. Itemy is the same as itemx=, but refers to the horizontal coordinate (the number of rows). Caption can fill anything, support Chinese, is the name of the text under the icon. EXEName is the path to the target file or program (requires an extension, which may not be an absolute path.) System variables are allowed). Iconname is the icon path for this shortcut, and Iconnumber is the first icon in this icon file, which defaults to 0. Exedir is the running path to this file or program. Cmdparam is a startup (command line) parameter that is specifically applied to this program (for example, the startup parameters of Nero StartSmart Essentials are-scparameter=8), and most of the large software is useful. Showstate is the way the target is displayed, the default is NORMAL, and the open window under this parameter has no change, and remains the same.

  "Bs_logon.ini"

This file is used to customize the way that PE is signed in, here only the [Shell] section, [Shell] This row must be preserved.

  Format:

=

  Example:

BS graphical interface =%systemdrive%program FilesBsExplorerexplorer.exe

Parameter Description: = Before the content is the Login box drop-down menu display text (allow space and Chinese characters), after the content of a PE shell path, is actually an executable program, but if only open a normal application, will not open the desktop, when the program ends will be returned to the Login dialog box. No matter what you delete under [Shell], for example, the line must be kept, otherwise the drop-down menu will not appear in the BS graphical interface items, and naturally can not enter the desktop.

  "Bs_qlaunch.ini"

This file is used to customize the Quick Launch bar of the PE, the first line of [qlaunch CFG file Ver.1] must be preserved.

  Format:

"-itembegin-"

caption=

Exename=

Iconnumber=

"-itemend-"

  Example:

"-itembegin-"

caption= Display Desktop

Exename= @ShowDesktop

Iconnumber=20

"-itemend-"

  parameter Description: As with the Bs_desktop.ini file, the parameter is a little bit less.

  "Bs_menuimg.bmp"

In this file, there are some common applet icons (16x16) that need to be used, and all the iconnumber= in this article point to this, so it's more important. The first number is 0, the second number is 1, and so on, you can add or modify icons according to the 16x16 size.

  "Bs_explorer.ini"

There are only a few places in this document that need to be specifically explained:

desktopbkgndtext= display the text in the lower right corner of the desktop, the color default is white, can be freely modified, the value is empty when a copyright note is displayed.

desktoptextcolor= Specifies the text color on the desktop, formatted as a hexadecimal color value, and defaults to $00FFFFFF.

desktoptextbkcolor= Specifies the background color of the text on the desktop, formatted as a hexadecimal color value, and the default is $ffffffFF.

Other parameters that may be useful (not explained in detail):

Nocheckfiles= does not check the file, the default is YES.

nostartmenuicon= No Start menu icon, default is No.

nostartmenumargin= No Start menu edge blank, default is No.

Nodesctopicon= does not display desktop shortcuts, default to No.

Noqlaunchbar= does not display the Quick Launch bar, the default is No.

  "Bs_start. INI "

This file is the most important! It specifies the contents of the Start menu.

  Format:

"-itembegin-"

showinautorun=

enableinautorun=

parentitem=

caption=

Exename=

Iconnumber=

Exedir=

Showstate=

"-itemend-"

  Example:

"-itembegin-"

Showinautorun=yes

Enableinautorun=yes

Parentitem=office

Caption=word

Exename=%systemdrive%program FilesOffice97WORD.EXE

Iconnumber=45

Exedir=%systemdrive%program FilesOffice97

Showstate=normal

"-itemend-"

  parameter Description: Showinautorun= and enableinautorun= two seem to be basically useless in my custom experiments, so I don't explain. Most of the parameters are the same as those described above, parentitem= is the folder to which this shortcut is placed (if you want to put it in the root directory of the Start menu, you need to write to root). The format for creating folders is:

"-itembegin-"

Showinautorun=yes

Enableinautorun=yes

Parentitem=programs

Caption=office 97

Menuid=office

"-itemend-"

MenuId is a unique identifier, the parentitem= of the normal shortcut is here.

It is also necessary to specify a separator line in the form of:

"-itembegin-"

Showinautorun=yes

Enableinautorun=yes

Parentitem=root

caption=-

"-itemend-"

Similarly, the value attribute of the parentitem= is as follows (translated as "parent item").

Imagex/unmount/commit d:winpenew

Imagex/compress maximum/export "D:winpesourcesboot.wim" 1 "d:winpepe3boot.wim"

Then put the boot.wim into the d:winpepesources, using UltraISO to make the ISO file (step above).

At this point, a perfect WinPE3.0 is finished, the user can install the WinPE3.0 installed in the Windows system, so that the system encountered an emergency failure in this can be repaired.

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.