[求助]无法创建快捷方式
2022-9-22 1089

使用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 OSInit
CALL PreShell
CALL LoadShell
CALL PostShell

TIPS  The system configuration is finished.,,1,#1
WAIT 3000
EXIT

////////////////////////////////////////////////////////////////////////////////////////////////
_SUB OSInit

// winpeshl.ini with [LaunchApps] wpeinit.exe
IFEX %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 B32
LOGO %WinDir%\web\wallpaper\Windows\img0.jpg
NUMK 1
TEXT System configuration, Please Wait...#0xFFFFFF L59 T39 $20*
// TIPS  System configuration, Please Wait..,,1,#1

_END
////////////////////////////////////////////////////////////////////////////////////////////////
_SUB PreShell

EXEC =!"X:\PEMaterial\Autoruns\PEStartupMain.bat" OSInit
INIT IU,3000

_END
////////////////////////////////////////////////////////////////////////////////////////////////
_SUB DaemonShell
// FIND %~1=explorer.exe,SET shell_cmd=PECMD EXEC -HOOK explorer.exe,!SET shell_cmd=%~1 %~2 %~3
FIND $%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.exe
EXEC =!"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
////////////////////////////////////////////////////////////////////////////////////////////////

 

收藏
点赞
分享
dsxcfqbvq
最新回复 (1)
  • avatar image
    wxinchun92 2022-9-22

    加在 CALL PostShell 下面 试试

返回