System.ComponentModel.RunInstallerAttribute Class

Specifies whether the Visual Studio Custom Action Installer or the Installer Tool (Installutil.exe) should be invoked when the assembly is installed.

See Also: RunInstallerAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class)]
public class RunInstallerAttribute : Attribute

Remarks

If a class that inherits from System.Configuration.Install.Installer is marked with the System.ComponentModel.RunInstallerAttribute set to true, Visual Studio's Custom Action Installer or the InstallUtil.exe will be invoked when the assembly is installed. Members marked with the System.ComponentModel.RunInstallerAttribute set to false will not invoke an installer. The default is true.

Note:

When you mark a property with the System.ComponentModel.RunInstallerAttribute set to true, the value of this attribute is set to the constant member RunInstallerAttribute.Yes. For a property marked with the System.ComponentModel.RunInstallerAttribute set to false, the value is RunInstallerAttribute.No. Therefore, when you want to check the value of this attribute in your code, you must specify the attribute as RunInstallerAttribute.Yes or RunInstallerAttribute.No.

For more information, see Extending Metadata Using Attributes.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0