在基于XPSP3的PE中使用XP标准主题,需要做以下三件事:
第一需要主题文件\WINDOWS\Resources,放到I386\Resources(论坛的PE大都使用WXPE做为系统目录,那就是WXPE\Resources)
第二需要七个系统文件:services.exe, sxs.dll, umpnpmgr.dll, winlogon、shsvcs.dll, uxtheme.dll、msgina.dll(因为是系统文件,所以需要放到system32目录),其中services.exe, sxs.dll, umpnpmgr.dll, winlogon四个文件需要打补丁。
打补丁的方法:
(一)winlogon.exe将十六进制串“AF46FFFF85C075126808040000FF1550”替换为“AF46FFFF85C075276808040000FF1550”,
将二进制串“56E8151D000056FF7614E8FC360000E9”替换为“56E8151D000056E8BC91FFFF360000E9”
(二)services.exe、sxs.dll、umpnpmgr.dll将十六进制串“530079007300740065006D005300650074007500700049006E00500072006F00670072006500730073”替换为“530079007300740065006D005300650074007500700049006E00500072006F00670072006500730074”
第三需要添加注册表项目
themes.reg
————————————————————————————
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager]
"ThemeActive"="1"
"LoadedBefore"="1"
"LastUserLangID"="2052"
"DllName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,72,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,73,00,5c,\
00,54,00,68,00,65,00,6d,00,65,00,73,00,5c,00,6c,00,75,00,6e,00,61,00,5c,00,\
6c,00,75,00,6e,00,61,00,2e,00,6d,00,73,00,73,00,74,00,79,00,6c,00,65,00,73,\
00,00,00
"ColorName"="NormalColor"
"SizeName"="NormalSize"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes]
"InstallTheme"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,52,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,73,00,\
5c,00,74,00,68,00,65,00,6d,00,65,00,73,00,5c,00,4c,00,75,00,6e,00,61,00,2e,\
00,74,00,68,00,65,00,6d,00,65,00,00,00
"InstallVisualStyle"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
00,6f,00,74,00,25,00,5c,00,52,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,\
73,00,5c,00,74,00,68,00,65,00,6d,00,65,00,73,00,5c,00,4c,00,75,00,6e,00,61,\
00,5c,00,4c,00,75,00,6e,00,61,00,2e,00,6d,00,73,00,73,00,74,00,79,00,6c,00,\
65,00,73,00,00,00
"InstallVisualStyleColor"="NormalColor"
"InstallVisualStyleSize"="NormalSize"
"SetupVersion"="7"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\DefaultVisualStyleOff]
"InstallVisualStyle"=hex(2):00,00
"InstallVisualStyleColor"="Windows 标准"
"InstallVisualStyleSize"="正常"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\DefaultVisualStyleOn]
"InstallVisualStyle"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
00,6f,00,74,00,25,00,5c,00,52,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,\
73,00,5c,00,74,00,68,00,65,00,6d,00,65,00,73,00,5c,00,4c,00,75,00,6e,00,61,\
00,5c,00,4c,00,75,00,6e,00,61,00,2e,00,6d,00,73,00,73,00,74,00,79,00,6c,00,\
65,00,73,00,00,00
"InstallVisualStyleColor"="NormalColor"
"InstallVisualStyleSize"="NormalSize"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\LastTheme]
"Wallpaper"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,4d,00,79,00,20,00,44,00,6f,00,63,00,75,00,6d,00,65,\
00,6e,00,74,00,73,00,5c,00,4d,00,79,00,20,00,50,00,69,00,63,00,74,00,75,00,\
72,00,65,00,73,00,5c,00,57,00,61,00,6c,00,6c,00,70,00,61,00,70,00,65,00,72,\
00,2e,00,62,00,6d,00,70,00,00,00
"ThemeFile"=hex(2):00,00
"DisplayName of Modified"="Windows XP (更改)"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ThemeManager]
"LoadedBefore"="1"
"LMVersion"="103"
"LMOverRide"="1"
"ThemeActive"="1"
"DllName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,52,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,73,00,5c,\
00,74,00,68,00,65,00,6d,00,65,00,73,00,5c,00,4c,00,75,00,6e,00,61,00,5c,00,\
4c,00,75,00,6e,00,61,00,2e,00,6d,00,73,00,73,00,74,00,79,00,6c,00,65,00,73,\
00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes]
"Drop Shadow"="FALSE"
"Flat Menus"="FALSE"
"SetupVersion"="7"
"InstallTheme"="%ResourceDir%\\themes\\Luna.theme"
"InstallVisualStyle"="%SystemRoot%\\Resources\\themes\\Luna\\Luna.msstyles"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\DownloadSites\100]
"DisplayName"="@themeui.dll,-2015"
"URL"="http://go.microsoft.com/fwlink/?LinkId=488"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\VisualStyleDirs]
"1"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,\
25,00,5c,00,52,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,73,00,5c,00,54,\
00,68,00,65,00,6d,00,65,00,73,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Themes]
"Type"=dword:00000020
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
6b,00,20,00,6e,00,65,00,74,00,73,00,76,00,63,00,73,00,00,00
"DisplayName"="Themes"
"Group"="UIGroup"
"ObjectName"="LocalSystem"
"FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,57,00,53,\
00,01,00,00,00,60,ea,00,00,01,00,00,00,60,ea,00,00,00,00,00,00,00,00,00,00
"Description"="为用户提供使用主题管理的经验。"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Themes\Parameters]
"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
73,00,68,00,73,00,76,00,63,00,73,00,2e,00,64,00,6c,00,6c,00,00,00
"ServiceMain"="ThemeServiceMain"
[HKEY_LOCAL_MACHINE\SYSTEM\Setup]
"SystemSetupInProgrest"=dword:00000000
__________________________________
PE的引导程序可以是XPELogon.exe,可以是ReatogoLogon.exe,我想也可以是论坛的PECMD.exe。个人感觉在PE中使用XP主题跟使用什么引导程序无关。
以上参照了boot-land论坛上的JFX发布了关于“XP styles in PE”的BartPE+XPE插件,本人测试通过。
相关网址:http://www.boot-land.net/forums/index.php?showtopic=7136&st=40#
[ 本帖最后由 liuhj 于 2009-7-29 01:26 编辑 ] |