首页 > 代码库 > 定制化WinPE

定制化WinPE

 

 

1 、首先挂载wim

      Dism /Mount-WIM /WimFile:D:\install.wim /Index:1 /MountDir:D:\wimmount

2、 如何要修改WinPE的启动项,可以修改wimmount目录 下的windows\System32\StartNet.cmd里的内容

 

3、添加语言包,如果要使PE支持中文,要添加WinPE-FontSupport-ZH-CN.cab和对应的lp.cab

这两个包可以在ADK的Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\中找到

DISM.exe /Image:d:\wimmount /Add-Package /PackagePath:"D:\WinPE_OCs\zh-cn\WinPE-FontSupport-Zh-CN.cab"DISM.exe /Image:d:\wimmount /Add-Package /PackagePath:"D:\WinPE_OCs\zh-cn\lp.cab"

    查看已安装的语言:

  

Dism /image:d:\wimmount /Get-Intl

 

设置语言

Dism /image:d:\wimmount /Set-UILang:ZH-CNDism /image:d:\wimmount /Set-AllIntl:ZH-CN

 

卸载提交挂载

Dism.exe /unmount-Wim /MountDir:d:\wimmount /Commit

 

定制化WinPE