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. 有关详细信息,请参阅 知识库文章 ID 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