.NET Framework Class Library
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.

Namespace:  System.Management.Instrumentation
Assembly:  System.Management.Instrumentation (in System.Management.Instrumentation.dll)
Syntax

Visual Basic (Declaration)
Public Class DefaultManagementInstaller _
    Inherits Installer
Visual Basic (Usage)
Dim instance As DefaultManagementInstaller
C#
public class DefaultManagementInstaller : Installer
Visual C++
public ref class DefaultManagementInstaller : public Installer
JScript
public class DefaultManagementInstaller extends Installer
Remarks

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.

Examples

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
{ }
Inheritance Hierarchy

System..::.Object
  System..::.MarshalByRefObject
    System.ComponentModel..::.Component
      System.Configuration.Install..::.Installer
        System.Management.Instrumentation..::.DefaultManagementInstaller
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.
Platforms

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.
Version Information

.NET Framework

Supported in: 3.5
See Also

Reference

Tags :


Page view tracker