mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-07-20 21:10:20 +08:00
Await user input before falling back to CLI
This commit is contained in:
parent
b4d4f5630d
commit
98fce954f0
@ -2989,6 +2989,12 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa
|
||||
}
|
||||
catch {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user