让ERD Commander 2007显示中文的方法(比较完美显示,用记事本打开文本文档要修改默认字体才能正确显示)。在VPC2007及本机刻盘试验通过^_^
本文是跟据网上汉化ERD 2005的方法(特别是易通写的教程)经试验修改综合出来写成备忘录。
程式汉化我不在行,亦没有必要,只要能正确显示中文即可(抢救文件时一片乱码可不是好事)。
记事本默认字体为为什么不是FIXEDSYS,就算选中FIXEDSYS也没法正确显示中文的问题没解决,但选为Simsun(宋体)就没问题,这要以后有空才去研究了。
修改txtsetup.sif 相同的替换,没有的添加即可
[nls]
AnsiCodepage = c_936.nls,936,c_1252.nls,1252
OemCodepage = c_936.nls,936,c_437.nls,437,c_850.nls,850
MacCodepage = c_10008.nls,10008
UnicodeCasetable = l_intl.nls,0804
OemHalFont = vgaoem.fon
DefaultLayout = 00000804
[FontListE]
"Simsun & NewSimsun (TrueType)" = SIMSUN.TTC
["Keyboard Layout"]
00000804 = "Chinese(US Keyboard)"
[Files.KeyboardLayout]
00000804 = KBDUS.DLL,2
[FileFlags]
app936.fon = 16
s8514fix.fon = 16
s8514oem.fon = 16
s8514sys.fon = 16
svgafix.fon = 16
svgasys.fon = 16
vga936.fon = 16
xjis.nls = 16
ksc.nls = 16
prc.nls = 16
prcp.nls = 16
big5.nls = 16
bopomofo.nls = 16
c_10008.nls = 16
然后查找:simpo.ttf = 1,,,,,,,,3,3,,1,22
在它下面加入:
simsun.ttc = 1,,,,,,,22,0,0
复制系统Fonts下的simsun.ttc、app936.fon、s8514fix.fon、s8514oem.fon、s8514sys.fon、svgafix.fon、vga936.fon 到i386的Fonts下,注意,有些文件为隐藏属性,可通过查找方式找出来再复制。
复制系统system32下的xjis.nls、ksc.nls、prc.nls、prcp.nls、big5.nls、bopomofo.nls 、c_10008.nls 到i386的system32下。
处理注册表文件
1、运行注册表编辑器,将光标定位在“HKEY_LOCAL_MACHINE”键,在“文件”菜单上选“加载配置单元”,选取I386\system32\config\software,命名为erd。
2、建立以下几个reg文件,用记事将-----------间内容保存,合并进注册表。
Fontlink.reg
------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\erd\Microsoft\Windows NT\CurrentVersion\FontLink]
"FontLinkControl"=dword:00004000
"FontLinkDefaultChar"=dword:00003000
[HKEY_LOCAL_MACHINE\erd\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"=hex(7):4d,00,53,00,47,00,4f,00,54,00,48,00,49,00,43,00,\
2e,00,54,00,54,00,43,00,2c,00,4d,00,53,00,20,00,55,00,49,00,20,00,47,00,6f,\
00,74,00,68,00,69,00,63,00,00,00,00,00
"SimSun"=hex(7):67,00,75,00,6c,00,69,00,6d,00,2e,00,74,00,74,00,63,00,2c,00,67,\
00,75,00,6c,00,69,00,6d,00,00,00,4d,00,53,00,47,00,4f,00,54,00,48,00,49,00,\
43,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,53,00,20,00,55,00,49,00,20,00,47,\
00,6f,00,74,00,68,00,69,00,63,00,00,00,6d,00,69,00,6e,00,67,00,6c,00,69,00,\
75,00,2e,00,74,00,74,00,63,00,2c,00,50,00,4d,00,69,00,6e,00,67,00,4c,00,69,\
00,55,00,00,00,00,00
"Tahoma"=hex(7):53,00,69,00,6d,00,53,00,75,00,6e,00,2e,00,54,00,54,00,43,00,2c,\
00,53,00,69,00,6d,00,53,00,75,00,6e,00,00,00,67,00,75,00,6c,00,69,00,6d,00,\
2e,00,74,00,74,00,63,00,2c,00,67,00,75,00,6c,00,69,00,6d,00,00,00,4d,00,53,\
00,47,00,4f,00,54,00,48,00,49,00,43,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,\
53,00,20,00,55,00,49,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,00,00,00,6d,\
00,69,00,6e,00,67,00,6c,00,69,00,75,00,2e,00,74,00,74,00,63,00,2c,00,50,00,\
4d,00,69,00,6e,00,67,00,4c,00,69,00,55,00,00,00,00,00
"Microsoft Sans Serif"=hex(7):53,00,69,00,6d,00,53,00,75,00,6e,00,2e,00,54,00,\
54,00,43,00,2c,00,53,00,69,00,6d,00,53,00,75,00,6e,00,00,00,67,00,75,00,6c,\
00,69,00,6d,00,2e,00,74,00,74,00,63,00,2c,00,67,00,75,00,6c,00,69,00,6d,00,\
00,00,4d,00,53,00,47,00,4f,00,54,00,48,00,49,00,43,00,2e,00,54,00,54,00,43,\
00,2c,00,4d,00,53,00,20,00,55,00,49,00,20,00,47,00,6f,00,74,00,68,00,69,00,\
63,00,00,00,6d,00,69,00,6e,00,67,00,6c,00,69,00,75,00,2e,00,74,00,74,00,63,\
00,2c,00,50,00,4d,00,69,00,6e,00,67,00,4c,00,69,00,55,00,00,00,00,00
------------------------------------------------------------------------------------------
erdFontMapper.reg
------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\erd\Microsoft\Windows NT\CurrentVersion\FontMapper]
"ARIAL"=dword:00000000
"COURIER"=dword:00008800
"COURIER NEW"=dword:00008000
"FIXEDSYS"=dword:00009000
"MS SANS SERIF"=dword:00001000
"MS SERIF"=dword:00005000
"SMALL FONTS"=dword:00000800
"SYMBOL"=dword:00004002
"SYMBOL1"=dword:0000a002
"TIMES NEW ROMAN"=dword:00004000
"WINGDINGS"=dword:00000002
"WINGDINGS2"=dword:00008002
"Simsun"=dword:00000086
"NewSimsun"=dword:00008086
"@NewSimsun"=dword:0000a086
"@Simsun"=dword:00002086
"DEFAULT"=dword:00000086
------------------------------------------------------------------------------------------
erdFonts.reg
------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\erd\Microsoft\Windows NT\CurrentVersion\Fonts]
"Roman (All res)"="ROMAN.FON"
"Script (All res)"="SCRIPT.FON"
"Modern (All res)"="MODERN.FON"
"Small Fonts (VGA res)"="SMALLE.FON"
"Arial (TrueType)"="ARIAL.TTF"
"Arial Bold (TrueType)"="ARIALBD.TTF"
"Arial Bold Italic (TrueType)"="ARIALBI.TTF"
"Arial Italic (TrueType)"="ARIALI.TTF"
"Courier New (TrueType)"="COUR.TTF"
"Courier New Bold (TrueType)"="COURBD.TTF"
"Courier New Bold Italic (TrueType)"="COURBI.TTF"
"Courier New Italic (TrueType)"="COURI.TTF"
"Lucida Console (TrueType)"="LUCON.TTF"
"Lucida Sans Unicode (TrueType)"="L_10646.TTF"
"Times New Roman (TrueType)"="TIMES.TTF"
"Times New Roman Bold (TrueType)"="TIMESBD.TTF"
"Times New Roman Bold Italic (TrueType)"="TIMESBI.TTF"
"Times New Roman Italic (TrueType)"="TIMESI.TTF"
"WingDings (TrueType)"="WINGDING.TTF"
"Symbol (TrueType)"="SYMBOL.TTF"
"Symbol 8,10,12,14,18,24 (VGA res)"="SYMBOLE.FON"
"Verdana (TrueType)"="verdana.TTF"
"Verdana Bold (TrueType)"="verdanab.TTF"
"Verdana Italic (TrueType)"="verdanai.TTF"
"Verdana Bold Italic (TrueType)"="verdanaz.TTF"
"Arial Black (TrueType)"="ariblk.TTF"
"Comic Sans MS (TrueType)"="comic.TTF"
"Comic Sans MS Bold (TrueType)"="comicbd.TTF"
"Impact (TrueType)"="impact.TTF"
"Georgia (TrueType)"="georgia.TTF"
"Georgia Bold (TrueType)"="georgiab.TTF"
"Georgia Bold Italic (TrueType)"="georgiaz.TTF"
"Georgia Italic (TrueType)"="georgiai.TTF"
"Franklin Gothic Medium (TrueType)"="Framd.TTF"
"Franklin Gothic Medium Italic (TrueType)"="Framdit.TTF"
"Palatino Linotype (TrueType)"="pala.TTF"
"Palatino Linotype Bold (TrueType)"="palab.TTF"
"Palatino Linotype Bold Italic (TrueType)"="palabi.TTF"
"Palatino Linotype Italic (TrueType)"="palai.TTF"
"Tahoma Bold (TrueType)"="tahomabd.TTF"
"Trebuchet MS (TrueType)"="trebuc.TTF"
"Trebuchet MS Bold (TrueType)"="trebucbd.TTF"
"Trebuchet MS Bold Italic (TrueType)"="trebucbi.TTF"
"Trebuchet MS Italic (TrueType)"="trebucit.TTF"
"Webdings (TrueType)"="webdings.TTF"
"Estrangelo Edessa (TrueType)"="estre.TTF"
"Gautami (TrueType)"="gautami.TTF"
"Latha (TrueType)"="latha.TTF"
"Mangal (TrueType)"="mangal.TTF"
"Mv Boli (TrueType)"="mvboli.TTF"
"Raavi (TrueType)"="raavi.TTF"
"Shruti (TrueType)"="shruti.TTF"
"Tunga (TrueType)"="tunga.TTF"
"Sylfaen (TrueType)"="sylfaen.TTF"
"WST_Czec (All res)"="wst_czec.FON"
"WST_Engl (All res)"="wst_engl.FON"
"WST_Fren (All res)"="wst_fren.FON"
"WST_Germ (All res)"="wst_germ.FON"
"WST_Ital (All res)"="wst_ital.FON"
"WST_Span (All res)"="wst_span.FON"
"WST_Swed (All res)"="wst_swed.FON"
"Tahoma (TrueType)"="tahoma.TTF"
"Courier 10,12,15 (VGA res)"="COURE.FON"
"MS Serif 8,10,12,14,18,24 (VGA res)"="SERIFE.FON"
"MS Sans Serif 8,10,12,14,18,24 (VGA res)"="SSERIFE.FON"
"Microsoft Sans Serif (TrueType)"="MICROSS.TTF"
"Simsun & NewSimsun&Simsun-PUA (TrueType)"="SIMSUN.TTC"
------------------------------------------------------------------------------------------
erdFontSubstitutes.reg
------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\erd\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial CE,238"="Arial,238"
"Arial CYR,204"="Arial,204"
"Arial Greek,161"="Arial,161"
"Arial TUR,162"="Arial,162"
"Courier New CE,238"="Courier New,238"
"Courier New CYR,204"="Courier New,204"
"Courier New Greek,161"="Courier New,161"
"Courier New TUR,162"="Courier New,162"
"Helv"="MS Sans Serif"
"Helvetica"="Arial"
"MS Shell Dlg 2"="Tahoma"
"Times"="Times New Roman"
"Times New Roman CE,238"="Times New Roman,238"
"Times New Roman CYR,204"="Times New Roman,204"
"Times New Roman Greek,161"="Times New Roman,161"
"Times New Roman TUR,162"="Times New Roman,162"
"Tms Rmn"="MS Serif"
"Arial Baltic,186"="Arial,186"
"Courier New Baltic,186"="Courier New,186"
"Times New Roman Baltic,186"="Times New Roman,186"
"MS Shell Dlg"="Microsoft Sans Serif"
------------------------------------------------------------------------------------------
erdGRE_Initialize.reg
------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\erd\Microsoft\Windows NT\CurrentVersion\GRE_Initialize]
"GUIFont.Facename"="Simsun"
"GUIFont.Height"=dword:00000009
"GUIFont.CharSet"=dword:00000086
"DisableRemoteFontBootCache"=dword:00000000
"FIXEDFON.FON"="svgafix.fon"
"FONTS.FON"="svgasys.fon"
"OEMFONT.FON"="vga936.fon"
------------------------------------------------------------------------------------------
3、将光标定位在加载的该注册表文件的项(erd),在“文件”菜单上选“卸载配置单元”,卸载配置单元。
添加软件,绿色软件直接添加处理快捷方式就可以了。
要修改注册表的
注册表文件主要有:SETUPREG.HIV、SOFTWARE、DEFAULT、SECURITY、SAM,常用的是前三个,除了 SETUPREG.HIV 位于 Winpe 的 %Systemroot%\System32 中以外,其余的都在 %Systemroot%\System32\config 中。
三个注册表文件分别对应 Windows 的注册表项:
I386\system32\setupreg.hiv 对应 HKEY_LOCAL_MACHINE\SYSTEM
I386\system32\config\default 对应 HKEY_USERS\.default
I386\system32\config\software 对应 HKEY_LOCAL_MACHINE\SOFTWARE
按上改字体文件方式修改相应项即可,reg文件可导出修改再合并
如FinalData,安装后导出FinalData.reg
------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\FinalData]
[HKEY_LOCAL_MACHINE\SOFTWARE\FinalData\FinalData]
[HKEY_LOCAL_MACHINE\SOFTWARE\FinalData\FinalData\2.0.1.1028]
"Company"="geckotao"
"Name"="geckotao"
"Serial"="NTC71415-8359-006828938143"
------------------------------------------------------------------------------
修改SOFTWARE变为erd(erd为“加载配置单元”的名称)保存合并即可。
------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\erd\FinalData]
[HKEY_LOCAL_MACHINE\erd\FinalData\FinalData]
[HKEY_LOCAL_MACHINE\erd\FinalData\FinalData\2.0.1.1028]
"Company"="geckotao"
"Name"="geckotao"
"Serial"="NTC71415-8359-006828938143"
------------------------------------------------------------------------------
修改桌面快捷方式请找出I386\system32\Dt.cfg用记事本打开
如何改看看下面例子跟着做
WinRAR.exe放在I386\Programs\WINRAR\下
shortcut
name WinRAR 在桌面显示名称
position 170, 10 在桌面显示位置
icon %SYSTEMROOT%\Programs\WINRAR\WinRAR.exe 在桌面显示图标路径
program %SYSTEMROOT%\Programs\WINRAR\WinRAR.exe 程式所在路径
Dt.cfg文件
--------------------------------------------------------------------------------
shortcut
name My Computer
position 10, 10
shortcut
name Network Neighborhood
position 90, 10
shortcut
name WinRAR
position 170, 10
icon %SYSTEMROOT%\Programs\WINRAR\WinRAR.exe
program %SYSTEMROOT%\Programs\WINRAR\WinRAR.exe
shortcut
name FinalData
position 250, 10
icon %SYSTEMROOT%\Programs\FinalData\FinalData.exe
program %SYSTEMROOT%\Programs\FinalData\FinalData.exe
shortcut
name GHOST32
position 330, 10
icon %SYSTEMROOT%\Programs\GHOST\GHOST32.EXE
program %SYSTEMROOT%\Programs\GHOST\GHOST32.EXE
---------------------------------------------------------------------------
文件关联文件为Fe.cfg
如加上[.rar %SYSTEMROOT%\Programs\WINRAR\WinRAR.exe]双击rar文件就会调用WinRAR.exe打开,其它同理。
Fe.cfg文件
---------------------------------------------------------------------------
.ini %SYSTEMROOT%\system32\notepad.exe
.txt %SYSTEMROOT%\system32\notepad.exe
.log %SYSTEMROOT%\system32\notepad.exe
.inf %SYSTEMROOT%\system32\notepad.exe
.xml %SYSTEMROOT%\system32\notepad.exe
.reg %SYSTEMROOT%\system32\ERDregedit.exe
.zip %SYSTEMROOT%\system32\explorer.exe
.cab %SYSTEMROOT%\system32\explorer.exe
.rar %SYSTEMROOT%\Programs\WINRAR\WinRAR.exe
--------------------------------------------------------------------------- |