Re: Struggles with PackageMaker and Iceberg scripts
Re: Struggles with PackageMaker and Iceberg scripts
- Subject: Re: Struggles with PackageMaker and Iceberg scripts
- From: Karl Kuehn <email@hidden>
- Date: Tue, 16 Mar 2010 13:01:35 -0700
On Mar 16, 2010, at 12:45 PM, Iceberg-Dev wrote:
>> I would be curious to get the Installer.app team's thoughts here; I would think that all the scripts would be getting executed the same way...It kind of makes sense that InstallationCheck is different, but at the same time I'm curious as to the Why.
>
> IIRC, it's not the installer process that is installing files on Snow Leopard.
>
> It is a launchd daemon (/System/Library/PrivateFrameworks/PackageKit.framework/Resources/installd).
This does not seem to be exactly the right description. I have been working a lot with this recently to try and work around badly written packages[1] for InstaDMG. A major trick for me in 10.5 was to wrap the installer process in a chroot jail, and that worked perfectly for the actual files that were installed, but did not work at all for things like Distribution Scripts (broke most of the iLife updaters for us). Recently I added a trick where I load a modified launchd plist in place of the one that operates the installd process, one that is chrooted into my target environment, and this works perfectly for Distribution Scripts (anything that uses the JavaScript environment).
Note that this latest trick does not actually do anything for prefilight/postflight scripts (anything that is not JavaScript) as these are run by the installer process (so don't bounce though launchd).
I have filed bugs requesting ways around this, but in most cases the problems can actually be laid at the feet of the installer writer (use the "Target" rather than "System" methods and you should be better off, and use $3 when writing scripts). So I don't know if I am going to get any traction on this. And the folks writing the iLife Updater installers don't seem to care about my outstanding bugs (not even enough to just close them as "won't fix").
--
Karl Kuehn
email@hidden
[1] At least badly written from the perspective of not installing on volumes other than the boot drive. _______________________________________________
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