Table of Contents

Class ZeroInstallDeployment

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

Registers and discovers Zero Install deployments on this system.

public static class ZeroInstallDeployment
Inheritance
ZeroInstallDeployment
Inherited Members

Methods

FindOther(bool)

Tries to find a deployment of Zero Install that is not the currently running one.

public static string? FindOther(bool needsMachineWide = false)

Parameters

needsMachineWide bool

true if a machine-wide deployment is required; false if a user-specific deployment will also do.

Returns

string

The directory path of an deployment of Zero Install; null if none was found.

GetPath(bool)

Tries to find a deployment of Zero Install.

public static string? GetPath(bool machineWide)

Parameters

machineWide bool

true to look for machine-wide deployments; false to look for user-specific deployments.

Returns

string

The directory path of an deployment of Zero Install; null if none was found.

IsLibraryMode(bool)

Indicates whether a deployment of Zero Install was made in library mode.

public static bool IsLibraryMode(bool machineWide)

Parameters

machineWide bool

true to look for machine-wide deployments; false to look for user-specific deployments.

Returns

bool

Register(string, bool, bool)

Registers a Zero Install deployment in the Windows registry if possible.

public static void Register(string path, bool machineWide, bool libraryMode)

Parameters

path string

The directory path of the deployment of Zero Install.

machineWide bool

true if path is a machine-wide location; false if it is a user-specific location.

libraryMode bool

Indicates whether Zero Install was deployed as a library for use by other applications.

Unregister(bool)

Unregisters a Zero Install deployment from the Windows registry if possible.

public static void Unregister(bool machineWide)

Parameters

machineWide bool

true if a machine-wide registration should be removed; false if a user-specific registration should be removed.