AssemblyInstaller.CommandLine Property

Definition

Gets or sets the command line to use when creating a new InstallContext object for the assembly's installation.

C#
public string[] CommandLine { get; set; }

Property Value

String[]

An array of type String that represents the command line to use when creating a new InstallContext object for the assembly's installation.

Examples

In the following example, the CommandLine property of an AssemblyInstaller is set to the logfile name.

C#
// Set the logfile name in the commandline argument array.
string[] commandLineOptions = new string[ 1 ] {"/LogFile=example.log"};
myAssemblyInstaller.CommandLine = commandLineOptions;

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also