GetErrorMessage Method (errorRecord)

Microsoft Deployment Tools

Deployment Tools Foundation GetErrorMessage Method (errorRecord)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerGetErrorMessage(Record)
Gets a formatted Windows Installer error message in the system default language.
Declaration Syntax
C# Visual Basic Visual C++
public static string GetErrorMessage(
	Record errorRecord
)
Public Shared Function GetErrorMessage ( _
	errorRecord As Record _
) As String
public:
static String^ GetErrorMessage(
	Record^ errorRecord
)
Parameters
errorRecord (Record)
Error record containing the error number in the first field, and error-specific parameters in the other fields.
Return Value
The message string, or null if the error message is not found.
Remarks

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)