Respect NoRestartExplorer flag in GUI

This commit is contained in:
Raphire
2026-02-02 21:52:09 +01:00
parent 59d0e83238
commit 1ef8992320

View File

@@ -1419,7 +1419,7 @@ function OpenGUI {
try { try {
ExecuteAllChanges ExecuteAllChanges
if (-not $script:Params.ContainsKey("Sysprep") -and -not $script:Params.ContainsKey("User")) { if (-not $script:Params.ContainsKey("Sysprep") -and -not $script:Params.ContainsKey("User") -and -not $script:Params.ContainsKey("NoRestartExplorer")) {
# Ask user if they want to restart Explorer now # Ask user if they want to restart Explorer now
$result = [System.Windows.MessageBox]::Show( $result = [System.Windows.MessageBox]::Show(
'Would you like to restart the Windows Explorer process now to apply all changes? Some changes may not take effect until a restart is performed.', 'Would you like to restart the Windows Explorer process now to apply all changes? Some changes may not take effect until a restart is performed.',