Managing pre-install script and post-install script


This section provides information about pre-install and post-install scripts.

Pre-install Script

The preinstall.chl will be executed before the installation. This script is automatically created when the package is created. By default it already contains a number of predefined procedures, such as error handling. If you intend to use it, don't forget to provide the error information at the respective location.

  1. You can directly create and edit the script in the provided panel.
  2. To verify that the script compiles click Compile Script compile_script.jpg at the top of the panel.
     Any compilation errors that might occur are displayed in the following panel.
  3. Click Next to continue.


Post-install Script

The postinstall.chl will be executed after the installation. This script is automatically created when the package is created. By default it already contains a number of predefined procedures, such as error handling. If you intend to use it, don't forget to provide the error information at the respective location.

  1. You can directly create and edit the script in the provided panel.
  2. To verify that the script compiles click Compile Scriptcompile_script.jpg at the top of the panel.
    Any compilation errors that might occur will be displayed in the following panel.
  3. Click Next to continue.

For sample pre-install and post-install scripts, see pre-install script and post-install script.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*