ConfigDelete

InstallShield 2016 » InstallScript Language Reference

The ConfigDelete function removes lines from the system configuration file that has been loaded into memory by a call to ConfigFileLoad. The parameter szKey specifies a reference key that identifies the lines to be deleted. After using advanced configuration functions to edit a system configuration file, you must call ConfigFileSave to save your changes.

Note • Do not mix the Ez batch file functions with the advanced batch file functions. After calling BatchFileLoad, you cannot use Ez batch file functions until you have called BatchFileSave to save the file.

Syntax

ConfigDelete ( szKey );

Parameters

ConfigDelete Parameters

Parameter

Description

szKey

Specifies the reference key that identifies the line or lines to delete. Common reference keys include Himem.sys, FILES, and STACKS.

Return Values

ConfigDelete Return Values

Return Value

Description

0

ConfigDelete successfully deleted the lines containing the reference key from the system configuration file.

< 0

ConfigDelete was unable to delete the specified lines.

See Also