mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-07-03 07:08:27 +00:00
* remove support for uninstalling old sunset apps * Add color legend on app removal screen * Remove legacy app list generator and custom apps file support Replaced by GUI config export/import, dynamic RemovalMethod, and CLI app removal settings saved to LastUsedSettings.json. * Verify app removal by checking actual installation state instead of trusting winget output
29 lines
929 B
PowerShell
29 lines
929 B
PowerShell
# Shows the CLI app removal menu and prompts the user to select which apps to remove.
|
|
function ShowCLIAppRemoval {
|
|
PrintHeader "App Removal"
|
|
|
|
Write-Output "> Opening app selection form..."
|
|
|
|
$result = Show-AppSelectionWindow
|
|
|
|
if ($result -eq $true) {
|
|
Write-Output "You have selected $($script:SelectedApps.Count) apps for removal"
|
|
AddParameter 'RemoveApps'
|
|
AddParameter 'Apps' ($script:SelectedApps -join ',')
|
|
|
|
SaveSettings
|
|
|
|
# Suppress prompt if Silent parameter was passed
|
|
if (-not $Silent) {
|
|
Write-Output ""
|
|
Write-Output ""
|
|
Write-Output "Press enter to remove the selected apps or press CTRL+C to quit..."
|
|
Read-Host | Out-Null
|
|
PrintHeader "App Removal"
|
|
}
|
|
}
|
|
else {
|
|
Write-Host "Selection was cancelled, no apps have been removed" -ForegroundColor Red
|
|
Write-Output ""
|
|
}
|
|
} |