Checking Disk Space During Installation
InstallAnywhere 2024 R2
You can configure your installer to perform a disk space check at various points in the installation life cycle. You can also optionally have your installer display the available disk space on the Pre-Installation Summary panel at run time.
To check for disk space during the installation and display the available space:
1. | In the Advanced Designer, on the Sequence page, click Pre-Install. The Pre-Install view opens. |
2. | In the Pre-Install Action List, click the Panel: Pre-Install Summary action. InstallAnywhere displays the action’s settings at the bottom of the view. |
3. | On the General Settings tab, select the Disk space information in check box, and then select the unit of measure that you want the installer to use to display the available disk space. |
In the following example, MegaBytes was selected from the list:
Pre-Installation Summary Panel Displaying Disk Space Information
If you want to use more than one unit of measure to display disk space information (such as to displaying Free Disk Space in GBs while showing Required Disk Space in MBs), you can use the following variables.
Type |
Variables |
Free Disk Space |
$FREE_DISK_SPACE_BYTES$ $FREE_DISK_SPACE_KILOBYTES$ $FREE_DISK_SPACE_MEGABYTES$ $FREE_DISK_SPACE_GIGABYTES$ |
Required Disk Space |
$REQUIRED_DISK_SPACE_BYTES$ $REQUIRED_DISK_SPACE_KILOBYTES$ $REQUIRED_DISK_SPACE_MEGABYTES$ $REQUIRED_DISK_SPACE_GIGABYTES$ |
Note:Insufficient space messages are always displayed in megabytes.
Considerations Regarding Disk Space Checks
If you configure your installer to perform disk space checks, note the following:
• | The Disk Space Check action is always the first action that is executed as part of Pre-Install sequence. |
• | Disk space is governed by the user installation directory ($USER_INSTALL_DIR$ and Choose Folder action) and the chosen install set ($CHOSEN_INSTALL_SET$ and Choose Install Set action). |
• | The Disk Space Check action is also run on demand when there is a change in installation folder or install sets using either actions or variables. |