Software Distributor Administration Guide for HP-UX 11i

Creating Software Packages
Adding Control Scripts
Chapter 10 305
Adding Control Scripts
SD-UX supports execution of product and fileset control scripts that
allow you to perform additional checks and operations with other HP-UX
commands and functions. The swask, swinstall, swconfig, swverify, and
swremove commands each can execute one or more control scripts on the
primary roots. You can write the scripts and include them in your
software package. All scripts are optional but many times are needed
correctly complete the task that you want your software package to
perform. See Chapter 11, “Using Control Scripts,” on page 369 for a
complete discussion of control scripts.
SD-UX supports the following types of scripts, which can be defined for
products and fileset:
Checkinstall Analyses each target to determine if the installation
and configuration can take place. (Executed by
swinstall.)
Checkremove Analyses each target to determine if removal and
unconfiguration can take place. (Executed by
swremove.)
Configure Configures installed filesets or products. (Executed by
swconfig and swinstall.)
Fix Corrects and reports on problems in installed software.
(Executed by swverify.)
Postinstall Performs additional install operations (such as
resetting default files) immediately after a fileset or
product has been installed. (Executed by swinstall.)
Postremove Performs additional remove operations (such as
restoring “rollback” files) immediately after a fileset or
product has been removed. (Executed by swremove.)
Preinstall Performs file operations (such as removing obsolete
files) immediately before installation of software files.
(Executed by swinstall.)
Preremove Performs additional file operations (such as removing
files created by a preinstall script) immediately before
removal of software files. (Executed by swremove.)