Problem with Hints.plist trick
Problem with Hints.plist trick
- Subject: Problem with Hints.plist trick
- From: Glenn Zelniker <email@hidden>
- Date: Fri, 18 Aug 2006 17:03:35 -0400
All,
I'm building an installation package and I've attempted using a
Hints.plist file in the package's Resources folder to prevent the
installer from deleting a file in one of the directories that gets
used for part of the installation. Hints.plist looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<array>
<string>/Library/Application Support/This Particular Application/my-
sqlite.db</string>
<string>dontobsolete</string>
</array>
</array>
</plist>
In other words, I don't want the installer to trash the file my-
sqlite.db in the /Library/Application Support/This Particular
Application directory.
This scheme *almost* works. Indeed, the file does not get deleted, as
desired. But the installer generates an error, saying that some of
the files may not have been installed. I can verify that all of the
files were installed, so the "may" part of the error is technically
true. But there are two bigger problems:
1. I don't want my panicky users to see the error message
2. The error prevented the postflight script from executing
Is there something I need to do to the pmproj file to prevent this
error from being thrown? I'm not telling the pmproj about
Hints.plist; I drop it into the .pkg manually after the fact because
I don't really understand how to specify the stuff in the Hints file
from within Package Maker.
Glenn Zelniker
_______________________________________________
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