Re: Check for file before installing
Re: Check for file before installing
- Subject: Re: Check for file before installing
- From: Jack Repenning <email@hidden>
- Date: Fri, 21 Sep 2007 09:32:44 -0700
On Sep 21, 2007, at 6:04 AM, email@hidden wrote:
I am trying to figure out if there is a way to check for a certain
font in
Library/Fonts, and if not then install it. Problem is there is no
receipt
for it since it is a font that should have come standard with the
OS, but
could possibly have been deleted by the user. Only way I can see
to check
for the existence of a file is through receipts - is there another
way?
And is there a way to cancel this package of the metapackage if it
finds it
but continue on with the rest of the install?
Your idea is deeper and more troublesome that you seem to suppose.
If you do this, you will have created the situation where two
different packages install the same file. No installer I know of
handles this well. It would be better to do your check (in
InstallationCheck) and fail the install with a helpful message (like
"You appear to be missing some of your system fonts; please update
the system package XYZ from your installation media.").
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"
_______________________________________________
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