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 14:51:26 +0200
On Jun 30, 2010, at 12:53 PM, Sachin Porwal wrote:
Thanks Stephane. Yes, you are correct about the receipts &
database. My problems are a bit different here. Let me explain them
once again:
1) The secondary pkg that i am trying to create, needs to cleanup
some receipts/database for another primary pkg(which has already
been installed). I do have the pkgid of primary pkg for which the
receipts/database needs to be cleaned up, with secondary pkg
scripts. Please suggest me the best approach to achieve the same on
10.5.x & 10.6.x (both the pkgs are 10.4 type non-flat pkgs).
2)The secondary pkg should not create its own entries in database/
receipts when it is deployed/executed. Please suggest me the way to
prevent entries in receipts/database when pkg is deployed on 10.5.x
& 10.6.x.
I don't know if this approach still works but during the transition
from PowerPC to Intel, if you needed to support Mac OS X 10.2 and you
were installing a Universal Binary, you had to remove the package
receipts upon installation to avoid a crash in Installer.app. A
solution at that time was to remove the receipts for the package from
the postflight script of the package.
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)
- remove the reference to it in the install database with pkgutil --
forget your.bundle.identifier
_______________________________________________
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