From 687a24bafddac574acaae5e1917c09b8b0863264 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Sat, 30 Jul 2022 15:22:34 +0200 Subject: [PATCH] Back with original total uninstall --- Winget-AutoUpdate-Install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index 2f82626..7e866b3 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -184,7 +184,7 @@ function Install-WingetAutoUpdate { } else { if (!$NoClean) { - Remove-Item "$WingetUpdatePath\*" -Force -Recurse -Exclude "*.log" + Remove-Item -Path "$WingetUpdatePath\*" -Exclude *.log -Recurse -Force } else { #Keep critical files @@ -299,7 +299,7 @@ function Uninstall-WingetAutoUpdate { if (Test-Path ($InstallLocation)) { if (!$NoClean) { - Remove-Item "$InstallLocation\*" -Force -Recurse -Exclude "*.log" + Remove-Item $InstallLocation -Force -Recurse } else { #Keep critical files