mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-04-03 14:06:27 +00:00
Set default launch mode to CLI for deployment-targeted parameters
This commit is contained in:
@@ -383,6 +383,9 @@ if ((Test-Path $script:SavedSettingsFilePath) -and ([String]::IsNullOrWhiteSpace
|
||||
Remove-Item -Path $script:SavedSettingsFilePath -recurse
|
||||
}
|
||||
|
||||
# Default to CLI mode for deployment-targeted parameters.
|
||||
$launchInCLI = $CLI -or $script:Params.ContainsKey("User") -or $script:Params.ContainsKey("Sysprep") -or $script:Params.ContainsKey("AppRemovalTarget")
|
||||
|
||||
# Only run the app selection form if the 'RunAppsListGenerator' parameter was passed to the script
|
||||
if ($RunAppsListGenerator) {
|
||||
PrintHeader "Custom Apps List Generator"
|
||||
@@ -416,7 +419,7 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa
|
||||
ShowCLILastUsedSettings
|
||||
}
|
||||
else {
|
||||
if ($CLI) {
|
||||
if ($launchInCLI) {
|
||||
$Mode = ShowCLIMenuOptions
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user