From adc9da6882db9b9940bd8c8ae8e9cd18daf78534 Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:49:59 +0100 Subject: [PATCH] Update Winget-Install.ps1 --- Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 b/Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 index 7327805..b5be702 100644 --- a/Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 +++ b/Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 @@ -230,7 +230,7 @@ function Uninstall-App ($AppID, $AppArgs) { } #Remove mods if deployed from Winget-Install - if ((Test-Path "$PSScriptRoot\mods\$AppID-preinstall.ps1") -or (Test-Path "$PSScriptRoot\mods\$AppID-upgrade.ps1") -or (Test-Path "$PSScriptRoot\mods\$AppID-install.ps1") -or (Test-Path "$PSScriptRoot\mods\$AppID-installed.ps1")) { + if ((Test-Path ".\mods\$AppID-preinstall.ps1") -or (Test-Path ".\mods\$AppID-upgrade.ps1") -or (Test-Path ".\mods\$AppID-install.ps1") -or (Test-Path ".\mods\$AppID-installed.ps1")) { #Check if WAU default install path exists $Mods = "$WAUInstallLocation\mods" if (Test-Path "$Mods\$AppID*") {