system.env.OS_INSTALL
system.env.OS_INSTALL
- Subject: system.env.OS_INSTALL
- From: varinder saini <email@hidden>
- Date: Wed, 24 Mar 2010 04:01:19 -0700
Hi All,
I have seen following function under requirements in most of the apple packages :
This is form Xcode package
function volumeCheck()
{
if (system.env.OS_INSTALL == 1 )
{
return true;
}
// must have an os
if( system.files.fileExistsAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist") == false )
{
my.result.type = 'Fatal';
my.result.message = system.localizedString('ERROR_OSVER');
return(false);
}
//10.6 or above
if( system.compareVersions(my.target.systemVersion.ProductVersion, '10.6') == -1 )
{
my.result.type = 'Fatal';
my.result.message = system.localizedString('ERROR_OSVER');
return(false);
}
return true;
}
I have few doubts regarding this:
1. What is "system.env.OS_INSTALL"? What does OS_INSTALL returns? and where can I find some documentation on it (if any)
2. Whenever I am trying to install Xcode I am getting following exceptions in the install log:
Mar 24 03:53:12 Lab-Computer-5 Installer[1708]: IFJS: *** exception: TypeError: Result of _expression_ 'my.target' [null] is not an object.
Mar 24 03:53:19: --- last message repeated 1 time ---
Mar 24 03:53:19 Lab-Computer-5 Installer[1708]: IFJS: *** exception: TypeError: Result of _expression_ 'my.target.systemVersion' [null] is not an object.
Mar 24 03:53:49: --- last message repeated 5 times ---
Why 'my.target' and 'my.target.systemVersion' is returning null
3. volumeCheck() clearly checks for OS 10.6 and above but when I install using command line, I am able to install it to 10.5.x too. Why is this happening? Is it because 'my.target' and 'my.target.systemVersion' is returning null
Any pointers on this will be greatly appreciated.
Thanks in advance.
_______________________________________________
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