Re: Conditional install of special package under 10.2
Re: Conditional install of special package under 10.2
- Subject: Re: Conditional install of special package under 10.2
- From: Sanford Selznick <email@hidden>
- Date: Wed, 1 Jun 2005 10:19:38 -0700
At 9:07 AM -0700 5/31/05, Sanford Selznick wrote:
Hello,
My installer needs to run on 10.2, 10.3, and 10.4. When my
installer is run on 10.2, I need to install a second package. I
have the second package (mpkg file) from a third party. I don't
have the components of the second package.
How do I build my installer so the third-party installer will only
be executed on 10.2?
Per an off-list recommendation, I put an InstallationCheck into the
Resources folder of the third_party.mpkg. The script works when
uttered from the command-line.
When I double-click third_party.mpkg, it wants to install just fine.
Am I missing something? Shouldn't the InstallationCheck return value
of 64 just quit? Or is this a .mpkg thing?
[508 sanford@PBG4 Resources/] ls -la
-rwxr-xr-x 1 sanford staff 2192 Jun 1 10:04 InstallationCheck
And inside:
---
my $EXIT_VALUE = 0;
{
print "Doing checks\n";
# If 10.3 or better is booted, don't install this package.
if(CheckVersion("$SYSTEM_VERS", "10.3", "ProductVersion", ">=")) {
# exit silently
print "Exiting silently\n";
$EXIT_VALUE = 64;
last;
}
}
exit($EXIT_VALUE);
---
I'm also not seeing "Doing checks" or "Exiting silently" in
Console.app when I execute from the installer.
Thank you,
Sanford
_______________________________________________
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