GetErrorMessage Method (errorNumber)

Microsoft Deployment Tools

Deployment Tools Foundation GetErrorMessage Method (errorNumber)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerGetErrorMessage(Int32)
Gets a Windows Installer error message in the system default language.
Declaration Syntax
C# Visual Basic Visual C++
public static string GetErrorMessage(
	int errorNumber
)
Public Shared Function GetErrorMessage ( _
	errorNumber As Integer _
) As String
public:
static String^ GetErrorMessage(
	int errorNumber
)
Parameters
errorNumber (Int32)
The error number.
Return Value
The message string, or null if the error message is not found.
Remarks

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.

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)