site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Atticus, Pointing to the "general" location of the javascript error. Additionally, I would change your code to be: Chris function checkLeopardOrHigher() { var result = false; try { result = my.target.systemVersion.ProductVersion >= '10.5'; } catch (e) {} return result; } "Error Reading Package There was an error while evaluating JavaScript for the package." Thanks, Atticus Gifford _______________________________________________ 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/ryanc%40apple.com _______________________________________________ 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... 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 *** 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). 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: 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: 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? This email sent to ryanc@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Christopher Ryan