site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com User-agent: Microsoft-Entourage/11.1.0.040913
I managed to isolate the issue to the fact that its related to the fact that one of the items my postflight moves has a resource fork. Sure enough, I read a bit and learn that cp on 10.3 doesn't do them (an is throwing the package exception that I'm seeing?). Fine, I say, I'll install CpMac to /tmp and use *that* to move my .bundle (that has the resource) to where it needs to go. Even more outrageously, when I now install it under 10.3 sometimes it errors out, and sometimes it's successful (my guess is that CpMac is erroring out in certain situations when the dest file already exists--I don't know what situations--its not documented).
You should use ditto for copying files instead of cp because it supports resource forks back to at least 10.2.
Are you logging using echo in your postflight script so you can tell what is going on? What does the installer log say?
Ah, very good info--thanks! Sure enough, using that (with the --rsrc switch) keeps my resources in tact, yay. There never seems to be a shortage of misc utilities--I'm glad someone knows about them! The only remaining issue is that an installer exception occurs when the package gets run by a user with non-admin access (or so it seems). The package's target location is /tmp and I just put a single .txt file there (as a placeholder to prevent the 10.3 crash when you have no items to install). Meanwhile, preflight copies my items (in a folder alongside the package) to the user's library folder (using "$HOME"), so I don't see how the access level of the user running the package cause it to error out. Any ideas? Thanks! P.S. For your trouble, I sent you a free copy of our software (and you'll see your ditto at the bottom of preflight if you look!) _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com