fix for app detection on version like x.x.0.0

pull/357/head
romanitho 2023-06-21 18:15:25 +02:00
parent d8d71536e2
commit 4e69844b4a
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ Function Confirm-Installation ($AppName, $AppVer){
Remove-Item $JsonFile -Force
# Search for specific app and version
$Apps = $Packages | Where-Object { $_.PackageIdentifier -eq $AppName -and $_.Version -eq $AppVer}
$Apps = $Packages | Where-Object { $_.PackageIdentifier -eq $AppName -and $_.Version -like "$AppVer*"}
if ($Apps){
return $true