[This is preliminary documentation and subject to change.]
The MsiProcessMessage function sends an error record to the installer for processing.
int MsiProcessMessage(
MSIHANDLE hInstall, // installer handle
MSIMESSAGE eMessageType, // type of message
MISHANDLE hRecord // record handle
);
Value | Meaning |
---|---|
MSIMESSAGE_OutOfMemory | The process is out of memory, may call recursively. |
MSIMESSAGE_Error | Error message, [1] is message number in Error table. |
MSIMESSAGE_Warning | Warning message, [1] is message number in Error table. |
MSIMESSAGE_User | User request, [1] is message number in Error table. |
MSIMESSAGE_Info | Informative message for log, not to be displayed. |
MSIMESSAGE_Diagnostic | Debug notification, displayed only if no log. |
MSIMESSAGE_CommonData | Info for UI: [1]=language ID, [2]=dialog caption. |
MSIMESSAGE_Reserved | Reserved for future use. |
MSIMESSAGE_ActionStar | Progress: start of action, [1] action name, [2] description. |
MSIMESSAGE_ActionData | Progress: data associated with individual action item. |
MSIMESSAGE_Progress | Progress: gauge info, [1] units so far, [2] total. |
MSIMESSAGE_ActionData | Progress: end of action sequence, exit modeless dialog. |
The MsiProcessMessage function performs any enabled logging operations and defers execution. You can selectively enable logging for various message types.
If field 0 is not set, field 1 must be set to the error code corresponding to the error message in the Error table. Then, the message is formatted using the template from the Error table before passing it to the user-interface handler for display.
Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in msiquery.h.
Import Library: Use msi.lib.
Database Access Reference, Installer Action Functions