• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Distribution script problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distribution script problem


  • Subject: Distribution script problem
  • From: Atticus Gifford <email@hidden>
  • Date: Thu, 25 Oct 2007 15:20:16 -0400

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


  • Follow-Ups:
    • Re: Distribution script problem
      • From: Christopher Ryan <email@hidden>
  • Prev by Date: Re: software registration/payment/installation libraries
  • Next by Date: re: software registration/payment/installation libraries
  • Previous by thread: re: software registration/payment/installation libraries
  • Next by thread: Re: Distribution script problem
  • Index(es):
    • Date
    • Thread