Setting up installation requirements
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914) Any help on the matter would be greatly appreciated. _______________________________________________ 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 I'm making an installation package for the first time and am trying to figure out how to setup the installation requirements. In particular, I'd like to setup the installer to check that Perl 5.8 or higher is installed on the user's system. My first thought on this was to do a "File Exists" check for /Library/Perl/5.8.6/AppendtoPath, and raise a warning (but not prevent install) if the file didn't exist (i.e. the installer would look for the same version of perl that I have and if it wasn't there, warn the user to check that their own version was more recent). However, that recommendation caused an install fail on a system with perl 5.8.8, which means it was being interpreted as a requirement, not a recommendation (installation worked fine on another system with perl 5.8.6). Since I don't know why a recommendation would cause an install fail, I thought to look for something whose path was a bit less dependent on version. My second though was to check for the existence of /usr/bin/perl, but that's versionless. So, while it will check to make sure perl is present on the system, it's not checking on the version number. I do know that typing "perl -V:version" at the command line will return "version='#versionnum#';" but I can't seem to figure out how to incorporate that into a requirements check in the PackageMaker interface. The Apple documentation seems to indicate that I can write an executable that will perform the check, but it isn't real clear about how to go about doing this, nor how to tell PackageMaker to use the script. I'm working on OS 10.4.11 with PackageMaker 2.1.1, if that makes a difference in how I do this. -- R. Padraic Springuel smime.p7s
participants (1)
-
R. Padraic Springuel