diff --git a/Scripts/Helpers/ConfirmUnsafeAppRemoval.ps1 b/Scripts/Helpers/ConfirmUnsafeAppRemoval.ps1 index 6203357..2e3f9bd 100644 --- a/Scripts/Helpers/ConfirmUnsafeAppRemoval.ps1 +++ b/Scripts/Helpers/ConfirmUnsafeAppRemoval.ps1 @@ -16,7 +16,7 @@ function ConfirmUnsafeAppRemoval { if ($SelectedApps -contains "Microsoft.WindowsStore") { $result = Show-MessageBox -Message 'Are you sure that you wish to uninstall the Microsoft Store? This app cannot easily be reinstalled.' -Title 'Are you sure?' -Button 'YesNo' -Icon 'Warning' -Owner $Owner - if ($result -eq 'No') { + if ($result -ne 'Yes') { return $false } } @@ -25,10 +25,10 @@ function ConfirmUnsafeAppRemoval { if ($SelectedApps -contains "Microsoft.WindowsTerminal") { $result = Show-MessageBox -Message 'Are you sure that you wish to remove Windows Terminal? Windows Terminal is the default command-line app for Windows. Ensure you are not running Win11Debloat via Windows Terminal before proceeding to avoid a mid-process failure.' -Title 'Are you sure?' -Button 'YesNo' -Icon 'Warning' -Owner $Owner - if ($result -eq 'No') { + if ($result -ne 'Yes') { return $false } } return $true -} \ No newline at end of file +}