mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-02-17 07:56:24 +00:00
Await user input before falling back to CLI
This commit is contained in:
@@ -2989,6 +2989,12 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa
|
|||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Warning "Unable to load WPF GUI (not supported in this environment), falling back to CLI mode"
|
Write-Warning "Unable to load WPF GUI (not supported in this environment), falling back to CLI mode"
|
||||||
|
if (-not $Silent) {
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host "Press any key to continue..."
|
||||||
|
$null = [System.Console]::ReadKey()
|
||||||
|
}
|
||||||
|
|
||||||
$Mode = ShowScriptMenuOptions
|
$Mode = ShowScriptMenuOptions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user