Windows XP Unattended Installation

| | Comments (0)

Step 0: SP2 整合
將 Windwos XP CD 解開到 x:\xpcd, 然後 xpsp2.exe/integrate:x:\xpcd
(xpsp2.exe 是完裝的 SP2 升級檔)

Step 1: 準備 winnt.sif (在 i386 目錄內), 設定好參數. winnt.sif 參數說明
範例:

[Data]
AutoPartition=0
MsDosInitiated="0"
UnattendedInstall="Yes"

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=No
TargetPath=\WINDOWS
Repartition=No
UnattendSwitch="Yes"
WaitForReboot="No"
DriverSigningPolicy=Ignore
CrashDumpSetting=0
NtUpgrade=No

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=NO
OEMSkipRegional=1
TimeZone=220
OemSkipWelcome=1

[SystemFileProtection]
SFCQuota=0

[UserData]
ProductID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
FullName="Windows XP"
OrgName="Microsoft"
ComputerName=*

[RegionalSettings]
LanguageGroup=7,9,10

[Identification]
JoinWorkgroup=WORKGROUP

[Networking]
InstallDefaultComponents=Yes

[Branding]
BrandIEUsingUnattended=Yes

[Display]
BitsPerPel=32
Xresolution=800
YResolution=600
Vrefresh=75

[Components]
msmsgs=off

[URL]
Home_Page=www.google.com.tw

Step 2: 建立 $OEM$ 相關目錄
md $OEM$
cd $OEM$
md $1 $$ $Docs $Progs install
如下(用不到的目錄可以省略)

$1 下的所有檔案及目錄, 會複製到 %SystemDrive%
$$ 下的所有檔案及目錄, 會複製到 %SystemRoot%
install 是用來放 OEM 軟體的地方

Step 3: 在 $OEM$ 目錄下建立 cmdlines.txt, 寫入預定執行的指令
範例:

[COMMANDS]
install.bat

Step 4: 編輯 cmdlines.txt 內的批次檔, 軟體安裝需採用 quiet 或 silient 安裝模式, 才能自動安裝, 並不是所有軟體都支援這種參數, 參考應用程序的全自動安裝
範例:

@ECHO OFF
ECHO.
ECHO 系統優化
regedit /s tweak.reg
ECHO.
ECHO 安裝 MSN Messenger 6.2
start/wait install\msn.msi /qn
install\msn6xnoad.exe /s

Step 5: 使用 WinISO 將異動的檔案, 塞到 Windows XP 的 ISO 檔

Step 6: 完成, 可以使用 Virtual PC 或 VMWare 測試一下, 最後可燒成 CD

ref.
Windows XP Unattended Installation, Part II
MSFN's Unattended Windows
無人值守Windows XP安裝光盤

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on August 12, 2004 11:31 PM.

cramfs file size limit was the previous entry in this blog.

Windows XP SP2 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.