Appl_SetMSIError
Description
Section titled “Description”Looks up the Windows Installer description of an MSI error code and fails the job with that description. For further information on MSI error codes, refer to the Windows Installer SDK.
Call this function only when the MSI installation didn’t succeed. The codes 1604 and 1641 are only logged. Any other code, including 0 and 3010, makes the function return FALSE.
Syntax
Section titled “Syntax”Appl_SetMSIError(iErrorLevel) as Boolean
Parameters
Section titled “Parameters”iErrorLevel (Integer)
Section titled “iErrorLevel (Integer)”ErrorLevel value
Return value
Section titled “Return value”FALSE for all error codes except 1604 and 1641, which return TRUE. The error description is returned in gsValue.
Example
Section titled “Example”If bStatus Then bStatus=Appl_SetMSIError(giErrorLevel)