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: Mon, 1 Dec 2008 22:52:21 +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?
Might be easier to just use my.choice.packageUpgradeAction.
See Installer Javascript Reference documentation page 12.
_______________________________________________
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