SetErrorTitle

InstallShield 2018 » InstallScript Language Reference

When a disk error occurs, the SetErrorTitle function sets the title bar for the error message that is displayed by the EnterDiskError function.

Syntax

SetErrorTitle (nErrorID, szText);

Parameters

SetErrorTitle Parameters

Parameter

Description

nErrorID

Specifies the error message box whose title you want to customize. Pass one of the following predefined constants in this parameter:

ERR_BOX_BADPATH—This message appears when EnterDiskError detects a bad path.
ERR_BOX_BADTAGFILE—This message box appears when EnterDiskError detects that the specified tag file does not exist on the disk.
ERR_BOX_DISKID—This message box appears when EnterDiskError detects that the specified drive does not exist.

szText

Specifies the title to display in the error message box.

Return Values

SetErrorTitle Return Values

Return Value

Description

0

Indicates that the function successfully changes the text in the title bar.

< 0

Indicates that the function was unable to change the text in the title bar.

See Also