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: "Bob Sellon" <email@hidden>
- Date: Thu, 11 Feb 2010 13:10:36 -0500
Frankly, I’m trying to avoid digging into the 3rd
party package right now. The package is clean and is known to work so I was
hoping to save some time and trouble (serial drivers, etc..). I’m
pretty much stuck so I guess that’s the next step.
Both choices have the “Initial State:” set for “Selected”
and “Enabled”.
From: Nick Peelman
[mailto:email@hidden] On Behalf Of Peelman Nick
Sent: Thursday, February 11, 2010 12:11 PM
To: Bob Sellon
Cc: email@hidden
Subject: Re: Running an embedded .mpkg within a package
Why wouldn't you just wrap both in an mpkg, rather than
trying to embed the 3rd party driver and having it install via a script? You
do your customizations to the mpkg, make the driver a mandatory install so it
can't be unchecked, and go.
-nick
"The best leaders inspire by example. When that's not an
option, brute intimidation works pretty well, too."
On Feb 11, 2010, at 11:22, 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.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.
_______________________________________________
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
No virus
found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.435 / Virus Database: 271.1.1/2646 - Release Date: 02/11/10
07:35:00
|
_______________________________________________
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