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.
A strings file defines messages in the following format:
"<message_ID>" = "<message_string>"; |
<message_ID>: Integer between 16 and 31.
<message_string>: Informational 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."; |
Last updated: 2006-07-24