Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 Uninstall Method

  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
EventLogInstaller..::.Uninstall Method

Removes an installation by removing event log information from the registry.

Namespace:  System.Diagnostics
Assembly:  System.Configuration.Install (in System.Configuration.Install.dll)
Visual Basic (Declaration)
Public Overrides Sub Uninstall ( _
    savedState As IDictionary _
)
Visual Basic (Usage)
Dim instance As EventLogInstaller
Dim savedState As IDictionary

instance.Uninstall(savedState)
C#
public override void Uninstall(
    IDictionary savedState
)
Visual C++
public:
virtual void Uninstall(
    IDictionary^ savedState
) override
JScript
public override function Uninstall(
    savedState : IDictionary
)

Parameters

savedState
Type: System.Collections..::.IDictionary
An IDictionary that contains the pre-installation state of the computer.

If the UninstallAction property value is Remove, the Uninstall method deletes the source and the associated log that the installer created if the Log and Source properties specified the creation of a new event log and source.

Typically, you do not call the methods of the EventLogInstaller from within your code; they are generally called only by the Installer Tool (Installutil.exe) in uninstall mode. The tool automatically calls the Uninstall method to restore the parts of the system that were affected by the installation to their pre-installation states. This includes deleting registry information that is associated with the event log being uninstalled.

An application's uninstall routine uses the project installer's Installer..::.Context property to automatically maintain information about the components that have already been uninstalled. This state information, which is passed to Uninstall as the savedState parameter, is continuously updated as the tool uninstalls each EventLogInstaller. Usually, it is not necessary for your code to explicitly modify this state information.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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, 3.0, 2.0, 1.1, 1.0
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