diff --git a/AppHandling/Get-NavContainerAppInfo.ps1 b/AppHandling/Get-NavContainerAppInfo.ps1 index 34cc7f50d..b2c357bda 100644 --- a/AppHandling/Get-NavContainerAppInfo.ps1 +++ b/AppHandling/Get-NavContainerAppInfo.ps1 @@ -78,7 +78,7 @@ try { $script:installedApps = @() function AddAnApp { Param($anApp) - #Write-Host "AddAnApp $($anapp.Name) $($anapp.Version)" + Write-Host "AddAnApp $($anapp.Name) $($anapp.Version)" $alreadyAdded = $script:installedApps | Where-Object { $_.AppId -eq $anApp.AppId -and $_.Version -eq $anApp.Version } if (-not ($alreadyAdded)) { #Write-Host "add dependencies" @@ -89,15 +89,15 @@ try { } function AddDependency { Param($dependency) - #Write-Host "Add Dependency $($dependency.Name) $($dependency.Version)" - $dependentApp = $apps | Where-Object { $_.AppId -eq $dependency.AppId } + Write-Host " -- Add Dependency $($dependency.Name) $($dependency.Version)" + $dependentApp = $apps | Where-Object { "$($_.AppId)" -eq "$($dependency.AppId)" } if ($dependentApp) { @($dependentApp) | ForEach-Object { AddAnApp -AnApp $_ } } } function AddDependencies { Param($anApp) - #Write-Host "Add Dependencies for $($anApp.Name)" + # Write-Host "Add Dependencies for $($anApp.Name)" if (($anApp) -and ($anApp.Dependencies)) { $anApp.Dependencies | % { AddDependency -Dependency $_ } }