Table of Contents

Class PathEnv

Namespace
ZeroInstall.DesktopIntegration.Windows
Assembly
ZeroInstall.DesktopIntegration.dll

Manages the PATH environment variable.

public static class PathEnv
Inheritance
PathEnv
Inherited Members

Methods

AddDir(string, bool)

Adds a directory to the search PATH.

public static void AddDir(string directory, bool machineWide)

Parameters

directory string

The directory to add to the search PATH.

machineWide bool

true to use the machine-wide PATH variable; false for the per-user variant.

Get(bool)

Returns the current search PATH.

public static string[] Get(bool machineWide)

Parameters

machineWide bool

true to use the machine-wide PATH variable; false for the per-user variant.

Returns

string[]

The individual directories listed in the search path.

RemoveDir(string, bool)

Removes a directory from the search PATH.

public static void RemoveDir(string directory, bool machineWide)

Parameters

directory string

The directory to remove from the search PATH.

machineWide bool

true to use the machine-wide PATH variable; false for the per-user variant.

Set(string[], bool)

Sets the current search PATH.

public static void Set(string[] directories, bool machineWide)

Parameters

directories string[]

The individual directories to list in the search PATH.

machineWide bool

true to use the machine-wide PATH variable; false for the per-user variant.