EzConfigSetValue

InstallShield 2019 » InstallScript Language Reference

The EzConfigSetValue function sets the value of a command in the default system configuration file.

Unless changed by a call to ConfigSetFileName, the default system configuration file is the Config.sys file that was executed by the system during the boot sequence. To make another file the default system configuration file, call ConfigSetFileName. To determine the fully qualified name of the default system configuration file, call ConfigGetFileName.

Note • Do not mix the Ez configuration file functions and the advanced configuration file functions. After calling ConfigFileLoad, you cannot call any of the Ez configuration file functions until you call ConfigFileSave to save the file.

Syntax

EzConfigSetValue (szRefKey, nValue);

Parameters

EzConfigSetValue Parameters

Parameter

Description

szRefKey

Specifies the command whose value is to be changed or added in the default system configuration file. If the key does not exist in that file, it is added.

nValue

Specifies the new value of the command specified by szRefKey.

Return Values

EzConfigSetValue Return Values

Return Value

Description

0

EzConfigSetValue successfully set the value.

< 0

EzConfigSetValue was unable to set the value.

See Also