Deployment Tools Foundation
GetErrorMessage Method (errorNumber)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► GetErrorMessage(Int32)
Gets a Windows Installer error message in the system default language.
![](collapse_all.gif)
![](collapse_all.gif)
- errorNumber (Int32)
- The error number.
![](collapse_all.gif)
The message string, or null if the error message is not found.
![](collapse_all.gif)
The returned string may have tokens such as [2] and [3] that are meant to be substituted with context-specific values.
Error numbers greater than 2000 refer to MSI "internal" errors, and are always returned in English.