|
本帖最后由 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)
|
|