Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Strings Files for InstallationCheck and VolumeCheck Denials

When InstallationCheck cancels an install or when VolumeCheck disallows a volume to be chosen as the installation volume, the Installer application displays a default message or the message specified by the executable’s return value. To specify your own messages, place the files InstallationCheck.strings and VolumeCheck.strings (for system requirement and volume requirement failure messages, respectively) in a localized directory inside the package’s scripts directory. Table A-1 shows the directory names for the languages Installer recognizes.

Table A-1  Localized directories

Dutch.lproj

English.lproj

French.lproj

German.lproj

Italian.lproj

Japanese.lproj

Spanish.lproj

da.lproj

fi.lproj

ko.lproj

no.lproj

pt.lproj

sv.lproj

zh_CN.lproj

zn_TW.lproj

A strings file defines messages in the following format:

"<message_ID>" = "<message_string>";

Listing A-1 and Listing A-2 show sample InstallationCheck.strings and VolumeCheck.strings files, respectively.

Listing A-1  A sample InstallationCheck.strings file

"16" = "Can't install unless you have a Super Drive.";
"17" = "Can’t install unless you have more than 128MB of RAM.";

Listing A-2  A sample VolumeCheck.strings file

"16" = "Can't install on volumes named Panther.";
"17" = "Can’t install on volumes named Jaguar.";


< Previous PageNext Page > Hide TOC


Last updated: 2006-07-24




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice