diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 7291f8a..0eed445 100755 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -1218,11 +1218,14 @@ function ShowDefaultModeOptions { } } + PrintHeader 'Default Mode' + # Add default settings based on user input try { $defaultSettings = (Get-Content -Path $script:DefaultSettingsFilePath -Raw | ConvertFrom-Json) if (-not $defaultSettings.Version -or $defaultSettings.Version -ne "1.0") { - Write-Warning "DefaultSettings.json version mismatch (expected 1.0, found $($defaultSettings.Version))" + Write-Error "DefaultSettings.json version mismatch (expected 1.0, found $($defaultSettings.Version))" + AwaitKeyToExit } # Select app removal options based on user input @@ -1256,8 +1259,6 @@ function ShowDefaultModeOptions { SaveSettings - PrintHeader 'Default Mode' - # Skip change summary if Silent parameter was passed if ($Silent) { return @@ -1830,7 +1831,8 @@ function LoadAndShowLastUsedSettings { try { $savedSettings = (Get-Content -Path $script:SavedSettingsFilePath -Raw | ConvertFrom-Json) if ($savedSettings.Version -and $savedSettings.Version -ne "1.0") { - Write-Warning "LastUsedSettings.json version mismatch (expected 1.0, found $($savedSettings.Version))" + Write-Error "LastUsedSettings.json version mismatch (expected 1.0, found $($savedSettings.Version))" + AwaitKeyToExit } if (-not $savedSettings.Settings) {