ManagementInstaller Class
Installs instrumented assemblies. Include an instance of this installer class in the project installer for an assembly that includes instrumentation.
For a list of all members of this type, see ManagementInstaller Members.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Configuration.Install.Installer
System.Management.Instrumentation.ManagementInstaller
[Visual Basic] Public Class ManagementInstaller Inherits Installer [C#] public class ManagementInstaller : Installer [C++] public __gc class ManagementInstaller : public Installer [JScript] public class ManagementInstaller extends Installer
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
If this is the only installer for your application, you may use the helper class DefaultManagementProjectInstaller provided in this namespace.
Example
[Visual Basic, C#] If you have a master project installer for your project, add the following code to your project installers constructor:
[C#] // Instantiate installer for assembly. ManagementInstaller managementInstaller = new ManagementInstaller(); // Add installer to collection. Installers.Add(managementInstaller); [Visual Basic] 'Instantiate installer for assembly. Dim managementInstaller As New ManagementInstaller() 'Add installer to collection. Installers.Add(managementInstaller)
[C++, JScript] No example is available for C++ or JScript. To view a Visual Basic or C# example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Namespace: System.Management.Instrumentation
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Management (in System.Management.dll)
See Also
ManagementInstaller Members | System.Management.Instrumentation Namespace