Setting up installation requirements
Setting up installation requirements
- Subject: Setting up installation requirements
- From: "R. Padraic Springuel" <email@hidden>
- Date: Tue, 21 Oct 2008 14:33:50 -0400
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.
Any help on the matter would be greatly appreciated.
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
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________
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