site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: Acmu21EdTAW6DnqTQcCzGhUAvullDADJedCQ Thread-topic: updaters again Hi, Perhaps you could turn off 'Allow Custom Location', and install x to a temporary location (eg /tmp/temporaryxfolder1.1), and then look for the previous version of x through its receipt package (/Library/Receipts) using a postinstall/postupgrade script. Info.plist in the receipt has a key called IFPkgRelocatedPath, so your script can read that value and copy x to there from its temp location. Or if the value is ./ (I think) then it hasn't been relocated and will reside in the default location. Regards Dave -----Original Message----- From: installer-dev-bounces+david.glover=prometheanworld.com@lists.apple.com [mailto:installer-dev-bounces+david.glover=prometheanworld.com@lists.app le.com] On Behalf Of Piotr Rychlik Sent: 27 March 2009 12:55 To: installer-dev@lists.apple.com Subject: updaters again Hi, Some time ago I asked how to create packages that are able to update previously installed files. Now, I am returning to the above subject, because none of the answers helped me to resolve my problem. The task is very simple. Suppose we have a file, say x, installed using the installer package created by PackageMaker. During the installation of x, user had freedom to choose the location for x. He also had to authenticate himself as administrator in order to proceed with the installation. Suppose that a new version of x is available. What I need is to create the installer package that will replace the old version of x with the new one. This updater should only ask the user to authenticate as administrator and should not ask for the destination (which should be exactly the same as the location of the old version of x). My application checks if its new version is available on the server. If it finds the one, it downloads and then calls the updater and quits. Could someone send me a simple example of such updater? Regards, Piotr Rychlik _______________________________________________ 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/david.glover%40prom etheanworld.com This email sent to david.glover@prometheanworld.com Promethean Limited is a company registered in England and Wales with company number 1308938 and VAT number GB 572 2599 18 ______________________________________________ Promethean Ltd and or associated and or subsidiary companies : The views expressed in this communication may not necessarily be the views held by Promethean Ltd and or associated and or subsidiary companies. This e-mail is for the exclusive use of the addressee(s). Unauthorised disclosure, copying or distribution is prohibited. This e-mail message has been swept for the presence of computer viruses. Promethean Ltd and or associated and or subsidiary companies accepts no liability for any loss resulting from this email transmission. Promethean, Promethean House, Lower Philips Road, Blackburn, Lancashire, BB1 5TH, UK. Please update your records accordingly. Thank you! ***************************************************************** This email has been checked by the e-Sweeper Service ***************************************************************** _______________________________________________ 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... This email sent to site_archiver@lists.apple.com