|
求助:img 转 iso 核心 PECMD.INI 的写法!
如题:img 转 iso 核心 PECMD.INI 的写法!下面是酷哥的元旦版 img 的 PECMD.INI 如下:(如果不改,直接放 iso 核,进不了桌面,一闪一闪的)
////////////////////START//////////////////////////
FBWF P40 L32 H96
TEAM ENVI S=%SystemRoot%|ENVI SS=%S%\SYSTEM32|ENVI SSD=%SS%\Drivers
//TEAM FILE %S%\TXTSETUP.SI*|FILE %SS%\NTOSKRNL.EX*|FILE %SS%\WIN32K.SYS|FILE %SS%\CONFIG|FILE %SS%\*.*_|FILE %SSD%\*.SY_
TEAM LOGS %S%\PECMD.LOG|PATH %SystemDrive%\TEMP|ENVI|INIT IU|EXEC @PECMD.EXE CALL $SHELL32.DLL,DllInstall,#1,U
_SUB HotKey
HOTK #112,PECMD.EXE
_END
_SUB FixSystem
TEXT 正在进行系统设定……#0x80FF00 L20 T540 R720 B580 $20
ENVI P1=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
REGI %P1%\Explorer\ControlPanel\NameSpace\{7007ACC7-3202-11D1-AAD2-00805FC1270E}\!
REGI %P1%\ControlPanel\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\!
REGI %P1%\Desktop\NameSpace\{450D8FBA-AD25-11D0-98A8-0800361B1103}\!
REGI %P1%\FindExtensions\Static\WebSearch\!
REGI HKCR\lnkfile\IsShortcut
EXEC =!SHOWDRIVE.EXE
EXEC =!ORDERDRV.CMD
_END
_SUB SystemInit
TEAM LOGO PELOGO.JPG|WAIT 100
TEXT 正在初始化系统……#0x80FF00 L20 T540 R720 B580 $20
TEAM ENVI Startup=%USERPROFILE%\「开始」菜单\程序\启动|ENVI Programs=%USERPROFILE%\「开始」菜单\程序
ENVI QuickLaunch=%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch
TEAM ENVI Startmenu=%USERPROFILE%\「开始」菜单|ENVI Desktop=%USERPROFILE%\桌面
TEAM ENVI W=%WinDir%|ENVI WS=%W%\SYSTEM32|ENVI WSD=%WS%\Drivers|FILE %W%\TXTSETUP.SI*
TEAM FILE %WS%\NTOSKRNL.EX*|FILE %WS%\WIN32K.SYS|PATH #%WS%\CONFIG
TEAM FILE %WS%\*.*_|FILE %WSD%\*.SY_|INIT
FBWF P40 L64 H256
DISP W800 H600 B32
EXEC @PECMD.EXE CALL $SHELL32.DLL,DllInstall,#1,U
_END
_SUB RegImdsk
EXEC !%WS%\WIMNT.EXE /reg /map Y:\WIM /tp %temp%
REGI HKCR\Drive\shell\ImDiskSaveImage\=保存ImDisk虚拟磁盘
REGI HKCR\Drive\shell\ImDiskSaveImage\command\=rundll32.exe imdisk.cpl,RunDLL_SaveImageFile %L
REGI HKCR\Drive\shell\ImDiskUnmount\=卸载ImDisk虚拟磁盘
REGI HKCR\Drive\shell\ImDiskUnmount\command\=rundll32.exe imdisk.cpl,RunDLL_RemoveDevice %L
REGI HKLM\SOFTWARE\Classes\Ultraiso\shell\ImDiskMountFile\=加载为ImDisk虚拟磁盘
REGI HKLM\SOFTWARE\Classes\Ultraiso\shell\ImDiskMountFile\command\=rundll32.exe imdisk.cpl,RunDLL_MountFile %L
REGI HKLM\SOFTWARE\Classes\Winimage\shell\ImDiskMountFile\=加载为ImDisk虚拟磁盘
REGI HKLM\SOFTWARE\Classes\Winimage\shell\ImDiskMountFile\command\=rundll32.exe imdisk.cpl,RunDLL_MountFile %L
_END
_SUB intool
TEXT 正在搜索内置程序……#0x80FF00 L20 T540 R720 B580 $20
LOAD %W%\TOOLS\WINPE03.ini
WAIT 500
LOAD \BOOT\DHCP\DHCP.INI
_END
_SUB CreatLink
TEXT 正在创建快捷方式……#0x80FF00 L20 T540 R720 B580 $20
LINK %Programs%\附件\记事本,%WS%\NOTEPAD.EXE
LINK %Programs%\附件\画图,%WS%\MSPAINT.EXE
LINK %Programs%\附件\命令提示符,%WS%\CMD.EXE
LINK %Programs%\附件\注册表编辑器,%W%\REGEDIT.EXE
LINK %Programs%\附件\资源管理器,%W%\EXPLORER.EXE,,EXPLORER.EXE,1
LINK %Programs%\WIMTOOL\WIMNT,%WS%\WIMNT.EXE
LINK %Programs%\加载外置程序\脱机加载外置,pecmd.exe,EXEC !=%WS%\CLEARTEMP.EXE,Shell32.dll#5
LINK %Programs%\加载外置程序\常规加载外置,pecmd.exe,LOAD %W%\TOOLS\loadst.ic_,Shell32.dll#5
LINK %QuickLaunch%\资源管理器,%W%\EXPLORER.EXE
_END
_SUB RunAnyPro
TEXT 正在安装中文输入法……#0x80FF00 L20 T540 R720 B580 $20
EXEC !=CMD.EXE /C "REGEDIT /s %WS%\MMC.REG"
CALL $imm32,ImmInstallIMEW,%SystemRoot%\System32\WinABC.ime,智能ABC
//CALL $imm32,ImmInstallIMEW,%SystemRoot%\System32\WINWB86.ime,王码五笔
RUNS PECMD.EXE EXEC !%WS%\INTERNAT.EXE,输入法指示器
RUNS PECMD.EXE EXEC !%WS%\ShowUSB.EXE,显示U盘
RUNS PECMD.EXE EXEC !%WS%\USBDeview.exe,显示U盘
_END
_SUB LoadOutTools
TEAM TEXT 3秒内按住<空白键>:加载外置程序,否则不加载外置程序..#0x0000ff L20 T540 R720 B580 $20|WAIT 3000
IFEX KEY=#32,LOAD %W%\TOOLS\loadst.ic_!LINK %Desktop%\加载外置程序,pecmd.exe,LOAD %W%\TOOLS\loadst.ic_,Shell32.dll#5
_END
_SUB UsbInit
TEAM ENVI V0=HKLM\System\CurrentControlSet\Services|ENVI V1=System32\Drivers
REGI %V0%\USBHUB\ImagePath=%V1%\USBHUB.SYS
REGI %V0%\USBCCGP\ImagePath=%V1%\USBCCGP.SYS
REGI %V0%\USBEHCI\ImagePath=%V1%\USBEHCI.SYS
REGI %V0%\USBOHCI\ImagePath=%V1%\USBOHCI.SYS
REGI %V0%\USBSTOR\ImagePath=%V1%\USBSTOR.SYS
REGI %V0%\USBUHCI\ImagePath=%V1%\USBUHCI.SYS
REGI %V0%\HIDUSB\ImagePath=%V1%\HIDUSB.SYS
REGI %V0%\MOUCLASS\ImagePath=%V1%\MOUCLASS.SYS
REGI %V0%\MOUHID\ImagePath=%V1%\MOUHID.SYS
REGI %V0%\KBDCLASS\ImagePath=%V1%\KBDCLASS.SYS
REGI %V0%\KBDHID\ImagePath=%V1%\KBDHID.SYS
REGI %V0%\CDROM\ImagePath=%V1%\CDROM.SYS
_END
_SUB LoadShell
TEAM WALL pelogo.JPG|WAIT 200
TEXT 正在载入桌面……#0x80FF00 L20 T540 R720 B580 $20
FIND Explorer.EXE,!TEAM SHEL %WinDir%\EXPLORER.EXE|LOGO|TEXT
REGI HKLM\SYSTEM\CurrentControlSet\Control\MiniNT\!
EXEC !CMD.EXE /C "REN %WinDir%\SYSTEM32\HALACPI.DLL HAL.DLL"
TEAM EXEC =PECMD SERV !AudioSrv|SERV AudioSrv
LOAD %windir%\DHCPDIR.INI
LOAD %deft1%\PETOOLS\DEFAULT\default.ini
TEAM WAIT 5000|KILL SMSS.EXE|KILL WINLOGON.EXE|FILE %WS%\SMSS.EXE|FILE %WS%\WINLOGON.EXE
TEAM ENVI W=|ENVI WS=|ENVI WSD=|ENVI V0=|ENVI V1=|ENVI P1=|ENVI P2=|ENVI P3=
_END
///////////////////////////////////////
CALL SystemInit
CALL UsbInit
CALL FixSystem
CALL intool
CALL RegImdsk
CALL HotKey
CALL RunAnyPro
CALL CreatLink
CALL LoadOutTools
CALL LoadShell
//////////////////////配置文件结束/////////////////////////////// |
|