System.Configuration.Install.InstallContext.LogMessage Method

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

Syntax

public void LogMessage (string message)

Parameters

message
The message to write.

Remarks

An installer can call this method to write progress or other status information to the log file. If the command-line parameters specify that a user interface should be displayed, the installer should show message boxes or make queries in addition to calling the InstallContext.LogMessage(string) method. 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.

Requirements

Namespace: System.Configuration.Install
Assembly: System.Configuration.Install (in System.Configuration.Install.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0