Software Distributor Administration Guide for HP-UX 11i

Using Control Scripts
File Management by Control Scripts
Chapter 11 401
File Management by Control Scripts
All files created by a preinstall, postinstall, or configure script must
be removed by a companion postremove, preremove or unconfigure
script.
Files created by scripts are not known by the swremove command,
and will not get removed when it removes those files installed by
swinstall. If you want script-created files removed by SD, you will
have to add them to the IPD by either the swmodify command or the
control_utils function IPD_addfile.
If any files in the previous revision of a product have changed names
or became obsolete, a product/fileset preinstall or postinstall script in
the new revision of the product must remove the old files. The agent
does not remove the files in an existing product/fileset before
updating it to a newer revision.
NOTE It is necessary to perform the cleanup task of any previous revision
that can be updated to the new revision. Sometimes this is more than
just the previous revision.