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 Class

Contains information about the current installation.

Object
   InstallContext

[Visual Basic]
Public Class InstallContext
[C#]
public class InstallContext
[C++]
public __gc class InstallContext
[JScript]
public class InstallContext

Remarks

InstallContext contains information used by classes that do installations. This includes Installer and classes that inherit from it, such as AssemblyInstaller and TransactedInstaller.

Typically, an InstallContext is created by an installation executable that is run to install an assembly or assemblies, or a project. The installation program invokes the InstallContext constructor and passes in the default log file path, logFilePath, and the command line parameters, commandLine.

The installation program sets the InstallContext into the Context property of an Installer prior to calling its Install, Commit, Rollback, or Uninstall methods. An Installer that contains an InstallerCollection sets the Context property of each contained installer before calling these methods.

The Parameters property is a parsed version of the command line that is entered when the installation executable is run. It contains information such as the path to a log file, whether to display log information on the console, and whether to show a user interface during the installation. Call IsParameterTrue to find out whether a command line parameter is true.

Call the LogMessage method to write status messages to the installation log file and to the console.

Requirements

Namespace: System.Configuration.Install

Assembly: System.Configuration.Install.dll

See Also

InstallContext Members | System.Configuration.Install Namespace | Installer | TransactedInstaller | AssemblyInstaller