Merge pull request #357 from Romanitho/install-detection-review

Fix for app detection on version like x.x.0.0
pull/359/head
Romain 2023-06-21 18:25:27 +02:00 committed by GitHub
commit b1feeee34c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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