Overview of the ToolboxInstaller:-Data Package
Calling Sequence
Parameters
Description
ToolboxInstaller:-Data:-Get(option1, option2, ...)
ToolboxInstaller:-Data:-Set(option1 = value1, option2 = value2, ...)
option1, option2, ...
-
string; option names, see table below
value1, value2, ...
anything; option value, see table below
For many of the panel-specific options described in InstallerBuilder Options, you can provide Maple procedures. These procedures run during installation to complete specified tasks, and their results can control the installation.
These procedures need access to data that is in the installer, supplied by a user earlier in the installation process, or supplied by another customized procedure. The ToolboxInstaller:-Data package allows you to save and access this data.
The ToolboxInstaller:-Data:-Set command accepts any number of arguments of the form optionN = valueN, where optionN is a string and valueN can be any Maple object. The Set command assigns the value valueN to the string optionN.
The ToolboxInstaller:-Data:-Get command accepts any number of arguments of the form optionN, where optionN is a string, and returns the stored value.
You can use Set and Get to create and query custom references, or you can query data automatically set by the installer. The built-in installer data is as follows.
Datum
Type
height
nonnegint
Height of each panel, in pixels
install_temp
string
Path to directory in which temporary installation files are stored.
installer_path
Absolute path to installer file
network_installation
truefalse
If true, indicates that user has selected a network installation; if false, a single-user installation.
system_installation
If true, indicates that user has selected a system installation (in the Maple install directory); if false, a personal installation (in the user's home directory).
toolbox_dir
Directory in which toolbox will reside
toolbox_name
Name of toolbox
toolbox_parentdir
Parent directory of toolbox_dir
validation_attempt
User input from the Validation panel
width
Width of each panel, in pixels
Note: It is not recommended that you use the Set command to overwrite built-in data.
See Also
InstallerBuilder Options
InstallerBuilder Panels
Download Help Document