Class UninstallStep
- Namespace
- FishMMO.Installer
- Assembly
- FishMMO-Installer.dll
One step of an uninstall, in the order it must run.
public sealed record UninstallStep : IEquatable<UninstallStep>
- Inheritance
-
UninstallStep
- Implements
- Inherited Members
Constructors
UninstallStep(UninstallStepKind, string, string, string?, string?, string?, bool)
One step of an uninstall, in the order it must run.
public UninstallStep(UninstallStepKind Kind, string Description, string CommandLine, string? TargetPath = null, string? ExecutablePath = null, string? Arguments = null, bool ContinueOnFailure = false)
Parameters
KindUninstallStepKindHow the step is carried out.
DescriptionstringWhat the step does, in the operator's terms.
CommandLinestringThe exact command line, as it is shown to the operator and as it is run. For Executable this is the quoted executable path followed by its arguments; ExecutablePath and Arguments split the same thing.
TargetPathstringThe directory a DirectoryRemoval removes.
ExecutablePathstringThe executable an Executable step runs.
ArgumentsstringArguments for ExecutablePath.
ContinueOnFailureboolTrue for steps whose failure is not a reason to abandon the uninstall — stopping a service that is already stopped, for instance. Everything else stops the run.
Properties
Arguments
Arguments for ExecutablePath.
public string? Arguments { get; init; }
Property Value
CommandLine
The exact command line, as it is shown to the operator and as it is run. For Executable this is the quoted executable path followed by its arguments; ExecutablePath and Arguments split the same thing.
public string CommandLine { get; init; }
Property Value
ContinueOnFailure
True for steps whose failure is not a reason to abandon the uninstall — stopping a service that is already stopped, for instance. Everything else stops the run.
public bool ContinueOnFailure { get; init; }
Property Value
Description
What the step does, in the operator's terms.
public string Description { get; init; }
Property Value
ExecutablePath
The executable an Executable step runs.
public string? ExecutablePath { get; init; }
Property Value
Kind
How the step is carried out.
public UninstallStepKind Kind { get; init; }
Property Value
TargetPath
The directory a DirectoryRemoval removes.
public string? TargetPath { get; init; }