Back with original total uninstall

pull/136/head
KnifMelti 2022-07-30 15:22:34 +02:00
parent 26f078f8ee
commit 687a24bafd
1 changed files with 2 additions and 2 deletions

View File

@ -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