nLite 精简一步一步详细教程 - Windows精简与定制技术 - 系统评测 - 天空竞技场
发新话题
打印

[转帖] nLite 精简一步一步详细教程

;[CHS_Fonts]
simsun.ttc,,,65536

;提示:查找[IME.LGReg.Install.
;[IME.LGReg.Install.Japanese]
HKLM,"SYSTEM\CurrentControlSet\Services\i8042prt\Parameters","LayerDriver JPN",0x00000002,kbd101.dll
HKLM,"Software\Microsoft\Windows\CurrentVersion\IntlRun","IMJPINST.EXE(INTL)",, "%10%\IME\IMJP8_1\IMJPINST.EXE"
HKLM,"Software\Microsoft\IMEJP\8.1\directories",DictionaryPath,0x00000002,"%WinDir%\IME\IMJP8_1\Dicts"
HKLM,"Software\Microsoft\IMEJP\8.1\directories",ModulePath,0x00000002 ,"%WinDir%\IME\IMJP8_1"
HKLM,"Software\Microsoft\IMEJP\8.1\directories",UsrDictPath,0x00000002 ,"%WinDir%\IME\IMJP8_1\UsrDicts"
HKLM,"Software\Microsoft\IMEJP\8.1\directories",IMEPadPath,0x00000002 ,"%WinDir%\IME\IMJP8_1\Applets"

;[IME.LGReg.Install.Korean]
HKLM,"SYSTEM\CurrentControlSet\Services\i8042prt\Parameters","LayerDriver KOR",0x00000002,KBD101A.DLL
HKLM,"Software\Microsoft\Windows\CurrentVersion\IntlRun","imkrinst.exe",,"%10%\IME\IMKR6_1\IMKRINST.EXE"
HKLM,"Software\Microsoft\IMEKR\6.1","Dictionary",0x00000002,"%WinDir%\IME\IMKR6_1\Dicts\imekr.lex"
HKLM,"Software\Microsoft\IMEKR\6.1\directories","DictionaryPath",0x00000002,"%WinDir%\IME\IMKR6_1\Dicts"
HKLM,"Software\Microsoft\IMEKR\6.1\directories","IMEPadPath",0x00000002,"%WinDir%\IME\IMKR6_1\Applets"
HKLM,"Software\Microsoft\IMEKR\6.1\directories","ModulePath",0x00000002,"%WinDir%\IME\IMKR6_1"
HKLM,"Software\Microsoft\IMEKR",Version,0x00000002,"6.1"

TOP

;[IME.LGReg.Install.CHT]
HKLM,"Software\Microsoft\Windows\CurrentVersion\IntlRun","tintsetp.exe",,"%11%\IME\TINTLGNT\tintsetp.exe /SILENCE_UPGRADE"
HKLM,"Software\Microsoft\Windows\CurrentVersion\IntlRun","cintsetp.exe",,"%11%\IME\CINTLGNT\cintsetp.exe /SILENCE_UPGRADE"

;[IME.LGReg.Install.CHS]
HKLM,"Software\Microsoft\Windows\Html Help","PINTLGNE.CHM",,"%11%\IME\PINTLGNT"
HKLM,"Software\Microsoft\Windows\Html Help","PINTLGNT.CHM",,"%11%\IME\PINTLGNT"
HKLM,"Software\Microsoft\Windows\Html Help","PINTLPAD.CHM",,"%18%"
HKLM,"Software\Microsoft\Windows\Html Help","PINTLPAE.CHM",,"%18%"
HKLM,"Software\Microsoft\Windows\Help","PINTLPAD.HLP",,"%11%"
HKLM,"Software\Microsoft\Windows\Help","PINTLPAE.HLP",,"%11%"
HKLM,"Software\Microsoft\Windows\Help","IMEPADEN.HLP",,"%10%\IME\SHARED"
HKLM,"Software\Microsoft\Windows\CurrentVersion\IntlRun","CHS(%11%)",,"%11%\IME\PINTLGNT\IMSCINST.Exe"

TOP

5、解压并编辑 D:\MINIXP\I386\LUNA.TH_ 文件,修改下列行:(已配有此文件,可省略)
;[Control Panel\Desktop]
Wallpaper=%WinDir%web\wallpaper\Bliss.jpg
删除下列行:
;[Control Panel\Desktop]
Wallpaper.MUI=@themeui.dll,-2036


6、新增 D:\MINIXP\$OEM$\INSTALL.INS 文件,内容如下:(已配有此文件,可省略)
[Branding]
NoClear=0


7、新增 D:\MINIXP\$OEM$\$$\REGISTRY.REG 文件,内容如下:(已配有此文件,可省略)
Windows Registry Editor Version 5.00

;禁止记住每个文件夹的视窗设置
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ClassicViewState"=dword:00000001

;开启快速启动栏
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]
"TaskbarWinXP"=hex:0c,00,00,00,08,00,00,00,03,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,10,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,11,00,00,00,80,94,c1,4b,87,fc,c6,01,00,40,f0,73,3c,fc,c6,01,00,c2,a3,4d,87,fc,c6,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,15,02,14,00,1f,50,e0,4f,d0,20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,2f,44,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,5f,35,1b,06,10,00,44,4f,43,55,4d,45,7e,31,00,00,44,00,03,00,04,00,ef,be,5f,35,1b,06,5e,35,00,80,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,4a,00,31,00,00,00,00,00,5f,35,f5,06,10,00,41,44,4d,49,4e,49,7e,31,00,00,32,00,03,00,04,00,ef,be,5f,35,f5,06,b8,36,00,80,14,00,00,00,41,00,64,00,6d,00,69,00,6e,00,69,00,73,00,74,00,72,00,61,00,74,00,6f,00,72,00,00,00,18,00,64,00,31,00,00,00,00,00,5f,35,30,06,13,00,41,50,50,4c,49,43,7e,31,00,00,4c,00,03,00,04,00,ef,be,5f,35,f5,06,5e,35,00,80,14,00,36,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,40,73,68,65,6c,6c,33,32,2e,64,6c,6c,2c,2d,32,31,37,36,35,00,18,00,42,00,31,00,00,00,00,00,5f,35,28,06,14,00,4d,49,43,52,4f,53,7e,31,00,00,2a,00,03,00,04,00,ef,be,5f,35,f5,06,5e,35,00,80,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,5f,35,cd,06,10,00,49,4e,54,45,52,4e,7e,31,00,00,3a,00,03,00,04,00,ef,be,5f,35,f5,06,5e,35,00,80,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,5f,35,f8,06,11,00,51,55,49,43,4b,4c,7e,31,00,00,30,00,03,00,04,00,ef,be,5f,35,f7,06,5e,35,00,80,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,37,01,00,00,00,00,00,00,00,00,00,00,60,07,00,00,00,00,00,00,1e,00,00,00,00,00,00,00,00,00,00,00,1e,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,91,02,00,00,60,0d,00,00,00,00,00,00,1e,00,00,00,00,00,00,00,00,00,00,00,1e,00,00,00,00,00,00,00,01,00,00,00,02,00,00,00,8b,8a,0d,54,3f,1c,32,4e,81,32,53,0f,6a,50,20,90,43,00,00,00,60,05,00,00,00,00,00,00,1c,00,00,00,00,00,00,00,00,00,00,00,1c,00,00,00,00,00,00,00,01,00,00,00

;最小化语言栏
[HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar]
"ShowStatus"=dword:00000004

TOP

;禁止光盘自动运行
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
"Autorun"=dword:00000000

;禁止 USB 设备自动运行
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"AutoRun"=dword:00000000

;删除收藏夹的子文件夹
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]
"LinksFolderName"=" "

;注册数字签名
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"RegDone"="1"

;修正产品激活(WPA)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents]
"OOBETimer"=hex:ff,d5,71,d6,8b,6a,8d,6f,d5,33,93,fd

;WinRAR 右键菜单设置
[HKEY_CURRENT_USER\Software\WinRAR\Setup]
"MenuIcons"=dword:00000000
[HKEY_CURRENT_USER\Software\WinRAR\Setup\Links]
"Programs"=dword:00000000
[HKEY_CURRENT_USER\Software\WinRAR\Setup\MenuItems]
"AddArc"=dword:00000000
"EmailOpt"=dword:00000000
"EmailArc"=dword:00000000
"ExtrHere"=dword:00000000
"ExtrSep"=dword:00000000
"Extr"=dword:00000000

TOP

8、新增 D:\MINIXP\I386\WINNT.SIF 文件,内容如下:(已配有此文件,可省略)
[Data]
AutomaticUpdates="Yes"
AutoPartition=0
MsDosInitiated=0
UnattendedInstall="Yes"

[Unattended]
DriverSigningPolicy=Ignore
FileSystem=*
Hibernation="No"
NonDriverSigningPolicy=Ignore
NoWaitAfterGUIMode=1
NoWaitAfterTextMode=1
OemPreinstall="Yes"
OemSkipEula="Yes"
TargetPath=\WINDOWS
UnattendMode=FullUnattended
UnattendSwitch="Yes"
WaitForReboot="No"

TOP

[GuiUnattended]
AdminPassword=*
AutoLogon="Yes"
EncryptedAdminPassword="No"
OEMSkipRegional=1
OEMSkipWelcome=1
TimeZone=210
; ProfilesDir="C:\Documents and Settings"

[UserData]
ComputerName=XP
FullName="Windows"
OrgName="Microsoft"
ProductKey="BYCMB-R844W-KJBQX-J3D9F-V3Y6G"

[TapiLocation]
CountryCode=86

[RegionalSettings]
LanguageGroup=7,8,9,10
Language="0804"

[Identification]
JoinWorkgroup="MSHOME"

[Networking]
InstallDefaultComponents="Yes"

[WindowsFirewall]
Profiles=WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]
Mode=0

[Components]

TOP

;清除原有收藏夹的内容。install.ins 还可以添加自己的收藏夹地址
[Branding]
BrandIEUsingUnattended=No
IEBrandingFile=install.ins

[Shell]
DefaultStartPanelOff="Yes"

[GuiRunOnce]
Command0="%SystemRoot%\Regedit.exe /s %SystemRoot%\Registry.reg"
Command1="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\addins /s /q"
Command2="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\Config /s /q"
Command3="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\Cursors /s /q"
Command4="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\Help /s /q"
Command5="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\ime /s /q"
Command6="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\java /s /q"
Command7="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\LastGood /s /q"
Command8="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\LastGood.Tmp /s /q"
Command9="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\msapps /s /q"
Command10="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\mui /s /q"
Command11="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\PeerNet /s /q"
Command12="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\repair /s /q"
Command13="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\3com_dmi /s /q"
Command14="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\1025 /s /q"
Command15="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\1028 /s /q"
Command16="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\1031 /s /q"
Command17="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\1033 /s /q"
Command18="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\1037 /s /q"
Command19="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\1041 /s /q"
Command20="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\1042 /s /q"
Command21="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\1054 /s /q"
Command22="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\3076 /s /q"
Command23="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\dhcp /s /q"
Command24="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\dllcache /s /q"
Command25="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\export /s /q"
Command26="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\ShellExt /s /q"
Command27="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\usmt /s /q"
Command28="%SystemRoot%\System32\Cmd.exe /C RD %SystemRoot%\system32\wins /s /q"
Command29="%SystemRoot%\System32\Cmd.exe /C Del %SystemRoot%\Registry.reg /s /q"
Command30="%SystemRoot%\System32\Cmd.exe /C RD %ProgramFiles%\WindowsUpdate /s /q"

9、复制 C:\nLite\20071201\$OEM$ 及 C:\nLite\20071201\I386 覆盖到 D:\MINIXP\

此时 D:\MINIXP 文件夹大小:195 MB (205,493,293 字节)

TOP

五、封装

运行 D:\nLite\20071201\CDIMAGE.CMD

CDIMAGE.CMD 内容如下:
cdimage -l"Windows XP SP2 中文版 完美精简版" -bboot.bin -h -m -n -o -x D:\MiniXP .\XPSP2.ISO

封装后的 XPSP2.ISO 文件大小:198 MB (207,996,928 字节)


六、修改卷标(不推荐修改)

使用十六进制编辑器编辑 C:\nLite\20071201\XPSP2.ISO 文件,修改卷标号:

1、位置:0x8028
原始数据:57 49 4E 44 4F 57 53 (WINDOWS)
替换数据:57 69 6E 64 6F 77 73 (Windows)

2、位置:0x80BE
原始数据:57 49 4E 44 4F 57 53 (WINDOWS)
替换数据:57 69 6E 64 6F 77 73 (Windows)


七、后语

部分内容摘自互联网,如本教程导致一系列的系统安全、法律责任均与作者无关。

TOP

这里高手好手如云,好像来现丑了!
补充说明:Windows XP SP2 政府版(精简前后都不添加更新补丁)
删除所有输入法,只剩下一下必需的中文键盘。

未解决的问题:
Windows Media Player 最小化时没有控制按钮,至今还未找到解决的方法!

TOP

Windows精简与定制技术精华帖索引
nLite 1.4.1 & vLite 1.1 官方下载地址
http://www.lucky8k.com/thread-39036-1-1.html
nLite vLite DPS是什么?
http://www.lucky8k.com/thread-39038-1-1.html
nLite 的常见问题(译自官方网站)
http://www.lucky8k.com/thread-39037-1-1.html
nLite 精简一步一步详细教程
http://www.lucky8k.com/thread-39050-1-1.html
用于 Windows 软件更新程序包的命令行开关
http://www.lucky8k.com/thread-39049-1-1.html
LaunchINFSectionEx Function - 命令行加载inf的扩展
http://www.lucky8k.com/thread-39048-1-1.html
编写INF进行安装用来做nilte的整合包学习inf安装有好处
http://www.lucky8k.com/thread-39047-1-1.html
轻松学习批处理
http://www.lucky8k.com/thread-39046-1-1.html
简体中文版 Windows XP SP2 中 syssetup.inf 的注释
http://www.lucky8k.com/thread-39045-1-1.html
怎样在nlite的基础上进一步压榨空间
http://www.lucky8k.com/thread-39044-1-1.html
rundll32.exe的用途大全
http://www.lucky8k.com/thread-39043-1-1.html
Ghost XP 封装制作全过程
http://www.lucky8k.com/thread-39042-1-1.html
详细指导你做XP精简版和多启动菜单
http://www.lucky8k.com/thread-39041-1-1.html
nlite精简后的自动后处理脚本
http://www.lucky8k.com/thread-39040-1-1.html
XP安装时分两个阶段
http://www.lucky8k.com/thread-39039-1-1.html

TOP

发新话题