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 );
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.
InstallContext Class | InstallContext Members | System.Configuration.Install Namespace | Parameters