;********************************************************************************
            授人之鱼,不如授人之渔!
;以下是我用nLite1.3RC处理WindowsXP SP2时的过程,我只记录一些特别的文件移除过程,
;其它的组件精简与否,各位自己决定!
;********************************************************************************
;首先开刀的是语言和输入法,
;我系统是用在办公方面的,所以繁、韩、日文偶尔会遇到,我一般都会保留!
;但是输入法我只保留智能ABC5.0和微软全拼5.0版,其它全干掉!

;_________________________________精简语言开始__________________________________

;系统语言只保留:
Simplisied Chinese       简体中文
Traditional Chinese       台湾繁体中文
Korean              韩文
Japanese             日文
;其它全精简掉!

;移除XP删除额外字体,这个列表也是网上搬下来的,移除后对系统无影响
ahronbd.ttf
andlso.ttf
angsa.ttf
angsab.ttf
angsai.ttf
angsau.ttf
angsaub.ttf
angsaui.ttf
angsauz.ttf
angsaz.ttf
artrbdo.ttf
artro.ttf
browa.ttf
browab.ttf
browai.ttf
browau.ttf
browaub.ttf
browaui.ttf
browauz.ttf
browaz.ttf
cordia.ttf
cordiab.ttf
cordiai.ttf
cordiau.ttf
cordiaub.ttf
cordiaui.ttf
cordiauz.ttf
cordiaz.ttf
david.ttf
davidbd.ttf
davidtr.ttf
estre.ttf
frank.ttf
gautami.ttf
kartika.ttf
latha.ttf
lvnm.ttf
lvnmbd.ttf
mangal.ttf
mriam.ttf
mriamc.ttf
mriamfx.ttf
mriamtr.ttf
nrkis.ttf
raavi.ttf
rod.ttf
rodtr.ttf
shruti.ttf
simpbdo.ttf
simpfxo.ttf
simpo.ttf
sylfaen.ttf
tradbdo.ttf
trado.ttf
tunga.ttf
upcdb.ttf
upcdbi.ttf
upcdi.ttf
upcdl.ttf
upceb.ttf
upcebi.ttf
upcei.ttf
upcel.ttf
upcfb.ttf
upcfbi.ttf
upcfi.ttf
upcfl.ttf
upcib.ttf
upcibi.ttf
upcii.ttf
upcil.ttf
upcjb.ttf
upcjbi.ttf
upcji.ttf
upcjl.ttf
upckb.ttf
upckbi.ttf
upcki.ttf
upckl.ttf
upclb.ttf
upclbi.ttf
upcli.ttf
upcll.ttf
vrinda.ttf
;移除LANG目录一些无用的文件
VGA950.FON
VGA949.FON
VGA932.FON
S8514SYS.FON
S8514OEM.FON
S8514FIX.FON
MSMINCHO.TTC
JVGASYS.FON
JVGAFIX.FON
JSMALLF.FON
JSMALLE.FON
J8514SYS.FON
J8514OEM.FON
J8514FIX.FON
HVGASYS.FON
HVGAFIX.FON
H8514SYS.FON
H8514OEM.FON
H8514FIX.FON
CVGASYS.FON
CVGAFIX.FON
C8514SYS.FON
C8514OEM.FON
C8514FIX.FON
BATANG.TTC
APP950.FON
APP949.FON
APP932.FON
msir3jp.lex
korwbrkr.lex
chsbrkr.dll
chtbrkr.dll
msir3jp.dll
korwbrkr.dll
ftlx0411.dll
noise.cht
noise.jpn
noise.kor
;删除无用的代码页
wbcache.nld
noise.nld
wbdbase.nld
c_10006.nls
c_10007.nls
c_10010.nls
c_10017.nls
c_10021.nls
c_10079.nls
c_10081.nls
c_10082.nls
c_1026.nls
c_1047.nls
c_1142.nls
c_1143.nls
c_1149.nls
c_1250.nls
c_1251.nls
c_1254.nls
c_1255.nls
c_1256.nls
c_1257.nls
c_1258.nls
c_20107.nls
c_20108.nls
c_20277.nls
c_20278.nls
c_20420.nls
c_20423.nls
c_20424.nls
c_10005.nls
c_20880.nls
c_20905.nls
c_20924.nls
c_21025.nls
c_21866.nls
c_28592.nls
c_28593.nls
c_28594.nls
c_28595.nls
c_28596.nls
c_28597.nls
c_28598.nls
c_28599.nls
c_28603.nls
c_28605.nls
c_708.nls
c_720.nls
c_737.nls
c_775.nls
c_850.nls
c_852.nls
c_855.nls
c_857.nls
c_858.nls
c_861.nls
c_862.nls
c_864.nls
c_865.nls
c_874.nls
c_10004.nls
c_037.nls
c_20871.nls

;_________________________________精简输入法开始__________________________________
;键盘全部精简掉
;一、**********************简体中文输入法**********************
;[IME.LGFiles.Install.CHS]此处只保留了微软全拼输入法和智能ABC5.0版
WINGB.IME
;WINPY.IME
;WINPY.MB
WINSP.IME
WINSP.MB
WINZM.IME
WINZM.MB

;[CHS_PYIME_SYSTEM]默认输入法的主文件
PINTLGNT.IME
PINTLPAD.HLP
PINTLPAE.HLP

;[CHS_PYIME]微软拼音输入法的所有文件
PINTLPHR.EXE
PMIGRATE.DLL
IMSCINST.EXE
PINTLGC.IMD
PINTLGD.IMD
PINTLGDX.IMD
PINTLGI.IMD
PINTLGIX.IMD
PINTLGL.IMD
PINTLGNE.CHM
PINTLGNT.CHM
PINTLGR.IMD
PINTLGS.IMD

;[CHS_PYIME_HELP]微软拼音帮助文件
PINTLPAD.CHM
PINTLPAE.CHM

;[CHS_PYIME_APPLETS]微软拼音的附加文件
PINTLCSD.DIC
PINTLCSK.DIC
PINTLCSA.DLL
PINTLCSD.DLL

;[CHS_PYIME_SHARED_RS]微软拼音的共享文件
padrs804.dll

;[CHS_IME_HELP]内码、全拼、双拼、郑码输入法帮助文件
wingb.chm
winime.chm
winpy.chm
winsp.chm
winzm.chm

;二、**********************繁体输入法************************
;[IME.LGFiles.Install.CHT]所有常用繁体中文输入法 所需要的文件
a15.tbl
a234.tbl
acode.tbl
msdayi.tbl
dayiptr.tbl
dayiphr.tbl
phon.tbl
phoncode.tbl
phonptr.tbl
lcptr.tbl
lcphrase.tbl
chajei.ime
phon.ime
dayi.ime
romanime.ime
uniime.dll
winime.ime
unicdime.ime
miniime.tpl
quick.ime
winar30.ime
arphr.tbl
arptr.tbl
array30.tab
arrayhw.tab

;[CHT_PHIME_SYSTEM]默认输入法的主文件
TINTLGNT.IME

;[CHT_PHIME]微软拼音输入法的所有文件
PHHLP.CHM
PHHLP.CNT
PHHLP.HLP
PHHLPEN.CHM
PHHLPEN.CNT
PHHLPEN.HLP
TINTLGC.IMD
TINTLGL.IMD
TINTLGS.IMD
TINTLGD_.IMD
TINTLPHR.EXE
TINTSETP.EXE
TMIGRATE.DLL

;[CHT_PHIME_APPLETS]微软拼音的附加文件
CHTAPT.CHM
CHTAPT.HLP
CHTAPTEN.HLP
CHTPADEN.CHM
CHTMBX.DLL
CHTSKDIC.DIC
CHTSKDIC.DLL
CHTSKF.DLL
HWXCHT.DLL

;[CHT_PHIME_SHARED_RS]仓吉输入法的主文件
PADRS404.DLL

;[CHT_CJIME_SYSTEM]仓吉输入法的主文件
CINTLGNT.IME

;[CHT_CJIME]仓吉输入法的所有文件
CINTIME.DLL
CINTLGB.IMD
CINTLGD.IMD
CINTLGL.IMD
CINTLGS.IMD
CINTLGU.IMD
CINTLGIE.IMD
CINTLGSI.IMD
CINTLGUC.IMD
CINTLGNT.CHM
CINTLGNT.CNT
CINTLGNT.HLP
CJHLPEN.CHM
CJHLPEN.CNT
CJHLPEN.HLP
CINTSETP.EXE

;三、***********************日文输入法***********************
;[JPN_IME];日文输入法文件
cplexe.exe
imjpcic.dll
imjpcus.dll
imjpdct.dll
imjpdct.exe
imjprw.exe
imjpuex.exe
imjputy.exe
imjputyc.dll
imjpinst.exe
imjpinst.ini
imjpmig.exe
imjpdsvr.exe
imjpdadm.exe

;[JPN_IME_DICTS]
imjpch.dic
imjpcd.dic
imjpln.dic
imjpnm.dic
imjpsb.dic
imjpst.dic
imjptk.dic
imjpzp.dic
imjpgn.grm

;[JPN_IME_APPLETS]日文输入法附加文件
hwxjpn.dll
imskdic.dll
imskf.dll
multibox.dll
softkey.dll
voicepad.dll
voicesub.dll

;[JPN_IME_SYSTEM_INSTALL]日文输入法主安装文件
imjp81.ime
imjp81k.dll
kbdjpn.dll
kbd101.dll
kbdax2.dll
kbd106.dll
kbd106n.dll
kbdibm02.dll
f3ahvoas.dll
kbdnec.dll
kbdnecNT.dll
kbdnec95.dll
kbdnecAT.dll
kbdlk41a.dll
kbdlk41j.dll

;[JPN_IME_HELP]日文输入法帮助文件
jpnpaden.chm
imjpcl.chm
imjpcl.hlp
imjpcle.chm
imjpcle.hlp
imjpdt.chm
imjpdte.chm
imjppd.chm
imjpsm.chm
imjpsm.hlp
imjpsme.chm
imjpsme.hlp
imjptu.chm
voiceeng.chm
voicejp.chm

;[EA_IME_SHARED]日文输入法共享文件
imlang.dll
imepadsv.exe
imepadsm.dll
imepaden.hlp

;[JPN_IME_SHARED_RC]日文输入法主文件
padrs411.dll

;四、***********************韩文输入法***********************
;[KOR_IME]韩文输入法文件
imekrcic.dll
imkrinst.exe
imkrinst.ini
imekrmig.exe

;[KOR_IME_HELP]韩文输入法帮助文件
imkr61.chm
imkren61.chm
korpaden.chm
impdko61.chm
imkr61.hlp
imkren61.hlp

;[KOR_IME_DICTS]
hanjadic.dll
hanja.lex
imekr.lex

;[KOR_IME_APPLET]韩文输入法附加文件
imekrmbx.dll
hwxkor.dll

;[KOR_IME_SYSTEM_INSTALL]韩文输入法主安装文件
imekr61.ime
kbd101a.dll
kbdkor.dll
kbd101b.dll
kbd101c.dll
kbd103.dll

;[KOR_IME_SHARED_RC]韩文输入法共享文件
padrs412.dll

;五、移除四个多余IME目录下的文件和多余输入法多余文件
mscandui.dll
sptip.dll
softkbd.dll
spgrmr.dll
agt0411.dll
agt0411.hlp
agt0412.dll
agt0412.hlp
agt0404.dll
agt0404.hlp
agt0804.dll
agt0804.hlp

;_________________________________精简输入法结束__________________________________
;_________________________________下面是一些后处理__________________________________

;六、精简输入法后处理,避免输入法管理器显示空白设置!
;1、Nlite完成后,LANG目录删掉:
SIMSUN.TT_
SIMHEI.TT_
winpy.im_
winpy.mb_
svgafix.fo_
svgasys.fo_
app936.fo_
vga936.fo_
删掉的文件,在I386同时存在,所以留着是占用空间!
只保留三个文件msgothic.tt_、gulim.tt_、mingliu.tt_即可支持繁、韩、日文网页和游戏!

; 2、打开intl.inf注释或删掉
[SourceDisksFiles]
;mscreate.dir = 7,,,,,,,0,0
msgothic.ttc = 7,,,,,,,0,0
;imkrinst.inf = 7,,,,,,,0,0
gulim.ttc = 7,,,,,,,0,0
mingliu.ttc= 7,,,,,,,0,0
;simsun.ttc= 7,,,,,,,0,0
;simhei.ttf= 7,,,,,,,0,0
;svgafix.fon= 7,,,,,,,0,0
;svgasys.fon= 7,,,,,,,0,0
;app936.fon= 7,,,,,,,0,0
;vga936.fon= 7,,,,,,,0,0
;winpy.ime = 107,,,,,,,0,0
;winpy.mb= 7,,,,,,,0,0
只保留三行,如果还想进一步精简此文件,可以把多余的[XXXXX]和空格也删掉!

;2、打开Hivesys.inf,处理精简输入法文件后,留下来的注册表信息,注释或删掉:
;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0010409″,”Layout File”,0x00000002,”KBDDV.DLL”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0010409″,”Layout Id”,0x00000002,”0002″
;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0010409″,”Layout Text”,0x00000002,”%US_DVORAK%”

;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0020409″,”Layout File”,0x00000002,”KBDUSX.DLL”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0020409″,”Layout Id”,0x00000002,”0001″
;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0020409″,”Layout Text”,0x00000002,”%US_INTERNATIONAL%”

;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0030409″,”Layout File”,0x00000002,”KBDUSL.DLL”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0030409″,”Layout Id”,0x00000002,”001A”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0030409″,”Layout Text”,0x00000002,”%US_DVORAK_FOR_LEFT_HAND%”

;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0040409″,”Layout File”,0x00000002,”KBDUSR.DLL”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0040409″,”Layout Id”,0x00000002,”001B”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard Layouts0040409″,”Layout Text”,0x00000002,”%US_DVORAK_FOR_RIGHT_HAND%”

;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE0020804″,”Layout File”,0x00000000,”kbdus.dll”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE0020804″,”Layout Text”,0x00000000,”%KLT_74%”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE0020804″,”IME File”,0x00000000,”winsp.ime”

;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE0030804″,”Layout File”,0x00000000,”kbdus.dll”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE0030804″,”Layout Text”,0x00000000,”%KLT_75%”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE0030804″,”IME File”,0x00000000,”winzm.ime”

;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE0050804″,”Layout File”,0x00000000,”kbdus.dll”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE0050804″,”Layout Text”,0x00000000,”%KLT_77%”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE0050804″,”IME File”,0x00000000,”wingb.ime”

;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE00E0804″,”Layout File”,0x00000000,”kbdus.dll”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE00E0804″,”Layout Text”,0x00000000,”%KLT_91%”
;HKLM,”SYSTEMCurrentControlSetControlKeyboard LayoutsE00E0804″,”IME File”,0x00000000,”pintlgnt.ime”

;3、预加载输入法,打开Hivedef.inf,查找Preload,把它修改为:
;美式中文键盘
HKCU,”Keyboard LayoutPreload”,”1″,0x00000002,”00000804″
;智能ABC5.0版 (智能ABC5.22版的代码为E0210804)
HKCU,”Keyboard LayoutPreload”,”2″,0x00000002,”E0040804″
;全拼输入法
HKCU,”Keyboard LayoutPreload”,”3″,0x00000002,”E0010804″
;其它的删掉!

; 4、处理精简输入法后留下的空白的IME目录

删掉TXTSETUP.SIF中的:
127 = ime
130 = ime
132 = imeimejp
133 = System32IMEPINTLGNT
134 = System32IMECINTLGNT
135 = System32IMETINTLGNT
136 = IMECHTIMEApplets
137 = imeimejp98
138 = imeimejpapplets
204 = System32IMEPINTLGNT
205 = IMECHSIMEAPPLETS
220 = IMESHARED
221 = IMESHAREDRES

删除后就不会在windows以及system32下生成ime空白目录

;七、最少文件实现Windows,DOS,光盘安装三种安装方式,

;前提是nLite保留 (操作系统选项-手动安装和升级) 把下面列表添加到nlite移除框
OSC.CAB
SETUPACC.TXT
WINNT32.HLP
WINNT32.MSI
WINNT32A.DLL
WINNTBBA.DLL
WSDU.DLL
dwup.inf
iconlib.dll
lnkstub.exe
mdmssys.inf
migisol.exe
migpwd.exe
oschoice.exe
reminst.inf
rinorprt.sif
ristndrd.sif
setupldr.exe
startrom.com
startrom.n12
w95upgnt.dll
welcome.osc
miglibnt.dll

;nlite完成后,处理DOS升级安装的文件目录,把下面另存DOS.CMD 放在与I386同级目录

echo 处理DOS升级安装的文件目录
cd i386
md COMPDATA-1
md WINNTUPG-1
xcopy   COMPDATADRVMAIN.INF COMPDATA-1
xcopy   COMPDATANTCOMPAT.INF COMPDATA-1
xcopy   WINNTUPGNETMAP.INF WINNTUPG-1
xcopy   WINNTUPGNETUPGRD.DLL WINNTUPG-1

rd /q /s WIN9XMIG
rd /q /s WIN9XUPG
rd /q /s WINNTUPG
rd /q /s COMPDATA
rd /q /s DRW

ren COMPDATA-1 COMPDATA
ren WINNTUPG-1 WINNTUPG
exit

;八、其它额外精简

;1.删除四个OEMBIOS文件,为光盘省下12M空间!
oembios.bin
oembios.cat
oembios.dat
oembios.sig
;要使用替换破解过的WINLOGON.EXE替换原文件!
;还要添加一注册表条目解决后续问题,在HIVEDEF.INF的[AddReg]字段 加入:
HKLM,”SOFTWAREMicrosoftWindows NTCurrentVersionWPAEvents”,”OOBETimer”,0x1,ff,d5,71,d6,8b,6a,8d,6f,d5,33,93,fd

;2.既精简掉搜索助手,又不丧失搜索功能!
;前提是nLite保留 (操作系统选项-搜索助手),移除:
msgr3en.dll
nls302en.lex
courtney.acs
earl.acs
rover.acs
;修改SRCHASST.INF
;删掉msgr3en.dll,,,32、nls30 2en.lex,,,32、courtney.acs,,,32、earl.acs,,,32、rover.acs,,,32这五行再压缩回去.

;3.为了避免安装在T13时出现”无法加截配置信息ICFGNT.DLL文件”,把(网络组件-Internet 连接向导)也精简掉喔!

;4.为了避免安装界面文字丢失问题,(修改intl.inf找到SIMSUN.TTC,,,65536 这一行   删除即可)

;5.删除空白屏保
scrnsave.scr

;6.移除安全编录文件
SP2.CAT

________________________________________未完待续_________________________________________

2007-4-16
by:bida
QQ:89113144
http://www.zmn120.net

发表评论

电子邮件地址不会被公开。 必填项已用*标注