Re: pkgutil shows receipt not found on 10.5 Mac OS
Re: pkgutil shows receipt not found on 10.5 Mac OS
- Subject: Re: pkgutil shows receipt not found on 10.5 Mac OS
- From: Iceberg-Dev <email@hidden>
- Date: Wed, 30 Jun 2010 23:22:02 +0200
On Jun 30, 2010, at 3:50 PM, Sachin Porwal wrote:
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 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden