This documentation is archived and is not being maintained.

EventLogInstaller.UninstallAction Property

Gets or sets a value indicating what the installer does with the event log at uninstall time: remove it or leave it in its current installed state.

[Visual Basic]
Public Property UninstallAction As UninstallAction
[C#]
public UninstallAction UninstallAction {get; set;}
[C++]
public: __property UninstallAction get_UninstallAction();
public: __property void set_UninstallAction(UninstallAction);
[JScript]
public function get UninstallAction() : UninstallAction;
public function set UninstallAction(UninstallAction);

Property Value

One of the UninstallAction values that indicates what state to leave the event log in when the EventLog is uninstalled. The default is Remove.

Remarks

When you install an event log, you can optionally connect it to an existing log. If you do so, you must decide whether the log should return to its pre-installation state, or remain in its current, post-installation state. If you elect to return the event log to its pre-installation state, changes to the event log entries at install time are not restored. You can reset only event log properties that are associated with the EventLogInstaller to their pre-installation values.

Requirements

Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

EventLogInstaller Class | EventLogInstaller Members | System.Diagnostics Namespace

Show: