Information Functions

InstallShield 2024 » InstallScript Language Reference

The following information functions provide data about resources that are available in the operating environment: disk space, memory, and operating mode.

Information Functions

Function

Description

GetDiskInfo

Gets information about a specified disk drive.

GetDiskSpace

Returns the number of bytes available (unused) on the specified disk (up to 2 gigabytes).

GetDiskSpaceEx

Returns the amount of free space on a disk in bytes, kilobytes, megabytes, or gigabytes.

GetEnvVar

Returns the current value of an environment variable.

GetExtendedErrInfo

Returns the error information that was set by SetExtendedErrInfo.

GetExtents

Returns the dimensions of the screen.

GetMemFree

This function is obsolete and should not be used.

GetSystemInfo

Retrieves system information.

GetTrueTypeFontFileInfo

Returns information about a particular TrueType font file.

GetValidDrivesList

Returns a listing of all available drives on the target system.

GetWindowHandle

Returns the handle of the main installation window.

Is

Provides file and path checking services, searches for a math coprocessor, tests for administrator privileges, determines whether a particular version of the .NET Framework or a language pack is present on the target system, determines whether Microsoft Windows is running from a shared copy on a network, and more.

SetExtendedErrInfo

Sets error information, which can be retrieved by GetExtendedErrInfo.

SetInstallationInfo

Sets the values of the system variables IFX_COMPANY_NAME, IFX_PRODUCT_NAME, IFX_PRODUCT_VERSION, and IFX_PRODUCT_KEY.