Table of Contents

Class ZeroInstallEnvironment

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

Provides access to Zero Install-related environment variables.

public static class ZeroInstallEnvironment
Inheritance
ZeroInstallEnvironment
Inherited Members

Fields

CliName

The name of the environment variable for Cli.

public const string CliName = "ZEROINSTALL"

Field Value

string

ExternalFetcherName

The name of the environment variable for ExternalFetch.

public const string ExternalFetcherName = "ZEROINSTALL_EXTERNAL_FETCHER"

Field Value

string

FeedUriName

The name of the environment variable for FeedUri.

public const string FeedUriName = "ZEROINSTALL_FEED_URI"

Field Value

string

GuiName

The name of the environment variable for Gui.

public const string GuiName = "ZEROINSTALL_GUI"

Field Value

string

Properties

Cli

A command-line for launching the CLI version of Zero Install.

public static string? Cli { get; }

Property Value

string

ExternalFetch

A command-line that downloads a set of Implementations piped in as XML via stdin.

public static string? ExternalFetch { get; }

Property Value

string

FeedUri

The URI of the feed used to start this program.

public static FeedUri? FeedUri { get; }

Property Value

FeedUri

Gui

A command-line for launching the graphical version of Zero Install.

public static string? Gui { get; }

Property Value

string

Methods

LegacyMutexName(string?)

Old name for an AppMutex to detect running instances of Zero Install.

public static string LegacyMutexName(string? path = null)

Parameters

path string

The directory where the Zero Install instance is located. Leave null for the currently running instance.

Returns

string

Remarks

Usually (but not guaranteed to be) different for multiple instances deployed in different paths.

LegacyUpdateMutexName(string?)

Old name for an AppMutex to block instances of Zero Install from starting during an update.

public static string LegacyUpdateMutexName(string? path = null)

Parameters

path string

The directory where the Zero Install instance is located. Leave null for the currently running instance.

Returns

string

Remarks

Usually (but not guaranteed to be) different for multiple instances deployed in different paths.

MutexName(string?)

Name for an AppMutex to detect running instances of Zero Install.

public static string MutexName(string? path = null)

Parameters

path string

The directory where the Zero Install instance is located. Leave null for the currently running instance.

Returns

string

Remarks

Usually (but not guaranteed to be) different for multiple instances deployed in different paths.

UpdateMutexName(string?)

Name for an AppMutex to block instances of Zero Install from starting during an update.

public static string UpdateMutexName(string? path = null)

Parameters

path string

The directory where the Zero Install instance is located. Leave null for the currently running instance.

Returns

string

Remarks

Usually (but not guaranteed to be) different for multiple instances deployed in different paths.