Update Winget-Install.ps1
parent
adc9da6882
commit
48326dc482
|
@ -172,7 +172,7 @@ function Install-App ($AppID, $AppArgs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#Add mods if deployed from Winget-Install
|
#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
|
#Check if WAU default install path exists
|
||||||
$Mods = "$WAUInstallLocation\mods"
|
$Mods = "$WAUInstallLocation\mods"
|
||||||
if (Test-Path $Mods) {
|
if (Test-Path $Mods) {
|
||||||
|
@ -230,7 +230,7 @@ function Uninstall-App ($AppID, $AppArgs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#Remove mods if deployed from Winget-Install
|
#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
|
#Check if WAU default install path exists
|
||||||
$Mods = "$WAUInstallLocation\mods"
|
$Mods = "$WAUInstallLocation\mods"
|
||||||
if (Test-Path "$Mods\$AppID*") {
|
if (Test-Path "$Mods\$AppID*") {
|
||||||
|
|
Loading…
Reference in New Issue