DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Packaging your software applications

Script processing

You can customize the actions taken during installation by delivering installation scripts with your package. The decision on which type of script to use depends upon when the action is needed during the installation process. As a package is installed, pkgadd(ADM) performs the following steps:

  1. Executes the request script.

    This is the only point at which your package can solicit input from the installer.

  2. Executes the preinstall script.

  3. Installs the package objects.

    Installation occurs class-by-class and class action scripts are executed accordingly. The list of classes operated upon and the order in which they should be installed is initially defined with the CLASSES parameter in your pkginfo(F) file. However, your request script can change the value of CLASSES.

  4. Executes the postinstall script.

When a package is being removed, pkgrm(ADM) performs these steps:

  1. Executes the preremove script.

  2. Executes the removal class action scripts.

    Removal also occurs class-by-class. As with the installation class action scripts, if more than one removal script exists, they are processed in the reverse order in which the classes were listed in the CLASSES parameter at the time of installation.

  3. Executes the postremove script.

The request script is not processed at the time of package removal. However, its output (a list of parameter values) is saved and so is available to removal scripts.


Next topic: Installation parameters
Previous topic: The installation scripts

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003