• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to determine if user's computer is PowerPC or Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to determine if user's computer is PowerPC or Intel


  • Subject: Re: How to determine if user's computer is PowerPC or Intel
  • From: Iceberg-Dev <email@hidden>
  • Date: Wed, 22 Apr 2009 11:32:55 +0200


On Apr 22, 2009, at 1:52 AM, Andrew Peckover wrote:

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...

Personally, I use system.sysctl('hw.cputype').

7 -> Intel

18 -> PowerPC

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?

'Warning'.

The documentation you're looking for is "Installer JavaScript Reference".

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.

It can be perl, sh, bash, python, AppleScript, executable, etc. _______________________________________________ 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
References: 
 >How to determine if user's computer is PowerPC or Intel (From: "Andrew Peckover" <email@hidden>)
 >RE: How to determine if user's computer is PowerPC or Intel (From: Adam Peck <email@hidden>)
 >Re: How to determine if user's computer is PowerPC or Intel (From: "Andrew Peckover" <email@hidden>)

  • Prev by Date: Re: Difference in installer plugins from 10.4 to 10.5
  • Next by Date: Re: Difference in installer plugins from 10.4 to 10.5
  • Previous by thread: Re: How to determine if user's computer is PowerPC or Intel
  • Next by thread: Using scripts to get info about a custom install location
  • Index(es):
    • Date
    • Thread