Table of Contents

Interface IBootstrapHandler

Namespace
ZeroInstall.Bootstrap
Assembly
ZeroInstall.Bootstrap.dll

Used to run and track ITasks and ask the user questions during the bootstrap process.

public interface IBootstrapHandler : ITaskHandler, IDisposable
Inherited Members

Remarks

Implementations of this interface are thread-safe. BootstrapProcess disposes the handler when handing over to Zero Install, so that the UI closes while Zero Install runs. The creator of the handler is still expected to dispose it, so Dispose() must be safe to call more than once.

Properties

Background

Hides the GUI. Has no effect when IsGui is false.

bool Background { get; set; }

Property Value

bool

IsGui

Indicates whether this handler is a GUI.

bool IsGui { get; }

Property Value

bool

Methods

GetCustomStorePath(bool, string?)

Asks the user to provide a custom path for storing implementations.

string? GetCustomStorePath(bool machineWide, string? currentPath)

Parameters

machineWide bool

Ask for a path for machine-wide deployment instead of just for the current user.

currentPath string

The currently set custom path for storing implementations; null if using default location.

Returns

string

The path to a directory; null or empty to use the default location.

Exceptions

OperationCanceledException

The user cancelled the operation.