Thanks for helping. I got it working.
For anyone interested, here are some further details - it's the
"Result of Gestalt" requirement, value sysa, is: == 2
Apparently, "2" is for Intel and "10" is for
PowerPC. Mysterious...
I also started to look at the Distribution script
(Project menu | Raw Editing mode). I see that I might add some custom
items to that script.
What I'm wondering is... is there some kind of
reference manual for this? Is this _javascript_? For example, I see things
like
my.result.title =
my.result.message =
my.result.type = 'Fatal'
I take it that "fatal" means that the message
box just has a close button in it, and the installation quits. Are there
any different types of message boxes I can have, like what if I want a message
to be informational and allow the user to continue anyways?
What types of other scripts can I use with
PackageMaker, say for preinstall, postinstall, postflight etc.... are
these AppleScripts I write? Maybe I missed it, but just can't
find this info in the PackageMaker documentation.
Andrew
----- Original Message -----
Sent: Tuesday, April 21, 2009 12:27
PM
Subject: RE: How to determine if user's
computer is PowerPC or Intel
If you are using a
distribution script you could use:
system.gestalt(sysa)
to determine the processor type.
-Adam
I'm using OS 10.5.6 and
PackageMaker 3.0.3 (174).
Trying to figure out how the
installer can check to make sure that the user has an intel-based Mac, failing
to install if it's not and giving the user a message "sorry this program
requires an Intel based computer".
In Distribution -->
Requirements, I see there is an easy way to determine the OS version, and it
can pop up a nice message to the user. But I'm not finding a way to
determine processor type.
Perhaps I need to set that to
"result of script", then figure out how to make my own script for this.
If so, are there any sample scripts that do this sort of thing, check system
info?
_______________________________________________ Do not post admin
requests to the list. They will be ignored. Installer-dev mailing
list
(email@hidden) Help/Unsubscribe/Update your
email sent to email@hidden
|