DefaultManagementInstaller Class
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.
Assembly: System.Management.Instrumentation (in System.Management.Instrumentation.dll)
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.MarshalByRefObject
System.ComponentModel.Component
System.Configuration.Install.Installer
System.Management.Instrumentation.DefaultManagementInstaller
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.