aaronparker / packagefactory

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

PostInstall: Copy function anomaly #29

Closed skyblaster closed 1 year ago

skyblaster commented 1 year ago

With the build script below, initial_preferences.txt does land in C:\Users\Jason\Downloads\GoogleChrome\Source\

Set-Location -Path "C:\projects\packagefactory"
$params = @{
    Path        = "C:\projects\packagefactory\packages"
    Application = "GoogleChrome"
    Type        = "App"
    WorkingPath = "C:\Users\Jason\Downloads"
    Import      = $true
}
.\New-Win32Package.ps1 @params

However, I'm seeing the following error on client machines using the stock Chrome example: <![LOG[Copy-File: Cannot find destination: C:\Program Files\Google\Chrome\Application\initial_preferences]LOG]!>

aaronparker commented 1 year ago

This should be working now - see PR #34. I've tested this with Chrome in my lab and I'm now getting the expected initial_preferences file