Re: How to skip the installation when install a lower version. (PackageMaker3.02)
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=kuIluQvCkIAGa9SJYIx16Ha9GMHhv/zKWAEz1jLnmfI=; b=qnEDIbkDFP1xTDRuG0tE99XAzvcqmlmTVS9UYi+PXs1nGRnlsdAH4pDW1lEBb52E1w WBMQfGxJohlNY0U437bydQkIMnpXZ3iP4qVxT0beJoT0iu++DKBmXSumalKTWWalZvoX g8nIZBR5R+xCrU4Yb9VlTP0JcG5F8NzvzGUUU= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=BwSSbod3hPojUHRcJSmKi49IYe7sEmbQh6Qbic8whlFjK43YQgM/zO9n7SzCOUL7Ji godq4OpwA3OfZCBoO0naOFfgZCU1f5BeERcyv4RHJdq5P1ELnw2vyDpNubRrETUpVbY7 PW/Bk5NA9EiXUFIlGSjS1prblLrbLeAYom/Yc= On Nov 28, 2008, at 6:30 AM, Gu, Kevin wrote: Hi there, The "Script Repository" I set is like: function VersionCheck() { ...... } 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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". 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev