Re: requirements for installations...
Re: requirements for installations...
- Subject: Re: requirements for installations...
- From: Christopher Ryan <email@hidden>
- Date: Thu, 12 Jan 2006 10:52:24 -0800
I would make the Package in Package Maker without the rules you tried
to specify.
Then add a shell script named VolumeCheck script to the package (or
if you have multiple packages add it to the top level meta package).
The script should look something like (again, I am no shell script
master):
#!/bin/sh
if [ -x "$1/Applications/adobe acrobat5/distiller"]; then
exit 0
else if [ -x "$1/Applications (Mac OS 9)/adobe acrobat5/distiller"];
then
exit 0
else if [ -x "$1/Library/Application Support/adobe PDF/Settings"]; then
exit 0
else if [ -x "$1/Users/Shared/adobe PDF"]; then
exit 0
fi
# (1<<5) dissalows installation 16 is the index for a string in the
VolumeCheck.strings localized string file to use for the reason why.
exit ((1 << 5) || 16);
Note that it returns 16 as the string to display as an error. In
Contents/Resources/English.lproj/VolumeCheck.strings you should have
a file with:
"16" = "Reason for not allowing install"
in order to explain to the user why they can't install.
Chris
Hi Christopher...
Thanks for writing! We need to run on 10.2 and up (including 10.4).
How might I do this?
-----
Marc R. Hoffman
Computer Operations Manager
Morris Printing Group
Phone: 308.236.7888, Extension 272
Fax: 928.441.6032
http://www.morrisprintinggroup.com
http://www.morrispublishing.com
http://www.schoolmate.com
http://www.morriscookbooks.com
http://www.overstockcookbooks.com
http://www.studentagendas.com
http://www.morrispress.com
On Jan 12, 2006, at 11:28 AM, Christopher Ryan wrote:
Marc,
Which version of Package Maker are you using? What system must
this package run on?
If it needs to only work on Tiger (10.4) you could write this
logic by hand in JavaScript very easily. If you need it to work
previous to 10.3 then your best bet is writing a simple shell
script for your VolumeCheck script.
Chris
Hi all...
Please forgive this if this is an elementary question :-). I am
trying to do the following -
Create an installation package that checks that the following
conditions are present:
a. /applications/adobe acrobat5/distiller
OR
b. /applications (Mac OS 9)/adobe acrobat5/distiller
OR
c. /library/application support/adobe PDF/Settings
OR
d. /users/shared/adobe PDF
The problem here is that when I specify the installation
requirements for the package, it appears that the when pulling up
the "Edit Package Requirement..." dialog, there is no "or"
settings. When I set up multiple conditions, they ALL must be met
or the installation fails (i.e., each condition appears to be
separated by AND instead of OR). Is there a way around this?
We are trying to check for any instance of Adobe Acrobat on a
system, and obviously, no one is going to have every version of
Acrobat on his/her system since version 5!
Thanks in advance.
-----
Marc R. Hoffman
Computer Operations Manager
Morris Printing Group
Phone: 308.236.7888, Extension 272
Fax: 928.441.6032
http://www.morrisprintinggroup.com
http://www.morrispublishing.com
http://www.schoolmate.com
http://www.morriscookbooks.com
http://www.overstockcookbooks.com
http://www.studentagendas.com
http://www.morrispress.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
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