Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.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)
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

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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker