Reading on disk changes of Info.plist
Reading on disk changes of Info.plist
- Subject: Reading on disk changes of Info.plist
- From: Daniel Harvey <email@hidden>
- Date: Mon, 11 Aug 2008 15:40:35 -0700
- Acceptlanguage: en-US
- Thread-topic: Reading on disk changes of Info.plist
I’m working on a product that would like to be able to
compare the installed version with the required version so it can give advice
if users have an out of date loaded version, if the installed version is less
than the version required they need to do an upgrade. If the installed version
is greater than or equal to the requested version they need to restart the
process.
Reading the Info.plist in the bundle doesn’t seem to
be effective. I’m guessing that it is cached in memory, because changes
on disk aren’t observed until the process restarts. I can read the Info.plist
in the .pkg bundle in /Library/Receipts, but it is my understanding that whole
Receipts folder may not be around in future releases.
My questions are, what is considered the best way to know
the version of a bundle that gets updated while it’s loaded? Failing that
are there any guarantees about how long /Library/Receipts will be around?
|
_______________________________________________
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