WillShowUI specifies in what circumstances to display the user interface (UI) for disk configuration. Settings in DiskConfiguration are processed before the UI is displayed, but setting this value to Always or OnError gives notification of success or failure.



Specifies that the UI is always displayed.


Specifies that the UI is displayed only if an error occurs. 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 .

Valid Configuration Passes


Parent Hierarchy

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 for the DiskConfiguration setting shows how to modify an existing partition structure. By default, Windows Setup will apply the partition structure, if it is possible. If Windows Setup detects an error with the partition structure, Windows Setup will display the disk configuration UI.

  Copy Code


  <Disk wcm:action="add">

	<!-- System partition -->
	<ModifyPartition wcm:action="add">

	<!-- Windows partition -->
	<ModifyPartition wcm:action="add">



For full XML examples and recommended partition configurations, see How to Configure UEFI/GPT-Based Hard Disk Partitions or How to Configure BIOS/MBR-Based Hard Disk Partitions.

See Also