PreviousNext
Macrovision

SetErrorMsg

InstallShield 2008 ยป InstallScript Language Reference

The SetErrorMsg function customizes InstallShield default error messages. You can use this function to specify the caption text of the message boxes in which these error messages are displayed.

Syntax

SetErrorMsg ( nErrorID, szText );

Parameters

SetErrorMsg Parameters 

Parameter

Description

nErrorID

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

  • ERR_BOX_BADPATH—This message appears when EnterDisk detects a bad path entered by the user.
  • ERR_BOX_BADTAGFILE—This message appears when EnterDisk detects the specified tag file does not exist on the disk.
  • ERR_BOX_DISKID—This message appears when EnterDisk detects the drive specified by the user does not exist.
  • ERR_BOX_DRIVEOPEN—This message appears when EnterDisk detects the disk drive door is open.

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




Copyright Information | Contact Macrovision