aaronparker / packagefactory

A packaging factory for Microsoft Intune using Evergreen, VcRedist, and IntuneWin32App
https://stealthpuppy.com/packagefactory/
MIT License
63 stars 18 forks source link

Fix New-IntuneWin32AppPackage using PSAppDeployToolkit #52

Closed kenchan0130 closed 1 month ago

kenchan0130 commented 5 months ago

Description

If you configure the package to use the PSAppDeployToolkit, you will get an error that the file does not exist when you distribute the application.

The reason for this is that the PSAppDeployToolkit is not included when packaging the intunewin file.

Reproduce

Connect-MSIntuneGraph

$params = @{
        Path        = "E:\projects\packagefactory\packages"
        Application = "AdobeAcrobatReaderDC"
        Type        = "App"
        WorkingPath = "E:\projects\packagefactory\output"
        Import      = $true
}
.\New-Win32Package.ps1 @params