使用Windows AIK構建靜默安裝鏡像
1???前言
1.1?????????文檔目標
本文檔主要記錄了使用Windows AIK工具構建靜默安裝鏡像的步驟,供需要實現Windows自動安裝的用戶借鑒。
在Windows AIK工具的安裝包中的Docs/Whitepapers/StepByStep_ITPro.htm文件中提供了使用AIK工具構建靜默安裝鏡像的基礎步驟,十分詳細,本文檔大多數內容均參考該文檔編寫。
1.2?????????文檔讀者
本文檔的主要讀者是需要實現Windows自動安裝的用戶。
2???Windows AIK簡介
Windows?自動安裝工具包(Windows AIK)設計用于幫助原始設備制造商(OEM)、系統構建者以及企業?IT專業人士將?Windows?部署到新硬件上。Windows AIK?是一個支持?Windows?最新版本的部署工具集。
利用此工具可以:
1、允許您署名和自定義任何Windows產品。
2、允許您安裝非Windows操作系統組成部分的應用程序和設備驅動程序。
3、提供靈活的方法和工具來幫助您優化制造過程,無論您每月組裝?10?臺還是?10,000?臺計算機,等等。
3???Windows AIK的安裝
Windows AIK的安裝包在Microsoft官網可以下載到,安裝步驟也很簡單,在此不多贅述。
下載鏈接:http://www.microsoft.com/en-us/download/details.aspx?id=5753
4???構建靜默安裝鏡像
4.1?????????生成Autounattend.xml文件
Autounattend.xml文件中記錄了Windows安裝過程需要進行配置的信息,Windows安裝程序正是通過對該文件進行解析,從而避免了與用戶進行交互,實現靜默安裝。
使用AIK生成Autounattend.xml文件的步驟如下:
1?將Windows安裝鏡像中的Sources\Install.wim文件解壓出來。
2?打開AIK工具中的Windows System Image Manager,點擊文件->選擇Windows鏡像,然后選擇剛才的Install.win文件。
3?在彈出的鏡像選擇界面上,選擇需要進行安裝的鏡像。
4?系統提示會創建一個catalog文件,點擊確定。
5?點擊文件->創建新的Answer File,在Answer File窗口上出現一個空的Answer File。
6?在Windows Image窗口展開Components,選擇下面表格中的組件,添加到右側Answer File中。
Component
Configuration pass
Microsoft-Windows-Deployment\Reseal
oobeSystem
Microsoft-Windows-International-Core-WinPE\SetupUILanguage
windowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition
windowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition
windowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition
windowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition
windowsPE
Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo
windowsPE
Microsoft-Windows-Setup\UserData
windowsPE
Microsoft-Windows-Shell-Setup\OOBE
oobeSystem
Optional:?Microsoft-Windows-IE-InternetExplorer
specialize
其中,CreatePartition和ModifyPartition進行了兩次,說明在磁盤中創建了兩個分區。
7?在Answer File窗口進行屬性配置,將上述每個組件中的屬性按下表所示進行配置。
Configuration pass
Component
Value
1?WindowsPE
Microsoft-Windows-International-Core-WinPE
InputLocale?=??For example, en-US
SystemLocale?=?
UILanguage?=?
UserLocale?=?
1?WindowsPE
Microsoft-Windows-International-Core-WinPE\SetupUILanguage
UILanguage?=?
1?WindowsPE
Microsoft-Windows-Setup\DiskConfiguration
WillShowUI?=?OnError
1?WindowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk
DiskID?=?0
WillWipeDisk?=?true
1?WindowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition
Order?=?1
Size?=?200
Type?=?Primary
1?WindowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition
Extend?=?true
Order?=?2
Type?=?Primary
1?WindowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition
Active?=?true
Format?=?NTFS
Label?=?System
Order?=?1
PartitionID?=?1
1?WindowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition
Format?=?NTFS
Label?=?Windows
Order?=?2
PartitionID?=?2
1?WindowsPE
Microsoft-Windows-Setup\ImageInstall\OSImage
InstallToAvailablePartition?=?false
WillShowUI?=?OnError
1?WindowsPE
Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo
DiskID?=?0
PartitionID?=?2
1?WindowsPE
Microsoft-Windows-Setup\UserData
AcceptEula?=?true
1?WindowsPE
Microsoft-Windows-Setup\UserData\ProductKey
Key?=?
WillShowUI?=?OnError
4?Specialize
Optional:?Microsoft-Windows-IE-InternetExplorer
Home_Page?=?
7?oobeSystem
Microsoft-Windows-Deployment\Reseal
ForceShutdownNow?=?false
Mode?=?Audit
8?點擊工具->驗證Answer File,檢驗生成的Answer File是否可用。
9?點擊文件->保存Answer File,保存Answer File。
4.2?????????構建靜默安裝鏡像
本小節使用UltraISO工具將4.1節中生成的Autounattend.xml文件打入到鏡像根目錄中。
1?使用UltraISO打開Windows安裝鏡像。
2?將Autounattend.xml文件拖拽到鏡像根目錄中。
3?保存鏡像即可。
注:官網文檔稱Autounattend.xml文件不一定要打入到鏡像文件中才生效,Windows安裝程序在啟動時會在所有的可掛載目錄的根目錄中檢索Autounattend.xml文件。因此可以選擇將原生安裝鏡像掛載到光驅中,然后將Autounattend.xml文件通過U盤掛載到系統中的方式進行靜默安裝,從而免去將Autounattend.xml文件打入到安裝鏡像這一步。但是由于本人采用的FC平臺無法實現該功能,因此沒有進行驗證。
windows
版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。