How do I lookup the error text associated with a given error code return from msiexec or MsiInstallProduct?


MsiExec returns system error codes so FormatMessage is available to obtain the message text.

Related references

  1. Windows Installer Error Messages [Windows Installer]
  2. MsiInstallProduct(LPCTSTR,LPCTSTR) function [Windows Installer]
  3. Initialization Error
  4. Displayed Error Messages [Windows Installer]

Content credit also belongs to

[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