site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com It does work with any UNIX executable. You didn't specify the full path to ruby in your earlier example. Does this work? #!/usr/bin/ruby -pmb - F On May 2, 2007, at 6:00 PM, Bill Coderre wrote: Personally, I've never tried ruby and I'm no expert on magic cookies. Fritz Anderson wrote: On May 2, 2007, at 4:45 PM, Mike wrote: Did you remove any extension from the script's filename? Fritz Anderson wrote: ... _______________________________________________ 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/bierman%40apple.com _______________________________________________ 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... At 5:28 PM -0500 5/3/07, Fritz Anderson wrote: Well, I learned the minimal amount of shell scripting needed to duplicate my test-case postflight, and the /bin/sh version worked. This is very, very odd. Why shouldn't the installer work with just any UNIX executable? I'm tempted to say there's some residual bug, other than the use of Ruby, that prevented the Ruby postflight from working. I was under the impression that any unix executable can work, and that includes binaries and text files with the usual Unix "magic cookies" at the top. Here at Apple, we use a LOT of perl with this "magic cookie": #!/usr/bin/perl Maybe the guy who thinks the magic cookie is wrong is barking up the right tree. On May 2, 2007, at 3:24 PM, Mike wrote: The script needs to be named "postflight", not "postflight.sh" for example. Yes, indeed I did. In fact, the script in question has always been named "postflight," and has never had any extension. (And I just now checked in a Finder Info window to verify this.) Anyway, if the script had the wrong name, surely Installer.app would never notice it at all, rather than log a message about failing to run it? An off-list correspondent suggests that a Ruby script - even in the form of an executable beginning with "#! /usr/bin/env ruby" - might be illegal in a postflight role. I doubt this, but is it possible? - F I have in my package a script named 'postflight'. It appears in the Contents/Resources directory of the package. It has the executable bits set. It is a Ruby script, with the first line being #! /usr/bin/env ruby . Whenever I try the installer, the only error appearing in the log is this: <date> <hostname> : Install failed: The following install step failed: run postflight script for <myPackageName> This email sent to bierman@apple.com This email sent to site_archiver@lists.apple.com