I added the driver package (FTDIUSBSerialDriver.mpkg) using Project -> Add Contents. I left the Destination for / and added a Postinstall Action to open the resource: Open File - Type - Component...
When it runs, it installs my app and completes with no errors but never runs the postinstall action. I checked the install.log and see that I'm getting the following error:
Feb 11 10:56:52 bob-sellons-computer installd[82184]: PackageKit: Executing script "./postflight" in /private/tmp/PKInstallSandbox.oXkPcu/Scripts/com.thecompany.thecompanyprogram.postflight.pkg.WcZeUE
Feb 11 10:56:52 bob-sellons-computer installd[82184]: ./postflight: LSGetApplicationForInfo() failed with error -10814 while trying to determine the application with bundle identifier com.thecompany.thecompanyprogram.FTDIUSBSerialDriver.pkg.ftdiusbserialdrivermpkg.
In the choice/package the FTDI Package Identifier is com.thecompany.thecompanyprogram.FTDIUSBSerialDriver.pkg
Based on the error message "while trying to determine the application with bundle identifier" it seems like PackageKit could not figure out what type of file this is.
My best guess right now is that the PackageMaker Action editor is munging the package identifier. Seems to be adding ftdiusbserialdrivermpkg to the end. With the new (?) Actions editor, i don't see a way of manually overriding this.
I've tried changing the Action to opening the file in a Finder Window but get the following error:
Feb 11 11:15:59 bob-sellons-computer installd[82301]: ./postflight: 29:136: execution error: Finder got an error: An error of type -10814 has occurred. (-10814)
I've also tried copying the driver package into my app folder and adding it to the project. It shows up when I use the Action editor to create a new postinstall action but produces a similar error. I'm also still seeing the identifier being munged.
Any suggestions would be most welcome.
- Bob