From ef5af88712291f312d609c511f416ef4ae4188ec Mon Sep 17 00:00:00 2001 From: Romain SANTOT <96626929+Romanitho@users.noreply.github.com> Date: Mon, 30 May 2022 17:38:30 +0200 Subject: [PATCH] Update WAU-Uninstall.ps1 --- Winget-AutoUpdate/WAU-Uninstall.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Winget-AutoUpdate/WAU-Uninstall.ps1 b/Winget-AutoUpdate/WAU-Uninstall.ps1 index 1d05b84..b3c8400 100644 --- a/Winget-AutoUpdate/WAU-Uninstall.ps1 +++ b/Winget-AutoUpdate/WAU-Uninstall.ps1 @@ -9,6 +9,9 @@ try{ Get-ScheduledTask -TaskName "Winget-AutoUpdate-Notify" -ErrorAction SilentlyContinue | Unregister-ScheduledTask -Confirm:$False & reg delete "HKCR\AppUserModelId\Windows.SystemToast.Winget.Notification" /f | Out-Null & reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate" /f | Out-Null + if (Test-Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate") { + & reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate" /f | Out-Null + } Write-host "Uninstallation succeeded!" -ForegroundColor Green Start-sleep 1