WiseScript Package Editor Reference
132
WiseScript Actions
z
Status Variable
Select or enter the variable to store the result of the disk space check. If there is not
enough disk space, an error message is displayed, and the end user can halt
installation, ignore the error, or retry the disk space check. Status Variable is set
to R if the end user chooses to retry, which lets you define what retrying means.
(Example: Let the end user select a different directory or different components.) If
no status variable is selected, clicking Retry simply executes the test again.
z
Reserve Space
You can specify required disk space for up to three additional disks. (Example: Use
this option if your application requires temporary disk space to operate, or if you
plan to run a separate installer .EXE to install another application with its own space
requirements.) Select or enter a Disk Variable, which contains a directory name to
test. Enter the amount of space to check for in Extra Space.
See
Modify Component Size
on page 180.
z
Do not cancel during silent installation
Mark this to continue installing if the disk space check fails during a silent
installation. If you script includes an installation log, a message is written to
Install.log. Otherwise, if the disk space check fails, the installation is halted with no
message to the end user.
For information on how to create an installation log, see
Open/Close Install.log
on
page 181.
Using Check Disk Space Within a Windows Installer Installation
When a WiseScript is called by a Windows Installer installation, the Check Disk Space
action only checks disk space for files installed by this WiseScript. In other words, the
WiseScript .EXE and the Windows Installer installation are unaware of each other’s disk
space requirements. To avoid erroneous disk space estimates by either the WiseScript
.EXE or the Windows Installer installation, place the Run WiseScript custom action
before CostInitialize or after InstallFinalize in the Windows Installer installation. That
way it does not interfere with Windows Installer disk space requirements. Place it in the
User Interface sequence, the Execute Immediate sequence, or both.
If the installation of files by the WiseScript does not depend on which .MSI components
are installed, you can insert the Check Disk Space action and leave the fields in the
Check Disk Space Settings dialog box blank. However, if the WiseScript installs files
based on whether a component in the .MSI is set to be installed, you must set a
component variable and specify it in the Check Disk Space Settings dialog box.
Example:
Your .MSI installation contains two features: Standard and Plus. If the end user chooses
to install Plus, which installs the component Plus.txt, you want the WiseScript to install
the license file PlusLicense.exe.
Here’s how you create this portion of the WiseScript:
z
Add an Evaluate Windows Installer Condition action that determines whether the
Plus feature is to be installed ($Plus.exe = 3) and places the result into the variable
CHECK.
z
Add an If Statement action that determines if the variable CHECK equals 1, that is,
if it is to be installed, and add a Set Variable action that then sets the variable
COMPONENTS to the value Plus.exe.