Re: pkgutil shows receipt not found on 10.5 Mac OS
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:mime-version:in-reply-to :references:content-type:message-id:content-transfer-encoding:from :subject:date:to:x-mailer; bh=naBy+80o0L0sQCq/zLeBfs/kp5WgzwiP8G4RiGpSKRU=; b=o2MNJftqX4kmFJL21QiazA6rUt4Q/7cBL4aCYDxwl1R88zJyWz4mz8bOul/gqGV30U km4lVDLn7obSChu/vm45otGaE1mlFgQ62DOTLPPxjX6RbMWzlYr7ycqa4EJD4XVzguGM E/imVD9cEKsCOmCq6P/3N8dArlNVqW5EDSdrA= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:content-type:message-id :content-transfer-encoding:from:subject:date:to:x-mailer; b=DcvrbwJ/fw0OUJjQjTpl2oERO1oc4+HTWFfTdz9EPvtFgnHFJX+HQAbHbuYejvGwxO H/ulpucopVGmT95nY2FUGCuDI3DzELaV7yEMoNANq8KZ3WnshoCCJqnlvGnkR+9IL5vU 35TxqBoZQrqjsy6qZhdHH9o2gYSOI1TwcHiF0= On Jun 30, 2010, at 3:50 PM, Sachin Porwal wrote: This will work on Mac OS X 10.5. It will just do nothing. _______________________________________________ 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... So a possible approach is to use a postflight (or postinstall script if you are using a flat package) in which you: - delete the receipts if it exists in /Library/Receipts (eventually you may need to look for $HOME/Library/Receipts) <Sachin> I tried to do that but how to find out the pkg Receipt name as i have the pkgid only. A user may change the pkg name & then deploy the pkg. With 10.4 pkg type, pkgutil does not work on 10.5.x systems, so i cant get the receipt info too. pkgutil -- forget will work fine on 10.6.x but not on 10.5.x. Well, if you know the identifier but not the name of the package, you will need to iterate through the Receipts folder, look at the Info.plist property list file of each receipt and find the one that matches the identifier. - remove the reference to it in the install database with pkgutil -- forget your.bundle.identifier <Sachin> On 10.6.x the receipt entries are not created till the end of postflight, so how to forget the pkg's own entries. In this case, run a secondary script that will wait a few seconds before calling pkgutil. This of course can be improved but I'm not sure it's possible to handle all the cases such as the installation requires a restart. Moreover this will not work on 10.5.x. This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev