Removes an installation by removing event log information from the registry.
Assembly: System.Configuration.Install (in System.Configuration.Install.dll)
If the UninstallAction property value is Remove, the 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 Installutil.exe (Installer Tool) in uninstall mode. The tool automatically calls the 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 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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.