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.
Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.
Assembly: System.Management.Instrumentation (in System.Management.Instrumentation.dll)
System::MarshalByRefObject
System.ComponentModel::Component
System.Configuration.Install::Installer
System.Management.Instrumentation::DefaultManagementInstaller
| Name | Description | |
|---|---|---|
![]() | DefaultManagementInstaller() | Initializes a new instance of the DefaultManagementInstaller class. This is the default constructor. |
| Name | Description | |
|---|---|---|
![]() | CanRaiseEvents | Gets a value indicating whether the component can raise an event.(Inherited from Component.) |
![]() | Container | Gets the IContainer that contains the Component.(Inherited from Component.) |
![]() | Context | Gets or sets information about the current installation.(Inherited from Installer.) |
![]() | DesignMode | |
![]() | Events | |
![]() | HelpText | Gets the help text for all the installers in the installer collection.(Inherited from Installer.) |
![]() | Installers | Gets the collection of installers that this installer contains.(Inherited from Installer.) |
![]() | Parent | Gets or sets the installer containing the collection that this installer belongs to.(Inherited from Installer.) |
![]() | Site |
| Name | Description | |
|---|---|---|
![]() | Commit(IDictionary^) | When overridden in a derived class, completes the install transaction.(Inherited from Installer.) |
![]() | CreateObjRef(Type^) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.) |
![]() | Dispose() | |
![]() | Dispose(Boolean) | |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetService(Type^) | |
![]() | GetType() | |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | Install(IDictionary^) | When overridden in a derived class, performs the installation.(Inherited from Installer.) |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.) |
![]() | OnAfterInstall(IDictionary^) | Raises the AfterInstall event.(Inherited from Installer.) |
![]() | OnAfterRollback(IDictionary^) | Raises the AfterRollback event.(Inherited from Installer.) |
![]() | OnAfterUninstall(IDictionary^) | Raises the AfterUninstall event.(Inherited from Installer.) |
![]() | OnBeforeInstall(IDictionary^) | Raises the BeforeInstall event.(Inherited from Installer.) |
![]() | OnBeforeRollback(IDictionary^) | Raises the BeforeRollback event.(Inherited from Installer.) |
![]() | OnBeforeUninstall(IDictionary^) | Raises the BeforeUninstall event.(Inherited from Installer.) |
![]() | OnCommitted(IDictionary^) | |
![]() | OnCommitting(IDictionary^) | Raises the Committing event.(Inherited from Installer.) |
![]() | Rollback(IDictionary^) | When overridden in a derived class, restores the pre-installation state of the computer.(Inherited from Installer.) |
![]() | ToString() | |
![]() | Uninstall(IDictionary^) | When overridden in a derived class, removes an installation.(Inherited from Installer.) |
| Name | Description | |
|---|---|---|
![]() | AfterInstall | Occurs after the Install methods of all the installers in the Installers property have run.(Inherited from Installer.) |
![]() | AfterRollback | Occurs after the installations of all the installers in the Installers property are rolled back.(Inherited from Installer.) |
![]() | AfterUninstall | Occurs after all the installers in the Installers property perform their uninstallation operations.(Inherited from Installer.) |
![]() | BeforeInstall | |
![]() | BeforeRollback | Occurs before the installers in the Installers property are rolled back.(Inherited from Installer.) |
![]() | BeforeUninstall | Occurs before the installers in the Installers property perform their uninstall operations.(Inherited from Installer.) |
![]() | Committed | Occurs after all the installers in the Installers property have committed their installations.(Inherited from Installer.) |
![]() | Committing | Occurs before the installers in the Installers property committ their installations.(Inherited from Installer.) |
![]() | Disposed |
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
{ }
Available since 3.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




