Skip to content

Appl_SetMSIError

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.

Appl_SetMSIError(iErrorLevel) as Boolean

ErrorLevel value

FALSE for all error codes except 1604 and 1641, which return TRUE. The error description is returned in gsValue.

If bStatus Then bStatus=Appl_SetMSIError(giErrorLevel)

Scripting Guidelines

Application functions Constants Package Property Variables