Merge pull request #357 from Romanitho/install-detection-review
Fix for app detection on version like x.x.0.0pull/359/head
commit
b1feeee34c
|
@ -16,7 +16,7 @@ Function Confirm-Installation ($AppName, $AppVer){
|
||||||
Remove-Item $JsonFile -Force
|
Remove-Item $JsonFile -Force
|
||||||
|
|
||||||
# Search for specific app and version
|
# 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){
|
if ($Apps){
|
||||||
return $true
|
return $true
|
||||||
|
|
Loading…
Reference in New Issue