Software Distributor Administration Guide (March 2009)

Table Of Contents
NOTE: You can define different versions of products for different platforms and
operating systems, as well as different revisions (releases) of the product itself. You
can include different product versions on the same distribution media.
10.3 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 (page 265) 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.)
Request
Requests an interactive response from the user as part of the
installation or configuration process. (Executed by swask,
swconfig, and swinstall.)
10.3 Adding Control Scripts 219