SdExceptions

InstallShield 2014 » InstallScript Language Reference

Project: This information applies to the following project types:

InstallScript
InstallScript MSI

The SdExceptions function displays a message box that informs the end user that a shared, locked (in use), or read-only file has been encountered, and it offers appropriate options.

Syntax

SdExceptions (nExceptionType, szFilename);

Parameters

SdExceptions Parameters

Parameter

Description

nExceptionType

Specifies which type of file problem has been encountered. Pass one of the following predefined constants in this parameter:

SHARED—A shared file’s reference count has been reduced to zero.
READONLY—A read-only file has been encountered.
LOCKED—A locked file has been encountered.

szFilename

Specifies the name of the file that caused the problem.

Return Values

SdExceptions Return Values

Return Value

Description

ERR_RETRY (4)

Indicates that the Retry button was selected.

ERR_IGNORE (5)

Indicates that the Ignore button was selected.

ERR_YES (6)

Indicates that the Yes button was selected.

ERR_NO (7)

Indicates that the No button was selected.

ERR_PERFORM_AFTER_REBOOT (100)

Indicates that the Reboot button was selected.

< 0

Indicates that the dialog could not be displayed.

Additional Information

The dialog that is displayed by this function cannot be displayed with a skin; it appears the same regardless of whether you have specified a skin.

See Also