Back with original total uninstall
parent
26f078f8ee
commit
687a24bafd
|
@ -184,7 +184,7 @@ function Install-WingetAutoUpdate {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!$NoClean) {
|
if (!$NoClean) {
|
||||||
Remove-Item "$WingetUpdatePath\*" -Force -Recurse -Exclude "*.log"
|
Remove-Item -Path "$WingetUpdatePath\*" -Exclude *.log -Recurse -Force
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#Keep critical files
|
#Keep critical files
|
||||||
|
@ -299,7 +299,7 @@ function Uninstall-WingetAutoUpdate {
|
||||||
if (Test-Path ($InstallLocation)) {
|
if (Test-Path ($InstallLocation)) {
|
||||||
|
|
||||||
if (!$NoClean) {
|
if (!$NoClean) {
|
||||||
Remove-Item "$InstallLocation\*" -Force -Recurse -Exclude "*.log"
|
Remove-Item $InstallLocation -Force -Recurse
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#Keep critical files
|
#Keep critical files
|
||||||
|
|
Loading…
Reference in New Issue