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=BvBufirAIskX/Vg/NjtX3TKh/LNuoEBIWCngJUR1rqk=; b=I1PufdjeIgdBel7yTrPlLcDWzY9nEgcBK3qO7gt3QjgSMPJNaJdT65EW0ZZ+mKVVwb 8pdNqEUR+Yi/XeRnUk2j+NTsCZHyPRERwjxWfwGqrZyYgsRqiUgu2TNW+Os60QTYX4dY 1qsE3hlDg1TcDUSQoLXNaP470bXKU6tCOmo2Y= 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=drTt5Qxyy/XWrCn2okT8zW8eyP9buO7iUhDUMyhrbI30cFiNuSCfQ4MZKxHxkZbScd V5XXdeHZC5wKHG4QvjuWlN4uXfBtoiCgZBt4ve/JpEsCcNZwxQpAo0ZOJpSzQi2gU+lW ZH3SIKTK8LyH2Z5UD5xE/ebUm/0YvFbSBZkIU= On Nov 26, 2008, at 4:29 AM, Gu, Kevin wrote: Hi all, I have tried the "Package Version", but it doesn't work. I use PackageMaker 3.02 on Leopard. Any help will be highly appreciated. Thanks in advance. my.target.receiptForIdentifier() As far as I can tell, you can: - get the version of your package installed on the target disk - finally you can compare both values with system.compareVersions You will need to check that the different values exist or use try/catch, My $0.02 _______________________________________________ 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 know this might be a very simple question, but I tried and failed many times and have to write this mail. What I want is very simple: 1. Installation runs when install an initial version or install a higher version. 2. Installation skips when install an lower version. If you use a distribution script, it might be worth giving a look at the following target task: var tInstalledPackageVersion; tInstalledPackageVersion=my.target.receiptForIdentifier ('com.apple.MacOSX.lang.no'); /* Example */ system.log(tInstalledPackageVersion.version); - get the version of a package in your distribution script using the choices > packages > version. This email sent to site_archiver@lists.apple.com