Re: Distribution script problem
Re: Distribution script problem
- Subject: Re: Distribution script problem
- From: Christopher Ryan <email@hidden>
- Date: Thu, 25 Oct 2007 15:15:13 -0700
Atticus,
There should be a dump of the JavaScript in the Installer log with
something like:
Oct 25 15:10:44 il0102b-dhcp59 Installer[340]: 015: if(!
(pm_install_check(); == true)) { <---------------- *** JavaScript
Error ***
Pointing to the "general" location of the javascript error.
Additionally, I would change your code to be:
result = (-1 !=
system.compareVersions(my.target.systemVersion.ProductVersion,'10.5'))
"compareVersions()" is used for comparing number "tuples" and ensures
it will do the right thing when comparing 10.5.3 with 10.5 in the
future (of course, off the top of my head, I can't think of a case
where the normal comparison would go wrong, although I know there are).
Chris
I have a distribution installer that is giving me some trouble. I
have three packages, two of which I want selected all the time. I'd
only like to display (and select) the third package in the customize
window on 10.5 and higher. I created a simple script in my global
scripts like so:
function checkLeopardOrHigher() {
var result = false;
try {
result = my.target.systemVersion.ProductVersion >= '10.5';
} catch (e) {}
return result;
}
and then for each of start_selected, start_enabled and start_visible
I set the value to "checkLeopardOrHigher()". This works fine on my
machine and another test machine, but some of my testers have gotten
an error:
"Error Reading Package
There was an error while evaluating JavaScript for the package."
One user was on 10.4 and one was on 10.5. I got the same error
earlier when I had a had a syntax error in my script. Does anyone
have an idea what I might be doing wrong?
Thanks,
Atticus Gifford
_______________________________________________
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
_______________________________________________
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