Re: Detect Intel System?
Re: Detect Intel System?
- Subject: Re: Detect Intel System?
- From: Duane Murphy <email@hidden>
- Date: Thu, 05 Aug 2010 17:02:38 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Aug 5, 2010, at 3:40 PM, Jonas Maebe wrote:
>
> On 05 Aug 2010, at 23:59, Duane Murphy wrote:
>
>> Our product does not run on PPC hardware. The installer installation check script checks if the current hardware is Intel in order to continue.
>
> You can add gestalt checks in the installer via the Package Builder GUI (don't use a script). There is one for the system architecture, and you can let it check against the constants listed at http://developer.apple.com/mac/library/documentation/Carbon/Reference/Gestalt_Manager/Reference/reference.html#//apple_ref/doc/constant_group/System_Architecture_Selectors (make sure to use the numerical value, since the installer does not support symbolical constants and will treat them as strings).
Thanks Jonas, good idea.
Unfortunately, we are living in an old system where the scripts and package are constructed with scripts not with package maker. So we don't have access to the Gestalt features of package maker, at least I'm not sure how to get to them without Package maker.
The script is written in perl. I checked out the Mac::Gestalt package but it seems to be pretty out of date. No 64-bit support and gestaltSysArchitecture doesn't return anything on Intel.
<sigh>
Still searching for alternatives.
...Duane
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 10.0.2 (Build 13)
Charset: us-ascii
wsBVAwUBTFtRKUrg9acQ4r2CAQjjBQgA6mDPGw9oTER/VFOY7pQEWsSn1VX1BZLi
mQQJhZ3ciJ0l6ZNKoIIX0/IKwQSjrITEG7KimTB93B6klZH5o8V9WTuG0wMal5AE
tY/LLRwvIQg649GoZ1B3aXJR/JlKpCygGlllbl9MALtRpdgrto+YrTPehc3tzjn/
CfpfkeZw3vFuvYyP71JUB4dFB8WTcIWBTE9uWshu2W5HEmwmTS9Gs27kX9OYu7uc
JWz7EGHx8FjmM7Nl3gMg612pWJU6QwFgQhoTbE2BPq/9Kl+SgoX48rTNC1R178YK
Sg4EOQYdrQ/Hx45lyzYoJqJ8FB7AHdegIVXzW/Tg/A6q9nR5Wl9fqA==
=i8JW
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden