通过定义WINNT.SIF文件,我们可以将一些补丁直接安装,这样可以免除以后上WINDOWS UPDATE下载。
一般在I386目录下,有一个文本文件WINNT.SIF,用记事本打开,以下是一个范例
;这是默认无人参与的安装文件
;Target Path 应该是新的目录
;Adminpassword 为空。
[Data]
MsDosInitiated="0"
UnattendedInstall="Yes"
[Unattended]
Unattendmode = FullUnattended
OemPreinstall = Yes
TargetPath = \Windows
Filesystem = LeaveAlone
OemSkipEula = YES
FactoryMode = NO
[UserData]
FullName = "User"
OrgName = ""
ComputerName = *
ProductID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
[GuiUnattended]
TimeZone = "210"
AdminPassword = *
AutoLogon = No
OEMSkipRegional = 1
OEMSkipWelcome = 1
[GuiRunOnce]
command0="%systemdrive%\Program Files\PATCHES\GBPatch\GBEXTSUP.MSI /qn"
command1="%WinDir%\regedit /s %WinDir%\system32\oemlink.reg"
command2="%systemdrive%\Program Files\PATCHES\Q322011_WXP_SP2_X86_CHS.EXE -q -z"
command3="%systemdrive%\Program Files\PATCHES\Q327979_WXP_SP2_X86_CHS.EXE -q -z"
command4="%systemdrive%\Program Files\PATCHES\Q328310_WXP_SP2_X86_CHS.EXE -q -z"
command5="%systemdrive%\Program Files\PATCHES\Q329170_WXP_SP2_x86_CHS.EXE -q -z"
command6="%systemdrive%\Program Files\PATCHES\Q329441_WXP_SP2_x86_CHS.EXE -q -z"
command7="%systemdrive%\Program Files\PATCHES\Q810565_WXP_SP2_x86_CHS.EXE -q -z"
command8="%systemdrive%\Program Files\PATCHES\Q810577_WXP_SP2_x86_CHS.EXE -q -z"
command9="%systemdrive%\Program Files\PATCHES\Q810833_WXP_SP2_x86_CHS.EXE -q -z"
command10="%systemdrive%\Program Files\PATCHES\Q329048_WXP_SP2_x86_CHS.EXE -q -z"
command11="%systemdrive%\Program Files\PATCHES\Q329115_WXP_SP2_x86_CHS.EXE -q -z"
command12="%systemdrive%\Program Files\PATCHES\Q329390_WXP_SP2_x86_CHS.EXE -q -z"
command13="%systemdrive%\Program Files\PATCHES\Q329834_WXP_SP2_x86_CHS.EXE -q -z"
command14="%systemdrive%\Program Files\PATCHES\Q814995_WXP_SP2_x86_CHS.EXE -q -z"
[LicenseFilePrintData]
AutoMode = "PerServer"
AutoUsers = "5"
[Display]
BitsPerPel = 16
XResolution = 800
YResolution = 600
VRefresh = 75
[Branding]
BrandIEUsingUnattended = No
IEBrandingFile = install.ins
[Networking]
[Shell]
CustomDefaultThemeFile = "%WinDir%\Resources\Themes\LEGEND.theme"
[Identification]
JoinWorkgroup = Workgroup
[TapiLocation]
CountryCode=86
注意到其中的[GuiRunOnce]段么?这个就是我们需要修改和添加的。
这个是我用国内某OEM厂商盘(谁的?不要问我,自己看SHELL段)安装的,里面所需要的文件都放在光盘根目录下$OEM$\PATCHES下,在XP安装时会复制到系统硬盘下\Program Files下,并在XP安装到欢迎界面后自动安装。
我在一台P4 1.8 256M DDR 7200转硬盘的机器上安装,到这一步大约用了15分钟左右,并屏幕上没有任何提示,除了鼠标和硬盘不断狂闪。
一般微软的补丁都可以用 /Q方式安装,其余的只要是支持QUIET方式的都可以。请在安装前确认可以使用无人值守模式。顺便说一句,可有人知道Media player 9.0是否有无人值守方式?(可惜光盘不够大,否则还打算让OFFICE XP也来一个无人值守安装。^_^ 比尔:你想找死!!)