Deployment Tools Foundation
GetErrorMessage Method (errorRecord, culture)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► GetErrorMessage(Record, CultureInfo)
Gets a formatted Windows Installer error message in a specified language.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static string GetErrorMessage( Record errorRecord, CultureInfo culture )
Public Shared Function GetErrorMessage ( _ errorRecord As Record, _ culture As CultureInfo _ ) As String
public: static String^ GetErrorMessage( Record^ errorRecord, CultureInfo^ culture )
Parameters
- errorRecord (Record)
- Error record containing the error number in the first field, and error-specific parameters in the other fields.
- culture (CultureInfo)
- The locale for the message.
Return Value
The message string, or null if the error message or locale is not found.
Remarks
Error numbers greater than 2000 refer to MSI "internal" errors, and are always returned in English.