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
needsMachineWidebooltrueif a machine-wide deployment is required;falseif a user-specific deployment will also do.
Returns
- string
The directory path of an deployment of Zero Install;
nullif none was found.
GetPath(bool)
Tries to find a deployment of Zero Install.
public static string? GetPath(bool machineWide)
Parameters
machineWidebooltrueto look for machine-wide deployments;falseto look for user-specific deployments.
Returns
- string
The directory path of an deployment of Zero Install;
nullif none was found.
IsLibraryMode(bool)
Indicates whether a deployment of Zero Install was made in library mode.
public static bool IsLibraryMode(bool machineWide)
Parameters
machineWidebooltrueto look for machine-wide deployments;falseto look for user-specific deployments.
Returns
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
pathstringThe directory path of the deployment of Zero Install.
machineWidebooltrueifpathis a machine-wide location;falseif it is a user-specific location.libraryModeboolIndicates 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
machineWidebooltrueif a machine-wide registration should be removed;falseif a user-specific registration should be removed.