FriendsOfMDT / PSD

PowerShell Deployment
MIT License
526 stars 83 forks source link

Install a single application with Application bundle selected #165

Open Rehpicul opened 3 months ago

Rehpicul commented 3 months ago

When adding a task to install a single application and pointing that to an application bundle the only application that ends up on the imaged computer is the last application in the Dependencies List. I have verified this for the actual files being copied. I have not verified if all the installs are being called but it did not appear to be the case. I am investigating to see if I can find the root cause and will update if I figure it out.

Rehpicul commented 2 months ago

The fix was to alter line 95 in the PSD Applications.ps1 file below is what it looks like now. Basically for-each was added for multiple dependensies.

if ($app.Dependency.Count -ne 0)
{
    $app.Dependency | % { Install-PSDApplication $_  }
}
PowerShellCrack commented 2 months ago

Just be aware: applications bundles are not supported in the PSDWizard. I'm not sure they are supported in the backend either. This is on my TODO list for the UI