ConfigSetInt

InstallShield 2022 ยป InstallScript Language Reference

The ConfigSetInt function changes a specified integer value in a system configuration file that has been loaded into memory with the function ConfigFileLoad. ConfigSetInt sets values in commands that have only one value to the right of the equal sign (=).

Note:This function does not work on a command that has more than one value. For example, ConfigSetInt recognizes the statement FILES=20 and can change 20 to another value, but it does not recognize the statement STACKS=9,128.

Before calling ConfigSetInt, 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

ConfigSetInt ( szKey, nValue );

Parameters

ConfigSetInt Parameters

Parameter

Description

szKey

Specifies the reference keyword of the command whose integer value is to be set.

nValue

Specifies the integer value you want to set for the command in szKey.

Return Values

ConfigSetInt Return Values

Return Value

Description

0

ConfigSetInt successfully set the specified integer in the system configuration file.

< 0

ConfigSetInt was unable to set the specified integer.

See Also