fix for app detection on version like x.x.0.0
parent
d8d71536e2
commit
4e69844b4a
|
@ -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