From 48326dc4823bcf963be63124f5ec6695c3778f94 Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Fri, 23 Feb 2024 13:39:13 +0100 Subject: [PATCH] Update Winget-Install.ps1 --- Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 b/Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 index b5be702..e764292 100644 --- a/Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 +++ b/Sources/WAU/Winget-AutoUpdate/Winget-Install.ps1 @@ -172,7 +172,7 @@ function Install-App ($AppID, $AppArgs) { } #Add mods if deployed from Winget-Install - 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")) { + if (Test-Path ".\mods\$AppID-*") { #Check if WAU default install path exists $Mods = "$WAUInstallLocation\mods" if (Test-Path $Mods) { @@ -230,7 +230,7 @@ function Uninstall-App ($AppID, $AppArgs) { } #Remove mods if deployed from Winget-Install - 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")) { + if (Test-Path ".\mods\$AppID-*") { #Check if WAU default install path exists $Mods = "$WAUInstallLocation\mods" if (Test-Path "$Mods\$AppID*") {