The Contents node
The Contents node provides you with a list of the contents of the package, through which you can verify that the package is complete and provides you with access to the scripts included with the packages for possible modifications.
This topic includes:
- Adding files to a package
- Files for a custom package
- Files for an MSI package
- The Additional Files node
- Scripts
Adding files to a package
After having defined all installation options through the contents of the Configuration and Contents nodes, the RPM package is created. You can add now files to this package which will then be sent to the targets for installation. To add files, proceed as follows:
- Click Edit> Add Files to Package
.
The RPM Packages dialog box appears. - The Add Files tab provides the list of all available drives through which you can go down in their hierarchy to select the files to be added to the .zip file.
- Click OK at the bottom of the window to confirm the additions or Cancel to stop and close the window.
Files for a custom package
Below the Files node you can see all files contained in the package in their tree hierarchy of all directories. When selecting a directory in the left window pane, the table in the right pane displays the information about the files contained in that specific directory.
Adding Files to the custom package
To add files to the custom package proceed as follows:
- Select Edit> Add File
.
An Add Files dialog box appears on the screen providing the list of all available drives. - Go down in their hierarchy to select the files to be added to the package.
- Click OK at the bottom of the window to confirm the additions or Cancel to stop and close the window.
Mapping Files to a different location at the target
To map a file or directory to another target location or to modify an existing mapping, proceed as follows:
- In the Mapping tab select Edit> Map
.
The Mapping window opens on the screen. Enter the source and destination paths into the respective text boxes or modify them.
- Click OK at the bottom of the window to confirm the mapping or Cancel to stop and close the window.
Files for an MSI package
The Files node for MSI packages displays all files in their directory structure which are contained in the original package. No file can be added here.
Below the Files node you can see a tree hierarchy of all directories and files contained in the MSI package. When selecting a directory in the left window pane, the table in the right pane displays the information about the files contained in that specific directory.
The Additional Files node
Through the Additional Files node you can add extra files to the package which are needed by the MSI package for its installation, no other files can be added here.
Scripts
The Scripts subnode of the Contents node of all different types of packages of allows you to edit the default scripts which are included with the package to be executed at a specific time during installation.
The Scripts node has the following subnodes:
- 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. - 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.
Editing a script
To edit an existing or newly created script, proceed as follows:
- Select the script to edit in the left window pane.
The right window pane will open as a normal text editor. - Create/Edit the script in the right window pane.
- After you finish the script and return to another point in the console, the console will try to compile the script to verify it is correct.
If it is not correct an error message appears.