Show / Hide Table of Contents

Class ZeroInstallEnvironment

Provides access to Zero Install-related environment variables.

Inheritance
Object
ZeroInstallEnvironment
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public static class ZeroInstallEnvironment : Object

Fields

CliName

The name of the environment variable for Cli.

Declaration
public const string CliName = "ZEROINSTALL"
Field Value
Type Description
String

ExternalFetcherName

The name of the environment variable for ExternalFetch.

Declaration
public const string ExternalFetcherName = "ZEROINSTALL_EXTERNAL_FETCHER"
Field Value
Type Description
String

FeedUriName

The name of the environment variable for FeedUri.

Declaration
public const string FeedUriName = "ZEROINSTALL_FEED_URI"
Field Value
Type Description
String

GuiName

The name of the environment variable for Gui.

Declaration
public const string GuiName = "ZEROINSTALL_GUI"
Field Value
Type Description
String

Properties

Cli

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

Declaration
public static string Cli { get; }
Property Value
Type Description
String

ExternalFetch

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

Declaration
public static string ExternalFetch { get; }
Property Value
Type Description
String

FeedUri

The URI of the feed used to start this program.

Declaration
public static FeedUri FeedUri { get; }
Property Value
Type Description
FeedUri

Gui

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

Declaration
public static string Gui { get; }
Property Value
Type Description
String

Methods

LegacyMutexName(String)

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

Declaration
public static string LegacyMutexName(string path = null)
Parameters
Type Name Description
String path

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

Returns
Type Description
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.

Declaration
public static string LegacyUpdateMutexName(string path = null)
Parameters
Type Name Description
String path

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

Returns
Type Description
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.

Declaration
public static string MutexName(string path = null)
Parameters
Type Name Description
String path

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

Returns
Type Description
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.

Declaration
public static string UpdateMutexName(string path = null)
Parameters
Type Name Description
String path

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

Returns
Type Description
String
Remarks

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

In This Article
Back to top Copyright Bastian Eicher et al