|
主要是如何把它精简
牛人们做的都是几十兆,用Bart PE Builder做出来的就是300兆
而且启动还很慢
尤其是在检测即插即用设备和注册WMI时
小人不才,补充一下
在插件XPE 1.0.6(以下简称xpeplug)的文件夹里,oeminfo.ini和oemlogo.bmp就是工厂信息,可以自己更改
还有一个名为z_xpe-custom.inf.sample的文件,
把它更名为z_xpe-custom.inf,就会在插件列表里面出现z_xpe-custom插件,
他是xpeplug的自定义设置插件
有以下几项值得关注
[SetValue]
"txtsetup.sif","SetupData","loaderprompt","""Starting Windows XPE [The Horse Power]..."""
其中Starting Windows XPE [The Horse Power]...就是出现在启动时屏幕下方的白字
; Screen Resoultion 800x600 16bpp
;0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.BitsPerPel",0x010
;0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.XResolution",0x320
;0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.YResolution",0x258
; Screen Resolution 800x600 32bpp
;0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.BitsPerPel",0x020
;0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.XResolution",0x320
;0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.YResolution",0x258
; Screen Resoultion 1024x768 16bpp
;0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.BitsPerPel",0x010
;0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.XResolution",0x400
;0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.YResolution",0x300
; Screen Resoultion 1024x768 32bpp
0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.BitsPerPel",0x020
0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.XResolution",0x400
0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.YResolution",0x300
是默认的分辨率,注释掉不用的,启用使用的就好了
0x1,"ControlSet001\Control\Nls\Language","InstallLanguage","0409"
0x1,"ControlSet001\Control\Nls\Language","Default","0409"
0x1,"ControlSet001\Control\Nls\Locale",,"00000409"
是本地化设置,0409只的是英语美国,汉语中国是0804
; Set Default Computer Name
0x1,"ControlSet001\Control\ComputerName\ComputerName","ComputerName","WinXPE"
0x1,"ControlSet001\Control\Session Manager\Environment","ComputerName","WinXPE"
[Software.AddReg]
; Owner informations
0x1,"Microsoft\Windows NT\CurrentVersion","RegisteredOrganization","Horse Power"
0x1,"Microsoft\Windows NT\CurrentVersion","RegisteredOwner","XPE"
是用户信息
; Start Menu Root
;0x0,"Sherpya\XPEinit\StartMenu"
;0x2,"Sherpya\XPEinit\StartMenu","Internet Explorer","%SystemRoot%\iexplore.exe"
是经典开始菜单最上方的项目,删掉“;”并修改就可以启用
; Explorer Settings
0x4,"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","TaskbarSizeMove",0x1
将值改为0x0就是锁定任务栏
; TaskBar on Top - Autohide
0x3,"Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2","Settings",\
28,00,00,00,ff,ff,ff,ff,03,00,00,00,01,00,00,00,3c,00,00,00,1e,00,00,00,fe,\
ff,ff,ff,fe,ff,ff,ff,02,04,00,00,1c,00,00,00
; TaskBar on Bottom - Autohide
;0x3,"Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2","Settings",\
; 28,00,00,00,ff,ff,ff,ff,03,00,00,00,03,00,00,00,3c,00,00,00,1e,00,00,00,fe,\
; ff,ff,ff,e4,02,00,00,02,04,00,00,02,03,00,00
; TaskBar on Left - Autohide
;0x3,"Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2","Settings",\
; 28,00,00,00,ff,ff,ff,ff,03,00,00,00,00,00,00,00,B2,00,00,00,28,00,00,00,00,\
; 00,00,00,00,00,00,00,B2,00,00,00,00,04,00,00
; TaskBar on Right - No AutoHide
;0x3,"Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2","Settings",\
; 28,00,00,00,ff,ff,ff,ff,02,00,00,00,02,00,00,00,4e,00,00,00,1e,00,00,00,b4,\
; 03,00,00,fe,ff,ff,ff,02,04,00,00,02,03,00,00
; TaskBar on Bottom - No Autohide
;0x3,"Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2","Settings",\
; 28,00,00,00,ff,ff,ff,ff,02,00,00,00,03,00,00,00,3f,00,00,00,1e,00,00,00,fe,\
; ff,ff,ff,e4,02,00,00,02,04,00,00,02,03,00,00
是任务栏的位置和是否隐藏
在xpeplug里面好像也可以更换桌面背景
不过直接把pebuilder根目录的bartpe.bmp换了就可以了
很多应用程序的插件都是为nu2menu做的
所以Sherpya也编写了转换插件
名字叫nu2xpe-1.5.cab,有点大,不传了
Forestfairy中校提供了全新的LAYOUT.INF文件用于精简BartPE做出来的东西
加上全部的xpeplug可以精简到200兆或更小
但是我没能做出拥有Explorer外壳的pe …… (我超级菜)
所以
其实
还不如直接用伟人的作品拼装呢
Forestfairy中校也提供了工具,名为PE Studio
http://shop.mgcgame.com/viewthre ... &extra=page%3D7
结合老毛桃版主以及其它个伟人的作品,还有xpset,pecmd等等nb的工具和软件程序
嗯
bart可以 …… 先放在一边了
[ 本帖最后由 chiyouhen 于 2007-3-5 02:32 PM 编辑 ] |
|