|
WEPE64.wim\Program Files\PETools.ini
有两处以下的代码,删除一个,留下最后的那个,
//加载外部设置
LOAD "%wzPath%"
改成:
//加载外部设置
LOAD %systemdrive%\PETOOLS\main.in
不加载Z盘
WEPE64.wim\Windows\System32\Pecmd.ini删除红色部分
// 添加DISM右键
ENVI WIMTEMP=%SYSTEMDRIVE%\TEMP
MDIR %WIMTEMP%\MOUN
ENVI load_vhd=(echo create vdisk file="%WIMTEMP%\Z.vhd" maximum=20480 TYPE=EXPANDABLE &echo select vdisk file="%WIMTEMP%\Z.vhd" &echo attach vdisk &echo create partition primary &echo format fs=ntfs label=Tools quick &echo assign letter=Z &echo exit)
EXEC =!cmd /c "%load_vhd% |diskpart"
EXEC =!%windir%\DISMGUI\安装DISM.cmd
|
|