Software Distributor Administration Guide for HP-UX 11i

Using Control Scripts
Introduction to Control Scripts
Chapter 11374
Fix Script
Defines the fix script run by swverify to correct and report problems
on installed software. The fix script can create missing directories,
correct file modifications (mode, owner, group, major, and
minor), and recreate symbolic links.
Unconfigure Script
A script run by swconfig or swremove to undo a host or software
configuration originally performed by a configure script. For
example, an unconfigure script could remove the configuration from
the /etc/services file. (The unconfigure task moves the software
from the configured state back to the installed state.)
Only the swremove command actually removes software. although
you can run unconfigure scripts using swconfig. Unconfigure scripts
are not run for removals from alternate roots.
Checkremove Scripts
The checkremove script is run by swremove during the remove
analysis phase to allow any checks before the software is
permanently removed. For example, the script could check whether
anyone was currently using the software before removing it.
Preremove Scripts
This script is executed just before removing files. It can be
destructive to the application because files will be removed next. It
could remove files that the postinstall script created. For example, a
preremove script could save a specific fileset to another location
before removing the rest of the filesets in the product.
This script and the postremove script are part of the Remove phase
of swremove. Within each product, preremove scripts are run (in the
reverse order dictated by any prerequisites), files are removed, then
all postremove scripts are run.
Postremove Scripts
This script is executed just after removing files. It is the companion
script to the postinstall script. For example, if this was a patch
fileset, then the preinstall script could move the original file aside,
and this postremove script could move the original file back if the
patch was removed.