From 575c02b86d3028565821c9b8e022b39340b764ca Mon Sep 17 00:00:00 2001 From: Tu Dinh Date: Mon, 5 Jan 2026 15:34:41 +0100 Subject: [PATCH] PSDApplications: Properly install app dependencies Install-PSDApplication only acts in the end{} block, and so will only receive the last dependency in the list if we simply pipe a list to it. Signed-off-by: Tu Dinh --- Scripts/PSDApplications.ps1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Scripts/PSDApplications.ps1 b/Scripts/PSDApplications.ps1 index 1eb0683..2ce73d5 100644 --- a/Scripts/PSDApplications.ps1 +++ b/Scripts/PSDApplications.ps1 @@ -92,10 +92,7 @@ function Install-PSDApplication # Process dependencies (recursive) #Write-Verbose "$($MyInvocation.MyCommand.Name): Process dependencies (recursive)" Write-PSDLog -Message "$($MyInvocation.MyCommand.Name): Process dependencies (recursive)" - if ($app.Dependency.Count -ne 0) - { - $app.Dependency | Install-PSDApplication - } + $app.Dependency | ForEach-Object { Install-PSDApplication $_ } # Check if the app has been installed already #Write-Verbose "$($MyInvocation.MyCommand.Name): Check if the app has been installed already"