也来玩下启动栏宽度定义及排列顺序,以小马PE作测试:
定义排列顺序方法:原本是按文件名顺序自动排列,最左边是按升序排列第一的文件,如想把显示桌面排最右边只要它是排序的最后就可以了,大家只要注意更改文件名使之按自己的要求排列。
快速启动栏宽度(修改注册表DEFAULT文件):
1、修改PE配置文件,去掉所有放到快速启动栏的项,包括pecmd.ini里的|CALL $SHELL32.DLL,DllInstall,#1,U
2、启动PE,手动调整宽度后,里面不要放一个图标,点开始、关机、取消。导出reg
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]
3、加载配置单元DEFAULT到!syspe,修改[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]为[HKEY_LOCAL_MACHINE\!syspe\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop],删除reg中其它的部分,只保留"Taskbar"部份,双击reg导入,卸载配置单元,替换及恢复其它文件即可。
注册表文件(修改红色部分3个为52,4个为69,5个为80,6个为99,7个为ae,8个为c5)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\!syspe\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]
"Taskbar"=hex:0c,00,00,00,08,00,00,00,02,00,00,00,00,00,00,00,b0,e2,2b,d8,64,\
57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,11,00,00,1a,00,00,00,01,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,00,00,\
00,c0,00,00,00,00,00,00,46,81,00,00,00,30,00,00,00,10,99,db,ce,d3,6b,ca,01,\
b6,44,00,d6,d3,6b,ca,01,10,99,db,ce,d3,6b,ca,01,00,00,00,00,00,00,00,00,01,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,01,14,00,1f,50,e0,4f,d0,20,\
ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,2f,58,3a,5c,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,5c,00,31,00,00,00,00,00,77,3b,80,03,30,\
00,44,4f,43,55,4d,45,7e,31,00,00,44,00,03,00,04,00,ef,be,77,3b,80,03,77,3b,\
85,03,14,00,00,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,74,00,73,00,20,\
00,61,00,6e,00,64,00,20,00,53,00,65,00,74,00,74,00,69,00,6e,00,67,00,73,00,\
00,00,18,00,48,00,31,00,00,00,00,00,77,3b,80,03,30,00,44,45,46,41,55,4c,7e,\
31,00,00,30,00,03,00,04,00,ef,be,77,3b,80,03,77,3b,85,03,14,00,00,00,44,00,\
65,00,66,00,61,00,75,00,6c,00,74,00,20,00,55,00,73,00,65,00,72,00,00,00,18,\
00,50,00,31,00,00,00,00,00,77,3b,80,03,30,00,41,50,50,4c,49,43,7e,31,00,00,\
38,00,03,00,04,00,ef,be,77,3b,80,03,77,3b,80,03,14,00,00,00,41,00,70,00,70,\
00,6c,00,69,00,63,00,61,00,74,00,69,00,6f,00,6e,00,20,00,44,00,61,00,74,00,\
61,00,00,00,18,00,42,00,31,00,00,00,00,00,77,2f,88,7b,10,00,4d,49,43,52,4f,\
53,7e,31,00,00,2a,00,03,00,04,00,ef,be,77,2f,88,7b,77,2f,00,38,14,00,00,00,\
4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,00,00,18,00,52,00,31,\
00,00,00,00,00,77,2f,88,7b,10,00,49,4e,54,45,52,4e,7e,31,00,00,3a,00,03,00,\
04,00,ef,be,77,2f,88,7b,77,2f,00,38,14,00,00,00,49,00,6e,00,74,00,65,00,72,\
00,6e,00,65,00,74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,\
00,00,18,00,48,00,31,00,00,00,00,00,77,2f,88,7b,11,00,51,55,49,43,4b,4c,7e,\
31,00,00,30,00,03,00,04,00,ef,be,77,2f,88,7b,77,2f,00,38,14,00,00,00,51,00,\
75,00,69,00,63,00,6b,00,20,00,4c,00,61,00,75,00,6e,00,63,00,68,00,00,00,18,\
00,00,00,10,00,00,00,05,00,00,a0,1a,00,00,00,21,01,00,00,00,00,00,00,08,00,\
00,00,02,00,00,00,0c,00,00,00,01,00,00,00,00,00,00,00,52,00,00,00,60,07,00,\
00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,\
01,00,00,00,01,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,6a,\
02,00,00,60,0d,00,00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,\
00,00,00,00,00,00,01,00,00,00
关于内核非ram启动需修改的地方
为iso加入启动引导,在wxpe下加入NTDETECT.COM与SETUPLDR.BIN。
txtsetup.sif文件修改:
[Version]
signature="$WindowsNT$"
ClassGUID={00000000-0000-0000-0000-000000000000}
[SourceDisksNames]
1="Windows 2003",\WXPE\TXTSETUP.SIF,,\
100="Windows 2003 Service Pack 2",\WXPE\TXTSETUP.SIF,,\,1
[WinntDirectories]
1="\"
2=system32
3=system32\config
4=system32\drivers
22=Fonts
124=WinSxS
125=WinSxS\Manifests
[SetupData]
OsLoadOptions="/fastdetect/minint"
ForceScsi=1
ForceDiskClass=1
ForceCDRom=1
loaderprompt="[1;37m Starting SuperMicro Windows PE..."
[SourceDisksFiles]
c_936.nls=100,,,,,,,2,0,0,,1,2
kdcom.dll=100,,,,,,,2,0,0,,1,2
ntdll.dll=100,,,,,,,2,0,0,,1,2
ntoskrnl.exe=100,,,,,,,2,0,0,,1,2
setupreg.hiv=100,,,,,,,2,0,0,,1,2
vgaoem.fon=100,,,,,,,2,0,0,,1,2
红色部份是要加入的,很多pe里面在[SourceDisksFiles]段把system32下面所有文件(不包括drivers里的文件)都加进来了,其实如果是ram启动,不需要加就可启动,不是ram启动,只要加上面6个文件即可。
[ 本帖最后由 xiao75918 于 2009-11-28 09:12 编辑 ] |