Table of contents
Collapse the table of content
Expand the table of content


Last Updated: 12/12/2016

WillShowUI specifies in what circumstances to display the user interface (UI) when applying a product key specified by ProductKey.



Specifies that the UI is always displayed.


Specifies that the UI is displayed if an error occurs, even for catastrophic, non-recoverable errors. This is the default value.


Specifies that the UI is never displayed.

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 Passes


Parent Hierarchy

microsoft-windows-setup- | UserData | ProductKey | WillShowUI

Applies To

For the list of the supported Windows editions and architectures that this component supports, see microsoft-windows-setup-.

XML Example

The following XML output shows how to set user data.



Send comments about this topic to Microsoft

© 2017 Microsoft