Installs an instrumented assembly. To use this default project installer, simply derive a class from DefaultManagementInstaller inside the assembly. No methods need to be overridden.
Namespace:
System.Management.Instrumentation
Assembly:
System.Management.Instrumentation (in System.Management.Instrumentation.dll)
Visual Basic (Declaration)
Public Class DefaultManagementInstaller _
Inherits Installer
Dim instance As DefaultManagementInstaller
public class DefaultManagementInstaller : Installer
public ref class DefaultManagementInstaller : public Installer
public class DefaultManagementInstaller extends Installer
This class provides an interface for the standard installUtil installer in the .NET framework. Any assembly that contains Automation classes should include a class that is derived from this type. This will provide code that generates the schema of the automation objects, installs it into WMI, and creates the necessary provider registration code.
The following example shows how to derive a class from the DefaultManagementInstaller class to install a WMI provider.
[C#]
// This is the installer class that installs an instrumented assembly.
// To use the default project installer, simply derive a class from
// DefaultManagementInstaller. No methods need to be overridden.
[System.ComponentModel.RunInstaller(true)]
public class TheInstaller : DefaultManagementInstaller
{ }
System..::.Object
System..::.MarshalByRefObject
System.ComponentModel..::.Component
System.Configuration.Install..::.Installer
System.Management.Instrumentation..::.DefaultManagementInstaller
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5
Reference