Share via


WillShowUI

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

WillShowUI specifies in what circumstances the user interface (UI) is displayed for UpgradeData.

Note

Windows® Setup does not support using any other unattended Setup settings during upgrades. When you upgrade from an earlier version of Windows, you must create an answer file that includes only the Windows-Setup\UpgradeData settings. Then, you must use either the Windows product DVD or the System Preparation (sysprep) tool to upgrade Windows.

Values

Always

Specifies that the UI is always displayed for this item.

OnError

Specifies that the UI is displayed for this item when an error occurs. This is the default value.

Never

Specifies that the UI is never displayed for this item.

WillShowUI only prevents Windows Setup UI pages from being displayed. If a critical error occurs, an error message might be displayed. To avoid displaying the error message, you can use the ErrorHandler.cmd file to automatically run a script to handle the error. For more information about ErrorHandler.cmd, see the Windows Assessment and Deployment Kit (Windows ADK) Technical Reference.

This string type does not support empty elements. Do not create an empty value for this setting.

Valid Configuration Passes

windowsPE

Parent Hierarchy

Microsoft-Windows-Setup | UpgradeData | WillShowUI

Applies To

For the list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Setup.

XML Example

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>

See Also

Concepts

UpgradeData