无忧启动论坛

标题: to chenall及所有达人:如何在pe中动态加载wofadk? [打印本页]

作者: xhwfq    时间: 2016-10-9 07:47
标题: to chenall及所有达人:如何在pe中动态加载wofadk?
我的pe中没有wofadk,想启动pe后,再用命令加载,如何做?chenall的wimboot是这样做的,我试了几次没成功,特向各位达人求教,谢谢先。
作者: chiannet    时间: 2016-10-9 09:12
本帖最后由 chiannet 于 2016-10-9 11:45 编辑


// PECMD 2012
TEAM ENVI WS=%WINDIR%\SYSTEM32\|ENVI ERR=
FORX * WIMFLTR WIMMOUNT,A,
{
       // 停止现有WIMFLTR WIMMOUNT
EXEC =!SC STOP %A%
EXEC =!SC DELETE %A%
FILE %WS%DRIVERS\%A%.SYS
IFEX %WS%DRIVERS\%A%.SYS,ENVI ERR=YES!
{
  REGI HKLM\SYSTEM\CONTROLSET001\SERVICES\%A%\!
}
}
FILE %WS%WIMGAPI.DLL
IFEX %WS%WIMGAPI.DLL,ENVI ERR=YES
FIND $%ERR%=YES,
{
MESS \n\n错误!\n无法停止现有驱动。 #Y *3000 $Y
EXIT FILE
}!
{
FILE  %CURDIR%\WIMMOUNT\WIMGAPI.DLL=>%WS%
FILE  %CURDIR%\WIMMOUNT\WOFADK.SYS=>%WS%DRIVERS\
FILE  %CURDIR%\WIMMOUNT\WIMMOUNT.SYS=>%WS%DRIVERS\
}
EXEC =RUNDLL32 setupapi.dll,InstallHinfSection DefaultInstall 128 "%CURDIR%\WIMMOUNT\WIMMOUNT.INF"

// 以下可能冗余,能确保可靠,可实测进行增删。
FORX * WOFADK WIMMOUNT,A,
{
IFEX %WS%%A%.SYS,!FILE %WS%DRIVERS\%A%.SYS=>%WS%
EXEC =!SC START %A%
}
CALL $%WS%WIMGAPI.DLL
TEAM FILE %CURDIR%\WIMMOUNT\WIMMOUNTADKSETUPX86.EXE->%WS%|EXEC =WIMMOUNTADKSETUPX86.EXE /install
FDRV A=%CURFILE%
FIND $%A%=X:,FILE %CURDIR%\WIMMOUNT
TEAM FILE %WS%WIMMOUNTADKSETUPX86.EXE|FILE %CURFILE%


Desktop.7z (372.43 KB, 下载次数: 22)


作者: chiannet    时间: 2016-10-9 09:30
X64的类似,用X64 版WIMMOUNTADKSETUPX64.EXE 、WIMGAPI.DLL、WOFADK.sys、WIMMOUNT.sys、WIMSERV.EXE
作者: xhwfq    时间: 2016-10-9 10:27
chiannet 发表于 2016-10-9 09:12
// PECMD 2012

ENVI WS=%WINDIR%\SYSTEM32

成了,再次感谢您的热心帮助,3Q
作者: 蓝星明月    时间: 2021-4-30 09:14
chiannet 发表于 2016-10-9 09:12
// PECMD 2012
TEAM ENVI WS=%WINDIR%\SYSTEM32\|ENVI ERR=
FORX * WIMFLTR WIMMOUNT,A,

谢谢分享!!!
作者: linzhi1168    时间: 2021-4-30 10:46
感谢分享




欢迎光临 无忧启动论坛 (http://wuyou.net/) Powered by Discuz! X3.3