NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

InstallContext.LogMessage

Writes the message to the log file for the installation and to the console.

[Visual Basic]
Overridable Public Sub LogMessage( _
   ByVal message As String _
)
[C#]
public virtual void LogMessage(
   string message
);
[C++]
public: virtual void LogMessage(
   String* message
);
[JScript]
public function LogMessage(
   message : String
);

Parameters

message
The message to be written to the log file.

Remarks

An installer can call this method to write progress or other status to the log file. If the command line arguments specify displaying a user interface, an installer should show message boxes or make queries in addition to calling LogMessage to write status. Text written to the log file will not be seen by the user unless InstallUtil.exe is used to run the installation and "/LogToConsole= true" is specified in the command line.

See Also

InstallContext Class | InstallContext Members | System.Configuration.Install Namespace | Parameters