This commit is contained in:
Joeri 2026-02-21 15:01:31 +01:00
parent e1b150f5d4
commit d0bc390436

View file

@ -46,17 +46,17 @@ $BleachBitCleaners = @(
"zoom.cache", "zoom.logs" "zoom.cache", "zoom.logs"
) )
Write-Log "Stopping Edge processes..." Write-Host "Stopping Edge processes..."
try { try {
$EdgeProcesses = Get-Process -Name "*Edge*" -ErrorAction SilentlyContinue $EdgeProcesses = Get-Process -Name "*Edge*" -ErrorAction SilentlyContinue
if ($EdgeProcesses) { if ($EdgeProcesses) {
$EdgeProcesses | Stop-Process -Force -ErrorAction Stop $EdgeProcesses | Stop-Process -Force -ErrorAction Stop
Write-Log "Edge processes stopped successfully." Write-Host "Edge processes stopped successfully."
} else { } else {
Write-Log "No Edge processes running." Write-Host "No Edge processes running."
} }
} catch { } catch {
Write-Log "Warning: Could not stop Edge processes: $($_.Exception.Message)" Write-Host "Warning: Could not stop Edge processes: $($_.Exception.Message)"
} }
$DownloadURL = "https://download.bleachbit.org/BleachBit-5.0.2-portable.zip" $DownloadURL = "https://download.bleachbit.org/BleachBit-5.0.2-portable.zip"