这个是我V6.2中的配置文件,本想先在深度发的,呵呵……
在此感谢老九大哥,是他不断的完善PECMD.EXE,我才作出了这个窗体。。
配置文件中如果有BUG,希望大家能够更正。。
下面说下这个窗口的特色:
1,首先根据外置WIM存在、外置程序的首次运行、卸载和相互之间的抑制关系智能判断WIM包的加载情况。
2,方便的设置虚拟内存模式。
3,方便的设置分辨率和颜色质量模式。
4,方便的设置系统临时文件目录功能(要是可以申请专利就好了)。
5,预留卡巴、NOD32杀毒、紫光拼音、MB5主题和Opera几个外置WIM接口,留给大家自己制作,都是很简单的,有网友上传他制作的WIM包就最好了,如果没有我会自己抽空制作然后共享的,但是不保证时间。
6,设置窗口驻留15秒,但是每次点击以下随便一个复选框后,就会重新倒计时,没有点击“启动设定模式”便会根据窗口上此时的选择情况进入系统。
7,启动前的窗口是没有无边框的,主要是因为如果点击了右上角的关闭的话,会出现某些情况。
8,暂无增加DIRECTX和Windows Media Player的想法,因为这两个安装会极大的开增X盘的容量,会给小内存用户系统稳定性带来极大的隐患。
9,暂不处理驱逐舰、卡巴和NOD32共存时可能出现的冲突问题。
先看图吧,
启动前的窗体
启动后的窗体。
PECMD.INI:
//配置文件开始
FBWF P40 L64 H168
TEAM ENVI W=%SystemRoot%|ENVI WS=%W%\SYSTEM32|ENVI WSD=%WS%\Drivers
TEAM FILE %W%\TXTSETUP.SI*|FILE %WS%\NTOSKRNL.EX*|FILE %WS%\WIN32K.SYS|PATH #%WS%\CONFIG|FILE %WS%\*.*_|FILE %WSD%\*.SY_
TEAM LOGS %W%\PECMD.LOG|PATH %SystemDrive%\TEMP|INIT I|EXEC @PECMD.EXE CALL $SHELL32.DLL,DllInstall,#1,U
TEAM ENVI VV0=HKLM\System\CurrentControlSet\Services|ENVI VV1=System32\Drivers `修正 USB 驱动程序文件路径
REGI %VV0%\USBHUB\ImagePath=%VV1%\USBHUB.SYS
REGI %VV0%\USBCCGP\ImagePath=%VV1%\USBCCGP.SYS
REGI %VV0%\USBEHCI\ImagePath=%VV1%\USBEHCI.SYS
REGI %VV0%\USBOHCI\ImagePath=%VV1%\USBOHCI.SYS
REGI %VV0%\USBSTOR\ImagePath=%VV1%\USBSTOR.SYS
REGI %VV0%\USBUHCI\ImagePath=%VV1%\USBUHCI.SYS
REGI %VV0%\HIDUSB\ImagePath=%VV1%\HIDUSB.SYS
REGI %VV0%\MOUCLASS\ImagePath=%VV1%\MOUCLASS.SYS
REGI %VV0%\MOUHID\ImagePath=%VV1%\MOUHID.SYS
REGI %VV0%\KBDCLASS\ImagePath=%VV1%\KBDCLASS.SYS
REGI %VV0%\KBDHID\ImagePath=%VV1%\KBDHID.SYS
REGI %VV0%\CDROM\ImagePath=%VV1%\cdrom.sys
//注册热键,休眠键重启,电源键关机,F1 帮助
TEAM HOTK #255,PECMD.EXE SHUT E|HOTK #112,PECMD.EXE
NUMK 0 `对于台式机键盘,可以将本命令改成 NUMK 1,以打开数字键
USER 老九WinPE迷你维护系统,小马强化V6.2版
REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu\{208D2C60-3AEA-1069-A2D7-08002B30309D}=#1 `在桌面不显示网上邻居
REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu\{450D8FBA-AD25-11D0-98A8-0800361B1103}=#1 `桌面不显示我的文档
REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Settings=@08 00 00 00 06 00 00 00 01 00 00 00 e5 25 f1 65 e1 7b 10 48 ba 9d d2 71 c8 43 2c e3 04 00 00 00 1a 00 00 00 43 00 00 00 `设置图标的排列形式为平铺
LOAD \MiniPE\WINPE.INI
LINK %Desktop%\手动设定配置,PECMD.EXE,LOAD \MiniPE\LOADOP.INI,Shell32.dll#26
LINK %Programs%\附件\记事本,%WS%\NOTEPAD.EXE
LINK %Programs%\附件\命令提示符,%WS%\CMD.EXE
LINK %Programs%\附件\注册表编辑器,%W%\REGEDIT.EXE
LINK %Programs%\附件\资源管理器,%W%\EXPLORER.EXE,,EXPLORER.EXE,1
LINK %StartMenu%\PECMD使用说明,%WS%\PECMD.EXE
RUNS PECMD.EXE EXEC !%WS%\INTERNAT.EXE,输入法指示器
SHOW R:0
`修改注册表和相关文件名以支持 Vista 安装
REGI HKLM\SYSTEM\CurrentControlSet\Control\MiniNT\!
EXEC !CMD.EXE /C "REN %SystemRoot%\SYSTEM32\HALACPI.DLL HAL.DLL"
`如果不能给 USB 移动存储设备迅速分配盘符或者关机缓慢,请尝试重启 AudioSrv 服务(对于部分 HD 声卡)
TEAM EXEC =PECMD SERV !AudioSrv|SERV AudioSrv
`杀掉无用进程并删掉 X: 盘可删除文件以节省空间
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 VV0=|ENVI VV1=
//TEAM WAIT 12000|SEND 17_,18_,77_,77^,18^,17^|SEND 17_,18_,77_,77^,18^,17^ `如果 PECMD 托盘图标不显示,请用此命令
LOGS
//配置文件结束
-----------------------------------------
-----------------------------------------
启动前的配置文件
`---------------------------------配置文件主程序部分----------------------------------------------------
TEAM ENVI SOFT=%Curdrv%\MINIPE|ENVI AUT=%Curdrv%|ENVI PF=Pagefile.sys
LOGO %SOFT%\Picture\back.jpg
//SHEL %SystemRoot%\EXPLORER.EXE,d86ac8d11918df21b8b0d4918df597f0 `在此设置PE启动密码,d86ac8d11918df21b8b0d4918df597f0是小马的md5字符串,想修改为deepin,就使用MD5.exe计算deepin的md5码,然后替换,若不想使用密码,请使用//屏蔽此命令行。
WALL %SOFT%\Picture\DEEPIN.jpg
//FONT C:\WINDOWS\Fonts `挂接硬盘上 Windows 系统的字体,如果因字体过多造成启动极其缓慢或无法启动,请关闭此命令
`清理掉上次启动 PE 或 Windows 时留下的虚拟内存页面文件
TEAM FILE C:\%PF%|FILE D:\%PF%|FILE E:\%PF%|FILE F:\%PF%|FILE G:\%PF%|FILE H:\%PF%|FILE I:\%PF%|FILE J:\%PF%|FILE K:\%PF%|FILE L:\%PF%|FILE M:\%PF%|FILE N:\%PF%|FILE O:\%PF%|FILE P:\%PF%|FILE Q:\%PF%|FILE R:\%PF%|FILE S:\%PF%|FILE T:\%PF%
TEAM TEXT 3秒内按住Ctrl键出现手动选择窗口,否则启动自配置模式……#0x00FF00 L15 $20|WAIT -4000|TEXT
FIND KEY=17,CALL @windows1!CALL LOADWIM0 `建立模式调用条件
LINK %StartMenu%\启动WinPE安装程序,%AUT%\autorun.exe `开始菜单建立自动播放快捷方式
FIND $%MOD33%=1,TEAM WAIT 6500|ENVI $xiaoma=|ENVI MOD33= `根据启动前是否设置了%temp%决定设置系统进程变量
`-------------------------------------调用子程序部分-----------------------------------------------------
_SUB windows1,W356H390,设定窗口,,Shell32.DLL#47,-28, `建立手动设置窗口
`根据外置WIM包的存在和加载情况设定具体变量
IFEX %SOFT%\BASIC.WIM,ENVI MOD1=-1!ENVI MOD1=-3
IFEX Y:\BASIC\main.INI,ENVI MOD1=-3
IFEX %SOFT%\OTHER.WIM,ENVI MOD2=1!ENVI MOD2=-3
IFEX Y:\OTHER\main.INI,ENVI MOD2=-3
IFEX %SOFT%\net.WIM,ENVI MOD3=1!ENVI MOD3=-3
IFEX Y:\net\main.INI,ENVI MOD3=-3
IFEX %SOFT%\sound.WIM,ENVI MOD4=1!ENVI MOD4=-3
IFEX Y:\sound\main.INI,ENVI MOD4=-3
IFEX %SOFT%\VGA.WIM,ENVI MOD5=1!ENVI MOD5=-3
IFEX Y:\VGA\main.INI,ENVI MOD5=-3
IFEX %SOFT%\PYJJ.WIM,ENVI MOD6=1!ENVI MOD6=-3
IFEX %SystemRoot%\system32\PYJJU.IME,ENVI MOD6=-3
IFEX %SOFT%\SOGOU.WIM,ENVI MOD7=0!ENVI MOD7=-3
IFEX %SystemRoot%\system32\SogouPY.ime,ENVI MOD7=-3
IFEX %SOFT%\ZGPY.WIM,ENVI MOD8=0!ENVI MOD8=-3
IFEX Y:\ZGPY\main.INI,ENVI MOD8=-3
IFEX %SOFT%\virus.WIM,ENVI MOD9=1!ENVI MOD9=-3
IFEX Y:\virus\main.INI,ENVI MOD9=-3
IFEX %SOFT%\VAP7.WIM,ENVI MOD10=0!ENVI MOD10=-3
IFEX Y:\VAP7\main.INI,ENVI MOD10=-3
IFEX %SOFT%\NOD32.WIM,ENVI MOD11=0!ENVI MOD11=-3
IFEX Y:\NOD32\main.INI,ENVI MOD11=-3
IFEX %SOFT%\Word2K.WIM,ENVI MOD12=0!ENVI MOD12=-3
IFEX Y:\Word2K\main.INI,ENVI MOD12=-3
IFEX %SOFT%\Office.WIM,ENVI MOD13=0!ENVI MOD13=-3
IFEX Y:\Office\main.INI,ENVI MOD13=-3
IFEX %SOFT%\Wb5.WIM,ENVI MOD14=0!ENVI MOD14=-3
IFEX Y:\Wb5\main.INI,ENVI MOD14=-3
//ENVI MOD15=-3 `条件需要修改(+实时监控)
IFEX %SOFT%\opera.WIM,ENVI MOD16=0!ENVI MOD16=-3
IFEX Y:\opera\main.INI,ENVI MOD16=-3
`根据以上变量设定选框具体状态
GROU Group1,L15T5W320H50,启动最小模式
ITEM Button1,L83T23W190H24,启 动 纯 系 统,TEAM Call SETSHELL|WAIT 2000|KILL \设定窗口,,0
GROU Group2,L15T60W320H305,手动设定模式
CHEK CheckBox1,L30T80W90H20,挂载基本外置,CALL ,%MOD1%
CHEK CheckBox2,L130T80W90H20,挂载扩展外置,CALL ,%MOD2%
CHEK CheckBox3,L30T105W91H20,挂载网卡驱动,CALL ,%MOD3%
CHEK CheckBox4,L130T105W91H20,挂载声卡驱动,CALL ,%MOD4%
CHEK CheckBox5,L230T105W91H20,挂载显卡驱动,CALL ,%MOD5%
CHEK CheckBox6,L30T130W91H20,拼音加加,CALL ,%MOD6%
CHEK CheckBox7,L130T130W91H20,搜狗拼音,CALL ,%MOD7%
CHEK CheckBox8,L230T130W91H20,紫光拼音,CALL ,%MOD8%
CHEK CheckBox9,L30T155W91H20,驱逐舰杀毒,CALL ,%MOD9%
CHEK CheckBox10,L130T155W91H20,卡巴斯基V7.0,CALL ,%MOD10%
CHEK CheckBox11,L230T155W91H20,NOD32杀毒,CALL ,%MOD11%
CHEK CheckBox12,L30T180W91H20,Word2000,CALL ,%MOD12%
CHEK CheckBox13,L130T180W91H20,Office2003,CALL ,%MOD13%
CHEK CheckBox14,L230T180W91H20,开启Wb5主题,CALL ,%MOD14%
CHEK CheckBox15,L230T80W91H20,启动所有驱动,CALL ,0 `暂仅支持首次启动加载 %MOD15%
CHEK CheckBox16,L30T205W91H20,Opera浏览器,CALL ,%MOD16%
ITEM Button2,L187T215W135H25,重新设置临时文件目录,TEAM TEMP Setting|ENVI MOD33=1,,0
LABE Label2,L30T238W165H20,请选择虚拟内存分区和大小
TEAM ENVI P0=设置过的请飘过|ENVI P1=C:\|ENVI P2=D:\|ENVI P3=E:\|ENVI P4=F:\
LIST List1,L30T258W124H60,%P0%|%P1%|%P2%|%P3%|%P4%,,%P3%
RADI RadioButton1,L164T261W55H20,192M,CALL ,0,1
RADI RadioButton2,L219T261W55H20,256M,CALL ,1,1
RADI RadioButton3,L274T261W55H20,384M,CALL ,0,1
LABE Label3,L30T284W155H20,请选择分辨率和颜色深度
ENVI NODISP=使用默认分辨率
ENVI W800H600B32= 800*600
ENVI W1024H768B32= 1024*768
LIST List2,L30T304W124H55,%NODISP%|%W800H600B32%|%W1024H768B32%,,%NODISP%
RADI RadioButton4,L164T306W55H20,默认,CALL ,1,2
RADI RadioButton5,L219T306W55H20,32位,CALL ,0,2
RADI RadioButton6,L274T306W55H20,16位,CALL ,0,2
TEAM ENVI TT=16|TIME Timer1,1000,CALL CancelButt `设定周期定时器,以实现计数器功能
ITEM Button3,L83T335W190H25,启 动 设 定 模 式(15秒),TEAM CALL LOADWIM1|WAIT 2000|KILL \设定窗口,,0
_END
_SUB CancelButt `设定窗口倒计时
CALC #SUBS1=%TT%-1
ENVI TT=%SUBS1%
ENVI @Button3=启 动 设 定 模 式(%TT%秒)
IFEX $%TT%<1,TEAM ENVI @Timer1=0|CALL LOADWIM1|WAIT 2000|KILL \设定窗口
_END
_SUB LOADWIM1 `进入手动设定模式系统
FIND $%RadioButton1.Check%=1,ENVI RA1=192
FIND $%RadioButton2.Check%=1,ENVI RA1=256
FIND $%RadioButton3.Check%=1,ENVI RA1=384
CALC #Result = %RA1% * 3
CALC Result = %Result%/2
FIND $%List1%=%P1%,PAGE C:\%PF% %RA1% %Result%
FIND $%List1%=%P2%,PAGE D:\%PF% %RA1% %Result%
FIND $%List1%=%P3%,PAGE E:\%PF% %RA1% %Result%
FIND $%List1%=%P4%,PAGE F:\%PF% %RA1% %Result%
FIND $%CheckBox1.Check%=1,TEAM MOUN %SOFT%\basic.wim,Y:\basic\,1|LOAD Y:\basic\main.ini
FIND $%CheckBox2.Check%=1,TEAM MOUN %SOFT%\OTHER.wim,Y:\OTHER\,1|LOAD Y:\OTHER\main.ini
FIND $%CheckBox3.Check%=1,TEAM MOUN %SOFT%\net.wim,Y:\net\,1|LOAD Y:\net\main.ini
FIND $%CheckBox4.Check%=1,TEAM MOUN %SOFT%\sound.wim,Y:\sound\,1|LOAD Y:\sound\main.ini
FIND $%CheckBox5.Check%=1,TEAM MOUN %SOFT%\VGA.wim,Y:\VGA\,1|LOAD Y:\VGA\main.ini
FIND $%CheckBox6.Check%=1,TEAM MOUN %SOFT%\PYJJ.wim,Y:\PYJJ\,1|LOAD Y:\PYJJ\main.ini
FIND $%CheckBox7.Check%=1,TEAM MOUN %SOFT%\SOGOU.wim,Y:\SOGOU\,1|LOAD Y:\SOGOU\main.ini
FIND $%CheckBox8.Check%=1,TEAM MOUN %SOFT%\ZGPY.wim,Y:\ZGPY\,1|LOAD Y:\ZGPY\main.ini
FIND $%CheckBox9.Check%=1,TEAM MOUN %SOFT%\virus.wim,Y:\virus\,1|LOAD Y:\virus\main.ini
FIND $%CheckBox10.Check%=1,TEAM MOUN %SOFT%\VAP7.wim,Y:\VAP7\,1|LOAD Y:\VAP7\main.ini
FIND $%CheckBox11.Check%=1,TEAM MOUN %SOFT%\NOD32.wim,Y:\NOD32\,1|LOAD Y:\NOD32\main.ini
FIND $%CheckBox13.Check%=1,TEAM MOUN %SOFT%\office.wim,Y:\office\,1|LOAD Y:\office\main.ini
IFEX Y:\Office\main.INI,!FIND $%CheckBox12.Check%=1,TEAM MOUN %SOFT%\WORD2K.wim,Y:\WORD2K\,1|LOAD Y:\WORD2K\main.ini
FIND $%CheckBox14.Check%=1,TEAM MOUN %SOFT%\wb5.wim,Y:\wb5\,1|LOAD Y:\wb5\main.ini
FIND $%CheckBox15.Check%=1,CALL ALLDIRV
FIND $%CheckBox16.Check%=1,TEAM MOUN %SOFT%\opera.wim,Y:\SOGOU\,1|LOAD Y:\opera\main.ini
FIND $%RadioButton5.Check%=1,ENVI RA2=B32
FIND $%RadioButton6.Check%=1,ENVI RA2=B16
FIND $%List2%=%W800H600B32%,DISP W800 H600 %RA2%
FIND $%List2%=%W1024H768B32%,DISP W1024 H768 %RA2%
TEAM ENVI RA1=|ENVI RA2=
CALL SETSHELL
_END
_SUB ALLDIRV `加载所有的驱动 (命令有待改善)
MOUN %SOFT%\net.wim,Y:\net\,1
WAIT 1000
EXEC !Y:\net\START_NET.CMD
MOUN %SOFT%\sound.wim,Y:\sound\,1
WAIT 1000
EXEC !Y:\sound\START_SOUND.CMD
MOUN %SOFT%\VGA.wim,Y:\VGA\,1
WAIT 1000
EXEC !Y:\VGA\START_VGA.CMD
_END
_SUB LOADWIM0 `设定默认自配置系统
IFEX %SOFT%\BASIC.WIM,TEAM MOUN %SOFT%\basic.wim,Y:\basic\,1|WAIT 1500|LOAD Y:\basic\main.ini
//IFEX %SOFT%\OTHER.WIM,TEAM MOUN %SOFT%\OTHER.wim,Y:\OTHER\,1|LOAD Y:\OTHER\main.iniI|WAIT 300
IFEX %SOFT%\net.WIM,TEAM MOUN %SOFT%\net.wim,Y:\net\,1|LOAD Y:\net\main.ini|WAIT 300
IFEX %SOFT%\sound.WIM,TEAM MOUN %SOFT%\sound.wim,Y:\sound\,1|LOAD Y:\sound\main.ini|WAIT 300
IFEX %SOFT%\VGA.WIM,TEAM MOUN %SOFT%\VGA.wim,Y:\VGA\,1|LOAD Y:\VGA\main.ini|WAIT 300
IFEX %SOFT%\PYJJ.WIM,TEAM MOUN %SOFT%\PYJJ.wim,Y:\PYJJ\,1|LOAD Y:\PYJJ\main.ini|WAIT 300
//IFEX %SOFT%\SOGOU.WIM,TEAM MOUN %SOFT%\SOGOU.wim,Y:\SOGOU\,1|LOAD Y:\SOGOU\main.ini|WAIT 300
//IFEX %SOFT%\ZGPY.WIM,TEAM MOUN %SOFT%\ZGPY.wim,Y:\ZGPY\,1|LOAD Y:\ZGPY\main.ini|WAIT 300
IFEX %SOFT%\virus.WIM,TEAM MOUN %SOFT%\virus.wim,Y:\virus\,1|LOAD Y:\virus\main.ini|WAIT 300
//IFEX %SOFT%\VAP7.WIM,TEAM MOUN %SOFT%\VAP7.wim,Y:\VAP7\,1|LOAD Y:\VAP7\main.ini|WAIT 300
//IFEX %SOFT%\NOD32.WIM,TEAM MOUN %SOFT%\NOD32.wim,Y:\NOD32\,1|LOAD Y:\NOD32\main.ini|WAIT 300
//IFEX %SOFT%\word2k.WIM,TEAM MOUN %SOFT%\word2k.wim,Y:\word2k\,1|LOAD Y:\word2k\main.ini|WAIT 300
FIND MEM>500,TEAM MOUN %SOFT%\office.wim,Y:\office\,1|LOAD Y:\office\main.ini|WAIT 300
TEAM WAIT 1000|Call SETSHELL
_END
_SUB SETSHELL `进入桌面并删除环境变量
TEAM ENVI A1=|ENVI A2=|ENVI A3=|ENVI SOFT=|ENVI AUT=|ENVI PF=|ENVI @Button3=|ENVI @Timer1=|ENVI TT=|ENVI MOD1=|ENVI MOD2=|ENVI MOD3=|ENVI MOD4=|ENVI MOD5=|ENVI MOD6=|ENVI MOD7=|ENVI MOD8=|ENVI MOD9=|ENVI MOD10=|ENVI MOD11=|ENVI MOD12=|ENVI MOD13=|ENVI MOD14=|ENVI MOD15=|ENVI MOD16=|ENVI P0=|ENVI P1=|ENVI P2=|ENVI P3=|ENVI P4=|ENVI NODISP=|ENVI W800H600B32=|ENVI W1024H768B32=|ENVI SUBS1=
TEAM TEXT 欢迎使用老九WinPE小马强化V6.2版..o(∩_∩)o...#0x00FF00 L15 $20|WAIT 1000|SHEL %SystemRoot%\EXPLORER.EXE|LOGO|TEXT
_END
EXIT
----------------------------------
----------------------------------
启动后的窗体配置文件:
TEAM ENVI A1=%SystemRoot%\SYSTEM32\AUDIO3D.DLL|ENVI A2=%SystemRoot%\SYSTEM32\IPSECSVC.DLL|ENVI A3=%SystemRoot%\SYSTEM32\D3D8.DLL|ENVI SOFT=%Curdrv%\MINIPE|ENVI AUT=%Curdrv%|ENVI PF=Pagefile.sys
FORX \%PF%,,1,ENVI MOD30=-3
CALL @windows1
_SUB windows1,W356H405,设定窗口,,Shell32.DLL#47,15, `建立手动设置窗口
`根据外置WIM包的存在和加载情况设定具体变量
IFEX %SOFT%\BASIC.WIM,ENVI MOD1=-1!ENVI MOD1=-3
IFEX Y:\BASIC\main.INI,ENVI MOD1=-3
IFEX %SOFT%\OTHER.WIM,ENVI MOD2=1!ENVI MOD2=-3
IFEX Y:\OTHER\main.INI,ENVI MOD2=-3
IFEX %SOFT%\net.WIM,ENVI MOD3=1!ENVI MOD3=-3
IFEX Y:\net\main.INI,ENVI MOD3=-3
IFEX %A2%,ENVI MOD3=-3
IFEX %SOFT%\sound.WIM,ENVI MOD4=1!ENVI MOD4=-3
IFEX Y:\sound\main.INI,ENVI MOD4=-3
IFEX %A1%,ENVI MOD4=-3
IFEX %SOFT%\VGA.WIM,ENVI MOD5=1!ENVI MOD5=-3
IFEX Y:\VGA\main.INI,ENVI MOD5=-3
IFEX %A3%,ENVI MOD5=-3
IFEX %SOFT%\PYJJ.WIM,ENVI MOD6=1!ENVI MOD6=-3
IFEX %SystemRoot%\system32\PYJJU.IME,ENVI MOD6=-3
IFEX %SOFT%\SOGOU.WIM,ENVI MOD7=0!ENVI MOD7=-3
IFEX %SystemRoot%\system32\SogouPY.ime,ENVI MOD7=-3
IFEX %SOFT%\ZGPY.WIM,ENVI MOD8=0!ENVI MOD8=-3
IFEX Y:\ZGPY\main.INI,ENVI MOD8=-3
IFEX %SOFT%\virus.WIM,ENVI MOD9=1!ENVI MOD9=-3
IFEX Y:\virus\main.INI,ENVI MOD9=-3
IFEX %SOFT%\VAP7.WIM,ENVI MOD10=0!ENVI MOD10=-3
IFEX Y:\VAP7\main.INI,ENVI MOD10=-3
IFEX %SOFT%\NOD32.WIM,ENVI MOD11=0!ENVI MOD11=-3
IFEX Y:\NOD32\main.INI,ENVI MOD11=-3
IFEX %SOFT%\Word2K.WIM,ENVI MOD12=0!ENVI MOD12=-3
IFEX Y:\Word2K\main.INI,ENVI MOD12=-3
IFEX Y:\Office,ENVI MOD12=-3
IFEX %SOFT%\Office.WIM,ENVI MOD13=0!ENVI MOD13=-3
IFEX Y:\Office\main.INI,ENVI MOD13=-3
IFEX %SOFT%\Wb5.WIM,ENVI MOD14=0!ENVI MOD14=-3
IFEX Y:\Wb5\main.INI,ENVI MOD14=-3
IFEX %A1%,IFEX %A2%,IFEX %A3%,ENVI MOD15=-3
IFEX %SOFT%\opera.WIM,ENVI MOD16=0!ENVI MOD16=-3
IFEX Y:\opera\main.INI,ENVI MOD16=-3
IFEX *:\%PF%,TEAM ENVI MOD30=-3
`根据以上变量设定选框具体状态
GROU Group1,L15T5W320H50,启动最小模式
ITEM Button1,L83T23W190H24,启 动 纯 系 统,TEAM Call UnloadOP|WAIT 2000|KILL \设定窗口,,0
GROU Group2,L15T60W320H305,手动设定模式
CHEK CheckBox1,L30T80W90H20,挂载基本外置,,%MOD1%
CHEK CheckBox2,L130T80W90H20,挂载扩展外置,,%MOD2%
CHEK CheckBox3,L30T105W91H20,挂载网卡驱动,,%MOD3%
CHEK CheckBox4,L130T105W91H20,挂载声卡驱动, ,%MOD4%
CHEK CheckBox5,L230T105W91H20,挂载显卡驱动,,%MOD5%
CHEK CheckBox6,L30T130W91H20,拼音加加,,%MOD6%
CHEK CheckBox7,L130T130W91H20,搜狗拼音,,%MOD7%
CHEK CheckBox8,L230T130W91H20,紫光拼音,,%MOD8%
CHEK CheckBox9,L30T155W91H20,驱逐舰杀毒,,%MOD9%
CHEK CheckBox10,L130T155W91H20,卡巴斯基V7.0,,%MOD10%
CHEK CheckBox11,L230T155W91H20,NOD32杀毒,,%MOD11%
CHEK CheckBox12,L30T180W91H20,Word2000,,%MOD12%
CHEK CheckBox13,L130T180W91H20,Office2003,,%MOD13%
CHEK CheckBox14,L230T180W91H20,开启Wb5主题,,%MOD14%
CHEK CheckBox15,L230T80W91H20,启动所有驱动,,%MOD15%
CHEK CheckBox16,L30T205W91H20,Opera浏览器,,%MOD16%
ITEM Button2,L187T203W135H25,重新设置临时文件目录,TEMP Setting,,0
ITEM Button4,L187T233W135H25,清理临时文件夹的文件,TEMP DELETE,,0
LABE Label2,L30T238W155H20,请选择虚拟内存和大小
TEAM ENVI P0=设置过的请飘过|ENVI P1=C:\|ENVI P2=D:\|ENVI P3=E:\|ENVI P4=F:\
LIST List1,L30T258W124H60,%P0%|%P1%|%P2%|%P3%|%P4%,,%P0%
RADI RadioButton1,L164T261W55H20,192M,,%MOD30%,1
RADI RadioButton2,L219T261W55H20,256M,,%MOD30%,1
RADI RadioButton3,L274T261W55H20,384M,,%MOD30%,1
LABE Label3,L30T284W155H20,请选择分辨率和颜色深度
ENVI NODISP=使用默认分辨率
ENVI W800H600B32= 800*600
ENVI W1024H768B32= 1024*768
LIST List2,L30T304W124H55,%NODISP%|%W800H600B32%|%W1024H768B32%,,%NODISP%
RADI RadioButton4,L164T306W55H20,默认,,1,2
RADI RadioButton5,L219T306W55H20,32位,,0,2
RADI RadioButton6,L274T306W55H20,16位,,0,2
ITEM Button3,L83T333W190H25,启 动 设 定 模 式,TEAM CALL LOADWIM1|WAIT 2000|KILL \设定窗口,,0
_END
_SUB LOADWIM1 `进入手动设定模式系统
FIND $%RadioButton1.Check%=1,ENVI RA1=192M
FIND $%RadioButton2.Check%=1,ENVI RA1=256M
FIND $%RadioButton3.Check%=1,ENVI RA1=384M
CALC #Result = %RA1% * 3
CALC Result = %Result%/2
FIND $%List1%=%P1%,PAGE C:\%PF% %RA1% %Result%
FIND $%List1%=%P2%,PAGE D:\%PF% %RA1% %Result%
FIND $%List1%=%P3%,PAGE E:\%PF% %RA1% %Result%
FIND $%List1%=%P4%,PAGE F:\%PF% %RA1% %Result%
FIND $%CheckBox1.Check%=1,TEAM MOUN %SOFT%\basic.wim,Y:\basic\,1|LOAD Y:\basic\main.ini
FIND $%CheckBox2.Check%=1,TEAM MOUN %SOFT%\OTHER.wim,Y:\OTHER\,1|LOAD Y:\OTHER\main.ini
FIND $%CheckBox3.Check%=1,TEAM MOUN %SOFT%\net.wim,Y:\net\,1|LOAD Y:\net\main.ini
FIND $%CheckBox4.Check%=1,TEAM MOUN %SOFT%\sound.wim,Y:\sound\,1|LOAD Y:\sound\main.ini
FIND $%CheckBox5.Check%=1,TEAM MOUN %SOFT%\VGA.wim,Y:\VGA\,1|LOAD Y:\VGA\main.ini
FIND $%CheckBox6.Check%=1,TEAM MOUN %SOFT%\PYJJ.wim,Y:\PYJJ\,1|LOAD Y:\PYJJ\main.ini
FIND $%CheckBox7.Check%=1,TEAM MOUN %SOFT%\SOGOU.wim,Y:\SOGOU\,1|LOAD Y:\SOGOU\main.ini
FIND $%CheckBox8.Check%=1,TEAM MOUN %SOFT%\ZGPY.wim,Y:\ZGPY\,1|LOAD Y:\ZGPY\main.ini
FIND $%CheckBox9.Check%=1,TEAM MOUN %SOFT%\virus.wim,Y:\virus\,1|LOAD Y:\virus\main.ini
FIND $%CheckBox10.Check%=1,TEAM MOUN %SOFT%\VAP7.wim,Y:\VAP7\,1|LOAD Y:\VAP7\main.ini
FIND $%CheckBox11.Check%=1,TEAM MOUN %SOFT%\NOD32.wim,Y:\NOD32\,1|LOAD Y:\NOD32\main.ini
FIND $%CheckBox13.Check%=1,TEAM MOUN %SOFT%\office.wim,Y:\office\,1|LOAD Y:\office\main.ini
IFEX Y:\Office\main.INI,!FIND $%CheckBox12.Check%=1,TEAM MOUN %SOFT%\WORD2K.wim,Y:\WORD2K\,1|LOAD Y:\WORD2K\main.ini
FIND $%CheckBox14.Check%=1,TEAM MOUN %SOFT%\wb5.wim,Y:\wb5\,1|LOAD Y:\wb5\main.ini
FIND $%CheckBox15.Check%=1,CALL ALLDIRV
FIND $%CheckBox16.Check%=1,TEAM MOUN %SOFT%\opera.wim,Y:\SOGOU\,1|LOAD Y:\opera\main.ini
FIND $%RadioButton5.Check%=1,ENVI RA2=B32
FIND $%RadioButton6.Check%=1,ENVI RA2=B16
FIND $%List2%=%W800H600B32%,DISP W800 H600 %RA2%
FIND $%List2%=%W1024H768B32%,DISP W1024 H768 %RA2%
TEAM ENVI RA1=|ENVI RA2=
CALL SETSHELL
_END
_SUB ALLDIRV `加载所有的驱动
IFEX %A2%,!TEAM MOUN %SOFT%\net.wim,Y:\net\,1|WAIT 1000|EXEC @Y:\net\START_NET.CMD
IFEX %A1%,!TEAM MOUN %SOFT%\sound.wim,Y:\sound\,1|WAIT 1000|EXEC @Y:\sound\START_SOUND.CMD
IFEX %A3%,!TEAM MOUN %SOFT%\VGA.wim,Y:\VGA\,1|WAIT 1000|EXEC @Y:\VGA\START_VGA.CMD
_END
_SUB UnloadOP `卸载外置程序,以进入最小化系统
FILE %Desktop%\*.LNK
IFEX %Desktop%\Internet Explorer,FILE %Desktop%\Internet Explorer
FILE %QuickLaunch%\*.LNK
IFEX %Programs%\磁盘光盘工具,FILE %Programs%\磁盘光盘工具
IFEX %Programs%\实用工具,FILE %Programs%\实用工具
IFEX %Programs%\系统检测,FILE %Programs%\系统检测
IFEX %Programs%\克隆工具,FILE %Programs%\克隆工具
IFEX %Programs%\网络工具,FILE %Programs%\网络工具
IFEX %Programs%\迅雷5.5,FILE %Programs%\迅雷5.5
IFEX %Programs%\Office2003,FILE %Programs%\Office2003
IFEX %Programs%\Windows 系统维护,FILE %Programs%\Windows 系统维护
IFEX %Programs%\其它驱动支持,FILE %Programs%\其它驱动支持
IFEX %Programs%\杀毒工具,FILE %Programs%\杀毒工具
IFEX %Programs%\多媒体工具,FILE %Programs%\多媒体工具
IFEX %Programs%\nForce芯片组网卡驱动,FILE %Programs%\nForce芯片组网卡驱动
IFEX Y:\BASIC\main.INI,MOUN ,Y:\BASIC,0
IFEX Y:\net\main.INI,MOUN ,Y:\net,0
IFEX Y:\office\main.INI,MOUN ,Y:\office,0
IFEX Y:\other\main.INI,MOUN ,Y:\other,0
IFEX Y:\PYJJ\main.INI,MOUN ,Y:\PYJJ,0
IFEX Y:\SOGOU\main.INI,MOUN ,Y:\SOGOU,0
IFEX Y:\SOUND\main.INI,MOUN ,Y:\SOUND,0
IFEX Y:\VGA\main.INI,MOUN ,Y:\VGA,0
IFEX Y:\VAP7\main.INI,MOUN ,Y:\VAP7,0
IFEX Y:\NOD32\main.INI,MOUN ,Y:\NOD32,0
IFEX Y:\ZGPY\main.INI,MOUN ,Y:\ZGPY,0
IFEX Y:\virus\main.INI,MOUN ,Y:\virus,0
IFEX Y:\Word2K\main.INI,MOUN ,Y:\Word2K,0
LINK %Desktop%\手动设定配置,PECMD.EXE,LOAD \MiniPE\LOADOP.INI,Shell32.dll#26
CALL SETSHELL
_END
_SUB SETSHELL
TEAM TEXT 请稍等,正在更改模式……#0x00FF00 L15 $20|WAIT 800|TEXT
TEAM ENVI SOFT=|ENVI A1=|ENVI A2=|ENVI A3=|ENVI AUT=|ENVI PF=|ENVI @Timer1=|ENVI MOD1=|ENVI MOD2=|ENVI MOD3=|ENVI MOD4=|ENVI MOD5=|ENVI MOD6=|ENVI MOD7=|ENVI MOD8=|ENVI MOD9=|ENVI MOD10=|ENVI MOD11=|ENVI MOD12=|ENVI MOD13=|ENVI MOD14=|ENVI MOD15=|ENVI MOD16=|ENVI MOD30=|ENVI MOD31=|ENVI P0=|ENVI P1=|ENVI P2=|ENVI P3=|ENVI P4=|ENVI NODISP=|ENVI W800H600B32=|ENVI W1024H768B32=|ENVI @RadioButton1.Enable=|ENVI @RadioButton2.Enable=|ENVI @RadioButton3.Enable=
_END
EXIT
[ 本帖最后由 mapeimapei 于 2008-8-24 18:11 编辑 ] |