UpgradeDataUpgradeData

UpgradeData 指定安裝類型是否為現有作業系統的升級。UpgradeData specifies whether the installation type is an upgrade of an existing operating system. 這項設定也會指定在哪些情況下,會顯示使用者介面 (UI) 。This setting also specifies in what circumstances the user interface (UI) is displayed.

Windows 安裝程式在升級期間不支援使用任何其他自動安裝設定。Windows Setup does not support using any other unattended Setup settings during upgrades. 當您從舊版 Windows 進行升級時,您必須建立只包含 Windows 安裝程式設定的回應檔案 \ UpgradeDataWhen you upgrade from an earlier version of Windows, you must create an answer file that includes only the Windows-Setup\UpgradeData settings. 然後,您必須使用 Windows 產品 DVD 或系統準備 (Sysprep) 工具來升級 Windows。Then, you must use either the Windows product DVD or the System Preparation (Sysprep) tool to upgrade Windows.

如需範例回應檔案,請參閱 XML 範例一節。For a sample answer file, see the XML Example section.

警告

如果您使用原本使用 Unattend.xml 檔案安裝的安裝映射,並執行 修復就地升級 (覆寫安裝) 選項,升級安裝可能會結束。If you use an installation image that was originally installed by using an Unattend.xml file, and you execute the Repair in-place upgrade (overwrite installation) option, the upgrade installation may quit. 您可能無法重新開機安裝。You may not be able to restart the installation. 如需詳細資訊,請參閱 知識庫文章識別碼 2425962For more information, see Knowledge Base Article ID 2425962.

子元素Child Elements

設定Setting 描述Description
升級Upgrade 指定安裝是否為現有作業系統的升級。Specifies whether the installation is an upgrade of an existing operating system.
WillShowUIWillShowUI 指定 UI 的顯示情形。Specifies in what circumstances the UI is displayed.

有效的設定階段Valid Configuration Passes

windowsPEwindowsPE

父階層Parent Hierarchy

Microsoft-Windows-安裝程式 | UpgradeDataMicrosoft-Windows-Setup | UpgradeData

套用至Applies To

如需此元件所支援的 Windows 版本和架構清單,請參閱 Microsoft Windows 安裝程式For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Setup.

XML 範例 XML Example

下列 XML 輸出顯示如何將升級安裝設定成以保證的無訊息模式執行。The following XML output shows how to set an upgrade installation to run in guaranteed quiet mode.

<UpgradeData>
   <Upgrade>true</Upgrade>
   <WillShowUI>Never</WillShowUI>
</UpgradeData>

Microsoft-Windows-安裝程式Microsoft-Windows-安裝程式Microsoft-Windows-SetupMicrosoft-Windows-Setup