Re: How do I share a java script with others?
Re: How do I share a java script with others?
- Subject: Re: How do I share a java script with others?
- From: Christopher Ryan <email@hidden>
- Date: Tue, 3 Jan 2006 17:03:22 -0800
On Jan 3, 2006, at 4:59 PM, Kevin Hoyt wrote:
Hi all,
I'm new to this so let's pretend that I've written a java script
file for
use with a distribution.
Question 1:
It looks like PackageMaker uses the .js and .plist files inside the
PackageMaker.app/Resources folder. I'm betting I could put my new one
there and it'd get picked up. However, the problem with this
approach is
that it's difficult to keep files outside of our source tree up to
date.
Is there another way to get PackageMaker to find where java scripts
are
located?
Question 2:
In PackageMaker, there is a 'Global Scripts' heading, is it
possible to
add another script section that is in another location?
Global Scripts are sort of mistitled. In a distribution script you
have a collection of scripts (in the <script> section). The global
scripts list is just a list of all the functions available. You
write all your scripts in the global list and then call the scripts
from the installationCheck, VolumeCheck, or the choice scripts
(selected,enabled,visible,start_*).
Question 3:
On the 'Global Scripts' pane there is a check box for 'Allow External
Scripts'. This is not described in the help, what is it for?
It means that your script can call system.run() or system.runOnce()
which will run an external executable. This flag allows the
installer to know that an external executable is being run and to
warn the user. If that check is not selected, the installer will not
run system.run() functions.
Chris
Kevin Hoyt
_______________________________________________
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