http://hi.baidu.com/858823086/blog/item/3afb075655a3ae07377abea6.html

【前言】

參閱文章:Deploying Vista - Part 8: Unattended Install from DVD Method

   
Here are the details: when Setup begins a configuration pass, it automatically looks for an answer file in the locations indicated in the following order:

1. In the registry in the location HKLM\System\Setup!UnattendFile

2. In the %WINDIR%\Panther\Unattend folder (but only if Setup is being launched from a previous version of Windows)

3. In the %WINDIR%\Panther folder, which is the location where Setup caches answer files. When Setup finds an answer file at the beginning of a configuration pass, it caches it in this directory so it can use this cached answer file for the remaining configuration passes provided no other answer files are found in a location of higher precedence in this search procedure.

4. In the root directory of removable media that are writable. Setup searches the root directory of each writable flash drive or floppy, in order of drive letter, until it finds an answer file.

5. In the root directory of removable media that are read-only. Setup searches the root directory of each read-only removable media, in order of drive letter, until it finds an answer file.

6. In the \Sources folder where your Vista installation files are found (windowsPE and offlineServicing passes only) and in the %WINDIR%\System32\Sysprep folder (all other passes). For the windowsPE and offlineServicing passes, your answer file must benamed autounattend.xml. For all other passes, it must be named unattend.xml.

7. In %SYSTEMDRIVE% (the root of your system drive)

 

從第6點可看出autounattend.xml 和unattend.xml 如果是放在特殊的位置,對應的是不同的配置階段。有了這個思路後面就是一些冒險。

 

【流程】

1.將autounattend.xml 放置在光盤根目錄,完成PE 配置階段的自動化應答部分,這部分相當於各個子鏡像共用了此應答文件。

2.將unattend.xml 更換Key值(簡易、家庭基礎、高級、專業、旗艦版之間的Key是不一樣的,這就是為什麼不同版本系統不能共用一個應答文件進行安裝的原因),利用WAIK 中的DISM 或者Imagex 工具封入install.wim 中各個子鏡像的Windows\System32\Sysprep 目錄下,這樣各個子鏡像將在oobe (啟用Administrator帳戶,導入軟件優化等)和specialize (網絡、時間的設置)配置階段使用各自不同的應答文件完成系統重啟後的自動化安裝。

arrow
arrow
    文章標籤
    Windows Boot unattended
    全站熱搜
    創作者介紹
    創作者 m1016c 的頭像
    m1016c

    Martin Chang的部落格

    m1016c 發表在 痞客邦 留言(0) 人氣()