On Oct 28, 2008, at 1:56 AM, raju p wrote: please have a look at the installer documentation for InstallationCheck scripts.this provides ways to quit installer and provide user with warnings / messages
To elaborate a bit:
Installers have several ways of denying installation entirely. The old method is to have a unix executable called InstallationCheck, which can return an error, a warning, or a nonError code. Typically people write these in perl or one of the shell scripting languages.
There's also a newer, _javascript_-based "distribution script" that has the same functionality. It is preferred because _javascript_ provides a sandbox which prevents Installation Check scripts from altering the user's disk.
If an Installation Check returns an error, the installation window will show an error and prevent the user from continuing to install. In 10.5, for example, the error drops down on a sheet and presents a button called "Close" which quits the installer.
This seems like what the client wants: The user sees an error, acknowledges it, and the install quits. It requires no extra code and is compatible with the command line installer.
(There's also Volume Check scripts, which prevent installation on particular disk volumes.) |