|
为了减小PE的体积,加快启动速度,也为了以后利于编辑修改外部程序,所以,想把内部程序改为外置程序,也就是把原wim里的【程序包】移到光盘的根目录下,例如,外置配置文件路径改为【光盘:外部程序\winpe.ini】,现在,如何修改内核里的配置文件才能开机自动加载外部程序?
谢谢高手解答!
下面是原Windows\System32\pecmd.ini里的代码。
DISP W1024 H768 B32
EXEC Winpeshl
TEAM ENVI W=%WinDir%|ENVI WS=%W%\SYSTEM32
INIT IU
LOGO %WS%\winpe.jpg
TEXT 初始化 Windows 8 PE 迷你维护系统 ... #0xFFFFFF L680 T702 R980 B764 $20
`不对System Volume Information目录写入信息
REGI HKLM\SOFTWARE\Policies\Microsoft\Windows NT\systemrestore\DisableConfig=#1
REGI HKLM\SOFTWARE\Policies\Microsoft\Windows NT\systemrestore\DisableSR=#1
NUMK 0 `对于台式机键盘,可以将本命令改成 NUMK 1,以打开数字键
TEAM EXEC =!%WS%\AUTONUMLOCK.EXE
//开始菜单中显示“重启”
REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_PowerButtonAction=#4
//隐藏“启动”
SITE %Startup%,+H+R
TEXT 正在理顺磁盘盘符……
EXEC =!%WS%\ORDERDRV.CMD
TEAM WAIT 2000|KILL MOUNTVOL.EXE
TEAM FILE %WS%\ORDERDRV.CMD|FILE %WS%\MOUNTVOL.EXE
TEAM EXEC =!%Windir%\WIMTOOL\启用WIM挂载.CMD
TEXT 正在加载程序……
LOAD \TOOLS\TOOLS.INI
LOAD \MyDriver\DRV.INI
LINK %Programs%\附件\计算器,%WS%\calc.exe
LINK %Programs%\附件\画图,%WS%\mspaint.exe
LINK %Programs%\附件\记事本,%WS%\notepad.exe
LINK %Programs%\附件\命令提示符,%WS%\CMD.EXE
LINK %Programs%\附件\注册表编辑器,%W%\REGEDIT.EXE
LINK %Programs%\管理工具\磁盘管理,%WinDir%\system32\diskmgmt.msc
LINK %Programs%\管理工具\计算机管理,%WinDir%\system32\compmgmt.msc
LINK %Programs%\管理工具\设备管理,%WinDir%\system32\devmgmt.msc
LINK %Programs%\管理工具\服务,%WinDir%\system32\services.msc
LINK %Programs%\文件工具\Wim映像处理WimTool,%Windir%\WIMTOOL\wimtool.exe
PINT %Windir%\System32\notepad.exe,TaskBand
PINT %Windir%\REGEDIT.EXE,TaskBand
PINT %Windir%\WIMTOOL\wimtool.exe,TaskBand
//去掉快捷方式箭头
REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons\29=X:\WINDOWS\SYSTEM32\Empty.ico,0
//隐藏回收站
REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{645FF040-5081-101B-9F08-00AA002F954E}=#1
//开始菜单程序
REGI HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowRecordedTV=#2
REGI ~HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\{1A6FDBA2-F42D-4358-A798-B74D745926C5}=%%USERPROFILE%%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
//删除屏幕分辨率设置
REGI HKCR\DesktopBackground\Shell\Display\!
//删除控制面板多余项
REGI HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D9EF8727-CAC2-4e60-809E-86F80A666C91}\!
REGI HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}\!
REGI HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}\!
REGI HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{5ea4f148-308c-46d7-98a9-49041b1dd468}\!
//删除库
REGI HKCR\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\!
REGI HKLM\SOFTWARE\Classes\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\!
REGI HKCR\Folder\ShellEx\ContextMenuHandlers\Library Location\!
//删除家庭组,收藏夹,网络
REGI HKCR\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\!
REGI HKLM\SOFTWARE\Classes\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\!
REGI HKCR\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\!
REGI HKLM\SOFTWARE\Classes\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder\Attributes=#10940064
REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowNetPlaces=#0
TEXT
SHEL %SystemRoot%\explorer.exe
TEAM FILE %public%\desktop\desktop.ini|FILE %desktop%\desktop.ini|FILE X:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup|FILE X:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
DEVI %SystemRoot%\inf\basicdisplay.inf
DEVI %SystemRoot%\inf\BasicRender.inf
DEVI %SystemRoot%\inf\usb.inf
DEVI %SystemRoot%\inf\usbport.inf
EXEC @REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /VA /F
EXEC @REG DELETE HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /VA /F
REGI HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Audit\!
[ 本帖最后由 2012天下不败 于 2013-1-31 17:46 编辑 ] |
|