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=uBKFSkvzF9O2FGxsRUq+zlfBVsShi6Bg2Rk05UfGmpY=; b=hsRR1f8C3pdObxi+EpJf6vFO44uWe/v0oDArSq3JoIMTawPajGR7mGLDnck7MRku96 QtazgrJlbHU8zrV9cYikQnNMizi4ejaGEA5WkHs2VjUM6XoIYTckOWextDW7kFPPSJZe Ou8m7H0z0u6UQrHpCtLFwOqkPU15PCxjBLVeQ= 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=wZ6LY+ooyIRT95gN+0eoQasZOGvpotx53XmwH2JccNxTZ+9mbnn3yhQceeWYU85qR+ XtITtxY2BG8fYycIJsZwJ4orhPscVreeXhgsAbaKmCke+e6oI/hhFjS06GbbaKabVgua zTHI9sB6cSz5nC/Zpxjrgmy2Pt+T+Cyjt/lKU= On Nov 28, 2008, at 6:30 AM, Gu, Kevin wrote: Hi there, The "Script Repository" I set is like: function VersionCheck() { ...... } _______________________________________________ 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? 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). This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev