Re: Running an embedded .mpkg within a package
Re: Running an embedded .mpkg within a package
- Subject: Re: Running an embedded .mpkg within a package
- From: Iceberg-Dev <email@hidden>
- Date: Fri, 12 Feb 2010 23:49:16 +0100
On Feb 11, 2010, at 5:22 PM, Bob Sellon wrote:
I'm trying to create a package using PackageMaker 3.0.4(179) that
installs my application but also runs a separate package that was
provided by a third party which provides USB drivers (in this case
FTDI USB serial drivers).
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.ftdiusbserial
drivermpkg.
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.
2 reasons why it's not a good idea:
- this solution would not work if you are installing the components
via ARD or via the command line with installer. Since you are
requesting to open a package through the UI.
- this solution creates a situation that may not be supported by the
3rd party package you are trying to install. For instance the $USER
env might be set to root in such a case.
There are multiple solutions to this problem:
1. You can just provide the packages as is and provide instructions
to install one package after the other.
2. You can create a new distribution using the 3rd party packages.
3. You can write an application wrapper to install the packages
automatically.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden