Hi,
I’m writing an uninstaller for our software, which
will be distributed as a metapackage (i.e. will have 3 packages inside, one
that has two system extensions, and two others that default to the
/Applications folder).
My plan is to find the installation receipt, i.e.
/Library/Receipts/SMART Board.pkg and use the Info.plist’s IFPkgRelocatedPath
key to find where the software was installed and then delete the files.
To my horror, I was playing around with the Installer and
tried installing the software in different locations, and it appears that
installation receipts are not always placed in /Library/Receipts. Here is what
I tried:
Installation Location - Where I found the installation
receipt
/Applications (default) - /Library/Receipts
/Users/softwaredevelopment/Applications - /Users/softwaredevelopment/Library/Receipts
/Users/Documents/test/test2 - /Users/softwaredevelopment/Library/Receipts
where softwaredevelopment is my account’s short name
I also tried installing one of the packages by itself (apart
from the metapackage that the general user will use) to /Volumes/BuildingVolume
(a non-bootable volume) in the folder test, i.e. a full path of /Volumes/BuildingVolume/test
and Apple Installer created the folder /Volumes/BuildingVolume/Library/Receipts
to hold my receipt!
I’m starting to get a little bonkers here, so my
question is, what is the best (preferably documented) way to find where my
…Library/Receipts folder is?
Thank you
kindly and have a great day,
Ben Lam
Software Developer, Build/Install
SMART Technologies Inc.
email/MSN: email@hidden | tel: 403.802.3328
Men are respectable only as they respect.
-Ralph Waldo Emerson