Edit

Share via


EventLogInstaller.UninstallAction Property

Definition

Gets or sets a value that indicates whether the Installutil.exe (Installer Tool) should remove the event log or leave it in its installed state at uninstall time.

public:
 property System::Configuration::Install::UninstallAction UninstallAction { System::Configuration::Install::UninstallAction get(); void set(System::Configuration::Install::UninstallAction value); };
public System.Configuration.Install.UninstallAction UninstallAction { get; set; }
member this.UninstallAction : System.Configuration.Install.UninstallAction with get, set
Public Property UninstallAction As 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.

Exceptions

UninstallAction contains an invalid value. The only valid values for this property are Remove and NoAction.

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 installation are not restored. You can reset only the event log properties that are associated with the EventLogInstaller to their pre-installation values.

Applies to