Re: How to skip the installation when install a lower version. (PackageMaker3.02)
Re: How to skip the installation when install a lower version. (PackageMaker3.02)
- Subject: Re: How to skip the installation when install a lower version. (PackageMaker3.02)
- From: Iceberg-Dev <email@hidden>
- Date: Sat, 29 Nov 2008 12:10:43 +0100
On Nov 28, 2008, at 6:30 AM, Gu, Kevin wrote:
Hi there,
I use Package Maker 3.02 to make a distribution package on Leopard.
I set "Result of JavaScript" in the package's "Requirements" tab.
In the script, I can run most JS like "var a = 'someValue'",
"system.log()", "system.files.fileExistsAtPath()", "if...else...".
But it seems that I cannot use objects like "my.target" and
"my.choice".
I print them into install.log, the result is "undefined".
The "Script Repository" I set is like:
function VersionCheck() {
......
}
Do I need to add some XML style code so that I can use the "my"
object?
(such as <installer-gui-script minSpecVersion="1">)
Is there some sample script suitable for PackageMaker3?
Since you want to prevent the installation of a package, you need to
work with the requirements for a choice (a choice includes one or
more packages as can be seen in the source list).
my.target should be defined for requirements of choices. It's
probably not if you're writing an InstallationCheck script.
Some of the values returned for my.target.receiptForIdentifier will
not be defined since a receipts data base or folder may not exist on
the targeted volume (as can be seen in Mac OS X installation process
when it complains that there's no data base).
_______________________________________________
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