SetErrorMsg

InstallShield 2018 » InstallScript Language Reference

When a disk error occurs, the SetErrorMsg function sets the corresponding error message that is displayed by the EnterDiskError function.

Syntax

SetErrorMsg (nErrorID, szText);

Parameters

SetErrorMsg Parameters

Parameter

Description

nErrorID

Specifies which error message to customize. Pass one of the following predefined constants in this parameter:

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

szText

Specifies the error message to display in the message box.

Return Values

SetErrorMsg Return Values

Return Value

Description

0

Indicates that the function successfully changed the error message.

< 0

Indicates that the function was unable to change the error message.

See Also