winPE4.0制作过程

winPE4.0制作  

一步一步制作X64启动映像,并支持Scripting、WMI、HTA、ADO、.NET Framework 4.0、PowerShell和PowerShell的命令集cmdlets
1.下载安装ADK:
http://www.microsoft.com/zh-cn/download/details.aspx?id=29929
安装时确保勾选了Windows Preinstallation Environment

2.以管理员身份运行新安装的"以管理员身份运行新安装的"部署工具命令提示",运行
copype.cmd amd64 C:\temp\pe40

3.加载映像
dism /mount-image /imagefile:C:\temp\pe40\media\sources\boot.wim /index:1 /mountdir:c:\temp\pe40\mount

4.增加ich9、ich10支持
dism /image:C:\temp\pe40\mount /add-driver /driver:"C:\temp\IRST\iaAHCI.inf"
dism /image:C:\temp\pe40\mount /add-driver /driver:"C:\temp\IRST\iaStor.inf"

5.增加可选组件
cd /d "C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs"

dism /image:C:\temp\pe40\mount /add-package /packagepath:"WinPE-Scripting.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"zh-cn\WinPE-Scripting_zh-cn.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"WinPE-WMI.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"zh-cn\WinPE-WMI_zh-cn.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"WinPE-MDAC.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"zh-cn\WinPE-MDAC_zh-cn.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"WinPE-HTA.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"zh-cn\WinPE-HTA_zh-cn.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"WinPE-NetFx4.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"zh-cn\WinPE-NetFx4_zh-cn.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"WinPE-PowerShell3.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"zh-cn\WinPE-PowerShell3_zh-cn.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"WinPE-DismCmdlets.cab"
dism /image:C:\temp\pe40\mount /add-package /packagepath:"zh-cn\WinPE-DismCmdlets_zh-cn.cab"

6.添加语言支持:
dism /image:C:\temp\pe40\mount /add-package /packagepath:"zh-cn\lp.cab"
Dism /image:C:\temp\pe40\mount /set-allintl:zh-cn
dism /image:C:\temp\pe40\mount /add-package /packagepath:"WinPE-FontSupport-ZH-CN.cab"

查看所有可选组件使用Dism /image:C:\temp\pe40\mount /get-packages

7.替换桌面壁纸、增加bbLean作为shell、增加资源管理器Q-Dir_X64、加入ghost64.exe、Ghostexp.exe(需要oledlg.dll)、imagex.exe、go.bat(一键恢复)、showdrive.exe(临时开启隐藏分区),同时在bbLean中把go.bat的快捷方式添加到桌面,方便调用;

8.卸载映像
dism /unmount-image /mountdir:c:\temp\pe40\mount /commit

9.封装ISO
for BIOS:
Bcdedit /store c:\temp\pe40\media\sources\boot\BCD /set {bootmgr} locale
for UEFI:
Bcdedit /store c:\temp\pe40\media\EFI\Microsoft\Boot\BCD /set {bootmgr} locale

MakeWinPEMedia.cmd /iso c:\temp\pe40 c:\temp\pe40\WinPE40_X64.iso

 

完毕,制作好的PE4.0位于C:\temp\pe40\ISO,打包的ISO为C:\temp\pe40\WinPE40_X64.iso

你可能感兴趣的:(WindowsPE-嵌入式)