FormatMessage

InstallShield 2012 Spring » InstallScript Language Reference

The FormatMessage function provides the error message text associated with a large error code returned by a built-in InstallScript function.

Syntax

FormatMessage ( nErrorReturnCode );

Parameters

FormatMessage Parameters

Parameter

Description

nErrorReturnCode

Pass a large error code—for example, 2147024891 (0x80070005)—that was returned by a built-in InstallScript function. Passing the error code -1 will not produce useful results.

Return Value

A string containing the error message text associated with the error code nErrorReturnCode.

See Also