Miscellaneous Functions

InstallShield 2024 » InstallScript Language Reference

The following functions serve various purposes, such as low-level hardware interface, feature creation and manipulation, and user output.

Miscellaneous Functions

Function

Description

Do

Executes the currently defined EXIT and HELP handlers.

DoInstall

Launches another InstallShield installation.

FormatMessage

Returns a string error message for a large negative error code.

Handler

This function is obsolete. Use HandlerEx instead.

HandlerEx

Specifies a label to branch to in response to exit and help events.

ISCompareServicePack

Compares the Service Pack number installed on the target OS to a specified Service Pack number.

IsEmpty

Checks whether a variable of type VARIANT has been initialized.

MessageBeep

Produces a standard warning beep.

Resize

Resizes an InstallScript array.

SendMessage

Sends a Windows message to another window or application.

SetObjectPermissions

Sets permissions for a file, a folder, or a registry key.

SizeOf

Returns the size of an InstallScript array.

Sprintf

Returns a formatted string composed of one or more character, numeric, or string values.

SprintfMsiLog

Writes a message directly to the Windows Installer log file.

StreamFileFromBinary

Streams a binary key with a file.

System

Reboots the computer.

VarInit

Initializes or reinitializes internal lists used by the VarSave and VarRestore functions. Calling this function effectively clears any information stored by previous VarSave calls and not yet used by subsequent VarRestore functions.

VarRestore

Restores the values of the system variables SRCDIR, TARGETDIR (in InstallScript projects), and INSTALLDIR (in Basic MSI and InstallScript projects) that were saved by the last call to VarSave.

VarSave

Saves the current value of the system variables SRCDIR, TARGETDIR (in InstallScript projects), and INSTALLDIR (in Basic MSI and InstallScript projects).