ConfigGetInt

InstallShield 2022 ยป InstallScript Language Reference

The ConfigGetInt function retrieves the integer value of a reference key from a system configuration file that has been loaded into memory with the function ConfigFileLoad. ConfigGetInt retrieves values from commands that have only one value to the right of the equal sign (=).

Note:ConfigGetInt does not work on a command that has more than one value. For example, ConfigGetInt recognizes the statement FILES=20 and returns the number 20, but it does not recognize the statement STACKS=9,128.

Before calling ConfigGetInt, you must first call ConfigFileLoad to load the system configuration file into memory. After you edit the file, call ConfigFileSave to save the file.

Do not mix the Ez configuration file functions with the advanced configuration file functions. After calling the ConfigFileLoad function, you cannot use the Ez configuration file functions until you use the ConfigFileSave function to save your changes.

Syntax

ConfigGetInt ( szKey, nvValue );

Parameters

ConfigGetInt Parameters

Parameter

Description

szKey

Specifies the reference key of the statement from which to retrieve the integer value.

nvValue

Returns the integer value of the reference key.

Return Values

ConfigGetInt Return Values

Return Value

Description

0

ConfigGetInt successfully retrieved the integer value.

< 0

ConfigGetInt was unable to retrieve the integer value.

See Also