More on Install progress messages
More on Install progress messages
- Subject: More on Install progress messages
- From: Kevin Brock <email@hidden>
- Date: Fri, 24 Jul 2009 16:33:40 -0700
We were trying to change the install progress messages to something a
little more friendly.
We need a signed package, so using older versions of package maker, or a
non-flat format, wasn't really an option.
It looks like there's no way to modify the messages through the GUI.
1) The progress messages, "Installing xxx" are just using the name of
the package, xxx.pkg, in the flat package.
2) The name of the package is derived from the actual item being
installed. e.g, "Foo Bar.app" becomes fooBar.pkg, and a file named
com.mine.daemon.plist becomes comminedaemon.pkg.
So, I used pkgutil to expand the package, renamed the actual package
files in the expansion directory, and then modified Distribution to
reflect the new package names.
Reflatten the package, sign and we're good to go, almost.
The problem is that this only works with install items which are
bundles. So Foo.app I can give a new pacakge name to, or Bar.kext, but
a daemon named somedaemon, which is being installed maybe in /usr/sbin,
can't be renamed. If I try to rename that package I get an error from
Installer when I try to install saying that there's nothing to install
in that package. This is true also if the contents are a directory tree
with only non-bundle items.
You also can't rename things to names which have spaces. I tried doing
this, using standard HTML space codes. #Foo Bar.pkg in Distribution
expanded correctly, and there was a package named "Foo Bar.pkg", but
Installer gave me the "nothing to install" error. It *did* look for the
correct package name, though. Just couldn't process it.
So, I got part of what I needed. I'm astonished at the lack of
robustness and *extreme* lack of configurability in this stuff though.
If these things are doable in a standard way, then I'm even *more*
astonished at the lack of documentation. But then PackageMaker's always
been a little lacking in that area compared to other dev tools...
Kevin
_______________________________________________
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