Re: How to determine if user's computer is PowerPC or Intel
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:x-priority:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; bh=jjMXqekPWyxSeDi+qsMPrvRlsaXvr37HvyDhwQ484cc=; b=mpiyhdZsHyPYnTNlMfw0b+FlRrc9I/ArO3Uc6vGA4Pf1YaIo7Tb0gKoEgPmQmlqS0h VsCx8FfcGHV+5JgzLaN2b1pvaYEehIHbhXqDC4VnWYUXWHmDP3S+fFEcx30rhAfvZtI4 ZqaWkbmdzPM4HGd1pst/A9ooxy5npoWnD++kE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:x-priority:content-type :message-id:cc:content-transfer-encoding:from:subject:date:to :x-mailer; b=VqQJTb+enIQSmmZiJANtvyEJMg/dcjjvs9c5N9nLhfHFU0lrXxRvDRZHjZTLCCBrN5 SJLn4pQ0k6MdE7icq7A31dN8uvZ2Yqw5RR3jAIb5UCkH1UvLhjUx6nc8j4bJsfvySy7o IebzOFLnKPznGMhiQraGNkZs50qRAW6cdo7z8= On Apr 22, 2009, at 1:52 AM, Andrew Peckover wrote: Personally, I use system.sysctl('hw.cputype'). 7 -> Intel 18 -> PowerPC 'Warning'. 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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? 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev