How do I lookup the error text associated with a given error code return from msiexec or MsiInstallProduct?
Question
How do I lookup the error text associated with a given error code return from msiexec or MsiInstallProduct?
Answer
MsiExec returns system error codes so FormatMessage is available to obtain the message text.
Related references
- Windows Installer Error Messages [Windows Installer]
- MsiInstallProduct(LPCTSTR,LPCTSTR) function [Windows Installer]
- Initialization Error
- Displayed Error Messages [Windows Installer]
Content credit also belongs to
- Carolyn, MSI Team Dev Lead. You can get other Carolyn insights about developing for Windows Installer from the Windows Installer Chat Archives
[Author: Robert Flaming]
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at https://www.microsoft.com/info/cpyright.htm.