|
|
Win PE 2005
[这个贴子最后由yjc666在 2005/12/28 04:46pm 第 2 次编辑]
Reducing the Size of Windows PEThe non-customized size of Windows PE is about 160 megabytes (MB). By removing non-essential files, you can reduce the 32-bit version of Windows PE to an on-disk image size of 86 MB.
Localized versions of Windows PE vary in size between 300-370 MB, depending upon the language.
Important
Removing files from Windows PE may cause your custom applications to fail. Use the Depend tool in the \Winpe folder to identify the DLL dependencies of your application.
Reducing the Windows PE Footprint
The files that can be removed from a Windows PE image are listed with descriptions in Xpsp2-removelist.txt and Serversp1-removelist.txt in the \Samples folder. Match the .txt file to the corresponding Windows release of your Windows PE image. If you remove all of these files, the 32-bit version of Windows PE can be reduced from about 160 MB to an on-disk image size of 86 MB.
You can incorporate Xpsp2-removelist.txt or Serversp1-removelist.txt into a script or .cmd file to automate the removal of the files. Here is a code sample for a .cmd file using Serversp1-removelist.txt:
REM Modify the following environment variables to your settings:
SET WinPE=c:\Winpe
SET Arch=I386
SET RemoveList=c:\serversp1-removelist.txt
cd /d %WinPE%\%Arch%
for /f "eol=;" %%i in (%RemoveList%) do del /q %%i
能把pe从160M 精简到86M
xpsp2和2003sp1分别 使用 Xpsp2-removelist.txt 和 Serversp1-removelist.txt
|
|