PreviousNext
Macrovision

SetErrorTitle

InstallShield 2008 ยป InstallScript Language Reference

The SetErrorTitle function specifies custom text for the caption bar of InstallShield's built-in error message boxes. You can use the SetErrorMsg function to customize the error message text.

Syntax

SetErrorTitle ( nErrorID, szText );

Parameters

SetErrorTitle Parameters 

Parameter

Description

nErrorID

Specifies the error message box whose title is to be replaced. Pass one of the following predefined constants in this parameter:

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

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 caption bar.

< 0

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

See Also




Copyright Information | Contact Macrovision