From 2795d4ee58277c81c6a5af9471d488645e7b4cf8 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:18:33 +0200 Subject: [PATCH] [MSI Prerequisite] Do not clean current config on update to MSI version --- Sources/Winget-AutoUpdate/functions/Update-WAU.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Winget-AutoUpdate/functions/Update-WAU.ps1 b/Sources/Winget-AutoUpdate/functions/Update-WAU.ps1 index d1521e7..86e870d 100644 --- a/Sources/Winget-AutoUpdate/functions/Update-WAU.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Update-WAU.ps1 @@ -54,7 +54,7 @@ function Update-WAU { #Uninstall WAU v1 Write-ToLog "Uninstalling WAU v1" - Start-Process powershell -ArgumentList "-WindowStyle Hidden -ExecutionPolicy Bypass -Command `"$WorkingDir\WAU-Uninstall.ps1`"" -Wait + Start-Process powershell -ArgumentList "-WindowStyle Hidden -ExecutionPolicy Bypass -Command `"$WorkingDir\WAU-Uninstall.ps1`" -NoClean" -Wait #Update WAU and run Write-ToLog "Updating WAU..." "Yellow"