|
你可以看看他写的配置文件
- _SUB Insdriver
- NAME &&fname=%~1
- FIND [ $custom=%&fname% | $custom_64=%&fname% ], CALL hwids &&ID1
- FIND# $Z=Z%2, EXEC =!%programfiles%\7-zip\7z.exe x %1 -o%temp%\pe-driver\%&fname% # EXEC =!%programfiles%\7-zip\7z.exe x %1 -o%2
- FIND# $Z=Z%2, EXEC =!dpinst.exe /S /Path %temp%\pe-driver\%&fname% # EXEC =!dpinst.exe /S /Path %2
- WAIT 500
- FIND [ $custom=%&fname% | $custom_64=%&fname% ], CALL hwids &&ID2
- FIND |%&ID1%<%&ID2%, EXEC -hide -wait dpinst.exe /S /Path %temp%\pe-driver\%&fname%
- FIND# $DRIVERS_USB=%&fname%, EXEC =!dpinst.exe /S /Path %temp%\pe-driver\%&fname%
- FIND# $Z=Z%2, FILE %temp%\pe-driver
- _END
- _SUB hwids
- EXEC* &&all=!devcon findall *
- READ -,0,&&line,%&all%
- MSTR &&Q=<1>%&line%
- ENVI-ret %1=%&Q%
- _END
- _SUB InsNicCab
- TEAM TEXT 加载有线网卡驱动..... L204 T207 R1000 B268 $60:Microsoft YaHei UI|WAIT 500
- CALL Insdriver "%ProgramFiles%\DRIVERS_NET.7z"
- _END
- _SUB Inswifi
- find $3=%&bx64%, envi &&wei=_64! envi &&wei=
- IFEX X:\WifiDriver\DRIVERS_NET_WIRELESS%&wei%.7z,! TEAM LINK %desktop%\搜索安装无线驱动,%&myname%,wifi.wcs,netshell.dll,157,,%programfiles% |exit _sub
- TEAM TEXT 加载无线网卡驱动..... L204 T207 R1000 B268 $60:Microsoft YaHei UI|WAIT 500
- CALL Insdriver X:\WifiDriver\DRIVERS_NET_WIRELESS%&wei%.7z
- call sload
- _END
- _SUB sload
- TEAM TEXT 启动无线服务..... L204 T207 R1000 B268 $60:Microsoft YaHei UI|WAIT 500
- EXEC =!net start Wlansvc
- WAIT 100
- forx !\WifiDriver\*.xml,&&con,1,set &&exi=%&con%
- find $Z=Z%&exi%, exit _sub
- FDRV &&fDrive=%&exi%
- TEAM TEXT 加载无线连接配置.....L204 T207 R1000 B268 $60:Microsoft YaHei UI|WAIT 500
- forx %&fdrive%\WifiDriver\*.xml,&&con,0,exec !cmd.exe /c netsh wlan add profile filename=%&con%
- _END
- _SUB customCab
- TEAM TEXT 加载自定义驱动..... L204 T207 R1000 B268 $60:Microsoft YaHei UI|WAIT 500
- FDRV &&fDrive=%1
- IFEX %&fDrive%\WifiDriver\custom_64.7z, CALL InsDriver %&fDrive%\WifiDriver\custom_64.7z! CALL Insdriver %1
- _END
- _SUB rtuins
- FILE -m %windir%\inf\rtux64w10.inf;%windir%\inf\rtux64w10.sys=>%temp%
- EXEC =*drvload %temp%\rtux64w10.inf
- FILE -m %temp%\rtux64w10.inf;%temp%\rtux64w10.sys
- _END
- _SUB autorun
- REGI $HKLM\SYSTEM\CurrentControlSet\Control\PEBootServerAddr,&&ServerAddr
- REGI $HKCU\Software\TightVNC\Control\ReverseConnectionHistory\0=%&ServerAddr%
- exec =!tftp -i %&ServerAddr% get pxeautorun.txt %windir%\system32\pxeautorun.cmd
- wait 500
- ifex %windir%\system32\pxeautorun.cmd, exec pxeautorun.cmd %&ServerAddr%
- exit file
- _END
- _SUB skraid
- exec* &&smbus=!devcon status PCI\VEN_8086*DEV_A123 PCI\VEN_8086*DEV_9D23 PCI\VEN_8086*DEV_A2A3
- SED &&U=?,VEN_8086,,%&smbus%
- ifex $0=%&U%, exit _sub
- CALL Insdriver "%ProgramFiles%\DRIVERS_RAID.7z" %SystemDrive%\raid
- call wini iaStorAC
- _END
- _SUB araid
- CALL Insdriver "%ProgramFiles%\DRIVERS_RAID.7z" %SystemDrive%\raid
- exec* &&raid=!devcon status *CC_0104
- SED &&T=?,VEN_1022&DEV_7805,,%&raid%
- ifex $0=%&T%,! call wini amd
- SED &&U=?,VEN_8086&DEV_A,,%&raid%
- ifex $0=%&U%,! call wini iaStorAC
- SED &&U=?,VEN_8086&DEV_9,,%&raid%
- ifex $0=%&U%,! call wini iaStorAC
- _END
- _SUB sapple
- CALL Insdriver "%ProgramFiles%\DRIVERS_RAID.7z" %SystemDrive%\raid
- exec* &&apple=!devcon status PCI\VEN_106B*CC_0180
- SED &&T=?,Name,,%&apple%
- ifex $0=%&T%,! call wini AppleSSD64
- _END
- _SUB wini
- WRIT X:\Program Files\WinNTSetup\WinNTSetup.ini,1,[WinNT6]
- WRIT X:\Program Files\WinNTSetup\WinNTSetup.ini,$2,Drivers=X:\raid\%1
- _END
- _SUB EDPI
- regi HKCU\Software\Microsoft\Windows NT\CurrentVersion\TaskManager\Preferences!
- set &&inifile=%ProgramFiles%\TotalCommander\inifile.exe
- ifex [ $%1>0x60 & $%1<0x84 ],
- {
- exec *%&inifile% "%ProgramFiles(x86)%\DesktopInfo\desktopinfo.ini" [options] width=600
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [AllResolutions] Iconsize32=32
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Lister] Font1=新宋体,-20,134
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Lister] Font2=新宋体,-20,134
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Lister] Font3=新宋体,-20,134
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Buttonbar] Buttonheight=33
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Buttonbar] SmallIcons=0
- }
- ifex [ $%1>0x84 & $%1<0xa8 ],
- {
- exec *%&inifile% "%ProgramFiles(x86)%\DesktopInfo\desktopinfo.ini" [options] width=750
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [AllResolutions] Iconsize32=32
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Lister] Font1=新宋体,-24,134
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Lister] Font2=新宋体,-24,134
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Lister] Font3=新宋体,-24,134
- exec *%&inifile% %Windir%\tlb\toolbars\start\setup.ini [settings] menuItemMarginY=12
- }
- ifex $%1>0xa8,
- {
- exec *%&inifile% "%ProgramFiles(x86)%\DesktopInfo\desktopinfo.ini" [options] width=920
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [AllResolutions] Iconsize32=48
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Lister] Font1=新宋体,-32,134
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Lister] Font2=新宋体,-32,134
- exec *%&inifile% "%ProgramFiles%\TotalCommander\WINCMD.INI" [Lister] Font3=新宋体,-32,134
- }
- _END
- set &sum=0
- LOGS --t=1 %windir%\pe.log
- //LOGO -trans:40 @OpenWithToastLogo.png
- SCRN &&ScrW,&&ScrH
- ifex #%&ScrH%>%&ScrW%, exec %programfiles%\Rotate\rotate.exe C
- TEXT 正在初始化.... L204 T207 R1000 B268 $60:Microsoft YaHei UI
- FORX %windir%\inf\oem*.inf,,0,CALC #sum=%sum% + 1
- INIT I
- EXEC !startnet.cmd
- TEAM ENVI $APPDATA=X:\Users\Default\AppData\Roaming|ENVI $
- EXEC pexlorer.exe
- EXEC regedit /s "%ProgramFiles%\Classic Shell\cs.reg"
- CALL $%ProgramFiles%\Classic Shell\StartMenuHelper64.dll
- EXEC %ProgramFiles%\Classic Shell\ClassicStartMenu.exe
- EXEC =!winpeshl.exe
- FILE %PUBLIC%\desktop\desktop.ini
- exec* &&dusb=!devcon status PCI\VEN_1B73*DEV_1* PCI\VEN_1106*DEV_9202 PCI\VEN_1106*DEV_9201 PCI\VEN_1106*DEV_3432 PCI\VEN_1106*DEV_3483 PCI\VEN_1106*DEV_3515
- SED &&R=?,Name,,%&dusb%
- ifex $0=%&R%,! CALL Insdriver "%ProgramFiles%\DRIVERS_USB.7z"
- EXEC =%programfiles%\ShowDrivs_Gui_x64.exe MOUN-udm -findboot -w -mhide \\.\PhysicalDrive* C-
- REGI $HKLM\SYSTEM\CurrentControlSet\Control\SystemStartOptions,&&udm
- SED &&R=?,UDMBOOT,,%&udm%
- ifex $0=%&R%,SHOW U:-1
- exec* &&raid=!devcon status *CC_0104 PCI\VEN_1022*DEV_7803 PCI\VEN_1B21*DEV_06*
- SED &&U=?,problem,,%&raid%
- SED &&S=?,running,,%&raid%
- ifex $0=%&U%,! call araid
- ifex $0=%&S%,! call skraid
- exec* &&apple=!devcon status PCI\VEN_144D* PCI\VEN_106B*CC_0180
- SED &&T=?,Name,,%&apple%
- ifex $0=%&T%,! call sapple
- FILE %windir%\inf\msdri.inf
- FORX !\WifiDriver\custom*.7z,&&ccab,1,envi &&cucab=%&ccab%
- find $Z=Z%&cucab%,! call customCab %&cucab%
- exec* &&yxwk=!devcon status *CC_0200
- SED &&V=?,problem,,%&yxwk%
- ifex $0=%&V%,! call InsNicCab
- exec* &&wxwk=!devcon status *CC_0280
- SED &&W=?,problem,,%&wxwk%
- exec* &&usbwk=!find "msdri.inf'" %windir%\inf\setupapi.dev.log
- SED &&US=?,0x00,,%&usbwk%
- ifex $0=%&US%,!
- {
- WRIT %temp%\line.txt,$+0,%&usbwk%
- exec* &&line=!find "Published" %temp%\line.txt
- MSTR -delims:' &&n1,&&n2,&&n3,&&n4=<1*>%line%
- EXEC !devcon dp_delete %&n4%
- FILE %temp%\line.txt
- }
- SED &&Y=?,running,,%&wxwk%
- ifex $0=%&Y%,! call sload
- ifex [ $0<>%&W% | $0<>%&US% ], call Inswifi
- ifex %windir%\system32\drivers\rtux64w10.sys, ! call rtuins
- exec* &&sound=!devcon status HDAUDIO\FUNC_01
- SED &&S=?,problem,,%&sound%
- ifex $0=%&S%,! exec *drvload %windir%\inf\hdaudss.inf %windir%\inf\hdaudio.inf
- LOOP $1=1,
- {
- ifex #%sum%=0, exit loop
- CALC #sum = %sum% - 1
- REGI *HKLM\DRIVERS\DriverDatabase\DriverInfFiles\oem%sum%.inf\,&&ii
- find $Z=Z%&ii%,! exec *drvload %windir%\inf\oem%sum%.inf
- }[color=Red]
- regi HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0010804\Ime File=freeime.ime
- regi HKLM\CurrentControlSet\Control\Keyboard Layouts\E0010804\Layout File=kbdus.dll
- regi HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0010804\Layout Text=极点五笔输入法
- regi HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0010804\system=X:\Program Files (x86)\freeime
- regi HKCU\Keyboard Layout\Preload\3=E0010804
- CALL $imm32,ImmInstallIMEW,%SystemRoot%\System32\freeime.ime,极点五笔
- CALL $%SystemRoot%\SysWOW64\imm32,ImmInstallIMEW,%SystemRoot%\SysWOW64\freeime.ime,极点五笔、、好像就是这几行![/color]
- regi #HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics\AppliedDPI,&&dpi
- ifex $%&dpi%<>0x60, call EDPI %&dpi%
- LINK %startmenu%\TC文件管理器,%ProgramFiles%\TotalCommander\TOTALCMD64.exe
- LINK %startmenu%\Dism++,%ProgramFiles%\Dism++\Dism++x64.exe
- LINK %startmenu%\***分区,%ProgramFiles%\***\***.exe
- LINK %startmenu%\WinNTSetup,%ProgramFiles%\WinNTSetup\WinNTSetup_x64.exe
- LINK %startmenu%\PE网络管理,%ProgramFiles%\PENetwork\PENetwork.exe
- LINK %startmenu%\世界之窗浏览器,%ProgramFiles(x86)%\TheWorld\Application\theworld.exe
- LINK %startmenu%\Ghost克隆,%ProgramFiles%\ghost64.exe
- LINK %startmenu%\BOOTICE引导工具,%ProgramFiles%\BOOTICEx64.exe
- LINK %startmenu%\任务管理器,%windir%\System32\taskmgr.exe
- LINK %startmenu%\Everything搜索,%ProgramFiles%\everything\Everything.exe
- //LINK %startmenu%\关闭计算机,%&myname%,x:\windows\shut.ini,%SystemRoot%\system32\shell32.dll,27
- LINK %startmenu%\搜索PETOOLS,%&myname%,load PETOOLS.INI,%windir%\System32\PECMD.EXE,,%windir%
- //LINK %startmenu%\运行,"%&myname%",SEND #0x5B_; R_; #0x5B^; R^,shell32.dll#24,,x:\
- LINK %desktop%\TC文件管理器,%ProgramFiles%\TotalCommander\TOTALCMD64.exe
- LINK %desktop%\Dism++,%ProgramFiles%\Dism++\Dism++x64.exe
- LINK %desktop%\***分区,%ProgramFiles(x86)%\***_Mono.exe
- LINK %desktop%\WinNTSetup安装器,%ProgramFiles%\WinNTSetup\WinNTSetup_x64.exe
- LINK %desktop%\PE网络管理,%ProgramFiles%\PENetwork\PENetwork.exe
- link %desktop%\世界之窗浏览器,%ProgramFiles(x86)%\TheWorld\Application\theworld.exe,,%ProgramFiles(x86)%\TheWorld\ico.ico
- LINK %desktop%\分区挂载,%ProgramFiles%\ShowDrivs_Gui_x64.exe
- LINK %desktop%\Everything搜索,%ProgramFiles%\everything\Everything.exe
- LINK %programs%\7z文件管理器,%ProgramFiles%\7-zip\7zFM.exe
- LINK %programs%\ntpwedit密码清除,%ProgramFiles%\ntpwedit_x64.exe
- LINK %programs%\记事本,%windir%\notepad.exe
- LINK %programs%\截图 Win+X,%&myname%,%windir%\wall.ini sn,shell32.dll,141
- HOTK Win + x,LOAD %windir%\wall.ini sn
- LINK %programs%\屏幕键盘,%windir%\FreeVK.exe
- LINK %programs%\Imagine看图,%ProgramFiles%\TotalCommander\plugins\wlx\Imagine\Imagine64.exe
- LINK %programs%\PDF阅读器,%ProgramFiles%\TotalCommander\plugins\wlx\slister\SumatraPDF.exe
- //LINK %programs%\设备管理器,devmgmt.msc,,devmgr.dll,4
- //LINK %programs%\磁盘管理,diskmgmt.msc,
- LINK %programs%\声音,%windir%\syswow64\mmsys.cpl,,audiosrv.dll#0
- LINK %sendto%\compact查看压缩状态,%ProgramFiles%\compact\compact.bat,zt_,
- LINK %sendto%\compact解压,%ProgramFiles%\compact\compact.bat,jy_,
- LINK %sendto%\compact压缩Xpress4k_最快速,%ProgramFiles%\compact\compact.bat,x4_,
- LINK %sendto%\compact压缩Xpress8k,%ProgramFiles%\compact\compact.bat,x8_,
- LINK %sendto%\compact压缩Xpress16k,%ProgramFiles%\compact\compact.bat,x16_,
- LINK %sendto%\compact压缩LZX_压缩程度最高,%ProgramFiles%\compact\compact.bat,lz_,
- LINK %sendto%\发送到桌面快捷方式,%&myname%,%windir%\wall.ini sd
- LINK %Favorites%\浏览器启用缓存,清理缓存,%ProgramFiles(x86)%\TheWorld\Application\re.bat,dd,
- WRIT %Favorites%\无忧启动论坛.url,1,[InternetShortcut]
- WRIT %Favorites%\无忧启动论坛.url,$2,URL=http://bbs.wuyou.net/forum.php
- LINK %QuickLaunch%\音量调节, %windir%\syswow64\SndVol.exe,,%windir%\syswow64\SndVol.exe#1
- LINK %QuickLaunch%\无线连接, %ProgramFiles%\ShowDrivs_Gui_x64.exe,"%ProgramFiles%\wificonnect.wcs",%windir%\system32\netshell.dll#102
- regi HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e96b-e325-11ce-bfc1-08002be10318}\0000\DriverDate,&&sd
- ifex $%&sd%=,LINK %QuickLaunch%\虚拟键盘, %&myname%,%windir%\wall.ini vk,freevk.exe#0
- SITE %ProgramData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools,+H
- SITE %ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp,+H
- SITE %startup%,+H
- regi HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoPropertiesMyComputer!
- regi #HKCU\Software\Sysinternals\PsSuspend\EulaAccepted=0x01
- EXEC !cmd /c "%programfiles%\hotplug.bat" pci
- EXEC -hide taskmgr.exe
- TEXT 初始化完成 L204 T207 R1000 B268 $60:Microsoft YaHei UI
- wait 500
- TEAM SERV !IKEEXT|SERV AudioEndpointBuilder|SERV Audiosrv
- exec *drvload %windir%\inf\netrndis.inf %windir%\inf\wceisvista.inf
- regi #HKLM\SYSTEM\ControlSet001\Services\IKEEXT\start=0x03
- REGI $HKLM\SYSTEM\CurrentControlSet\Control\PEBootType,&&Boottype
- kill taskmgr.exe
- FIND $Remote=%&Boottype%,call autorun
- EXIT FILE
复制代码
我原来用EXEC !X:\Program Files\freeime\registry.exe每次都出现安装成功的消息框!后来看见有的PE里面这样写EXEC !X:\Program Files\freeime\registry.exe /S |
|