使用WimBuilder2生成的win11 25206.1000 pe
在最后一行添加LINK %DESKTOP%\DiskGenius,%ProgramFiles%\DiskGenius\Diskgenius_Pro_x64_5.4.5.1412_cn.exe,桌面没有快捷方式,请问一下是不是加错地方了,若是,那具体应该添加在哪个代码之后
这个是生成好pe就有的,没有修改,pecmd.ini内容如下:
// Pecmd launched from : RegWrite,HKLM,0x1,Tmp_System\Setup,CmdLine,"Pecmd.exe Main #$pWindir#$p\System32\Pecmd.ini"
LOGS %WinDir%\System32\Pecmd.%USERNAME%.log
CALL OSInitCALL PreShellCALL LoadShellCALL PostShell
TIPS The system configuration is finished.,,1,#1WAIT 3000EXIT
////////////////////////////////////////////////////////////////////////////////////////////////_SUB OSInit
// winpeshl.ini with [LaunchApps] wpeinit.exeIFEX %WinDir%\System32\winpeshl.log,!EXEC %WinDir%\System32\winpeshl.exe// EXEC %WinDir%\System32\wpeinit.exe
// Load Display drivers// EXEC =@!%WinDir%\System32\Drvload.exe %WinDir%\inf\basicdisplay.inf %WinDir%\inf\basicrender.inf %WinDir%\inf\c_display.inf %WinDir%\inf\display.inf %WinDir%\inf\displayoverride.inf
TEAM DISP W1024 H768 B32|DISP W1280 720 B32//TEAM DISP W1024 H768 B32|DISP W1280 720 B32|DISP W1280 H1024 B32|DISP W1366 H768 B32|DISP W1920 H1080 B32LOGO %WinDir%\web\wallpaper\Windows\img0.jpgNUMK 1TEXT System configuration, Please Wait...#0xFFFFFF L59 T39 $20*// TIPS System configuration, Please Wait..,,1,#1
_END////////////////////////////////////////////////////////////////////////////////////////////////_SUB PreShell
EXEC =!"X:\PEMaterial\Autoruns\PEStartupMain.bat" OSInitINIT IU,3000
_END////////////////////////////////////////////////////////////////////////////////////////////////_SUB DaemonShell// FIND %~1=explorer.exe,SET shell_cmd=PECMD EXEC -HOOK explorer.exe,!SET shell_cmd=%~1 %~2 %~3FIND $%USERNAME%<>SYSTEM,EXEC %ProgramFiles%\WinXShell\WinXShell.exe -luacode "shel([[%~1 %~2 %~3]])"!SHEL %~1 %~2 %~3
_END////////////////////////////////////////////////////////////////////////////////////////////////_SUB LoadShell
IFEX %WinDir%\System32\ctfmon.exe, EXEC PECMD.exe EXEC -su %WinDir%\System32\ctfmon.exeEXEC =!"X:\PEMaterial\Autoruns\PEStartupMain.bat" BeforeShell
//EXP_SHEL explorer.exe//WXS_SHEL "%ProgramFiles%\WinXShell\WinXShell.exe" -regist -winpe//EXP_EXEC !%ProgramFiles%\WinXShell\WinXShell.exe -regist -daemon
_END////////////////////////////////////////////////////////////////////////////////////////////////_SUB PostShell
// Dism can't mount in SYSTEM without workgroup// CALL $Netapi32.dll,NetJoinDomain,,WORKGROUP,,,,1
LOGO// EXEC = Wait, @background, ! Hide. ex: EXEC =WaitNoHide.cmd, EXEC @!=WaitHide.cmd, EXEC NoWaitNoHide.cmd, EXEC @!NoWaitHide.cmd
EXEC =%ProgramFiles%\WinXShell\WinXShell.exe -luacode Taskbar:WaitForReady()EXEC !"X:\PEMaterial\Autoruns\PEStartupMain.bat" PostShell
// Load drivers//DEVI %WinDir%\inf\battery.inf//DEVI %WinDir%\inf\usbport.inf
_END////////////////////////////////////////////////////////////////////////////////////////////////
加在 CALL PostShell 下面 试试