SnapInInstaller.Install Method (IDictionary)


Writes settings into the registry. This method overrides the virtual Install method for Installer class. For each snap-in that is defined in the loaded assembly, reflection is used to get registration information such as their node types, their snap-in identities, and other information. These settings are then written to the registry. If a rollback is required, previous settings are stored in the supplied IDictionary value.

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)


public override void Install(
    IDictionary stateSaver
virtual void Install(
    IDictionary^ stateSaver
) override
override Install : 
        stateSaver:IDictionary -> unit
Public Overrides Sub Install (
    stateSaver As IDictionary



Exception Condition

The stateSaver parameter is a null reference (Nothing in Visual Basic .NET).


An exception occurred in the BeforeInstall event handler of one of the installers in the collection.

-or- An exception occurred in the AfterInstall event handler of one of the installers in the collection.


For a detailed description of the installation methods, see the Installer.

See Also

SnapInInstaller Class
Microsoft.ManagementConsole Namespace

Return to top