Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Software Distributor Administration Guide: HP-UX 11i v1, 11i v2, and 11i v3 > Chapter 10 Creating Software Packages

Adding Control Scripts

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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 ” 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.)

Unconfigure

Undoes configurations performed by configure scripts. (Executed by swconfig and swremove.)

Unpostinstall

Undoes a postinstall script in case swinstall must initiate recovery during the installation process. (Executed by swinstall.)

Unpreinstall

An undo preinstall script in case SD must initiate recovery during the install process. (Executed by swinstall.)

Verify

Verifies the configuration of filesets or products in addition to the standard swverify checks. (Executed by swverify.)

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997, 2000-2003, 2006, 2007, 2008 Hewlett-Packard Development Company, L.P.