Class AppAlias
- Namespace
- ZeroInstall.DesktopIntegration.Windows
- Assembly
- ZeroInstall.DesktopIntegration.dll
Contains control logic for applying AppAlias on Windows systems.
public static class AppAlias
- Inheritance
-
AppAlias
- Inherited Members
Fields
RegKeyAppPaths
The HKCU/HKLM registry key for storing application lookup paths.
public const string RegKeyAppPaths = "Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"
Field Value
Methods
Create(FeedTarget, string?, string, IIconStore, bool)
Creates an application alias in the current system.
public static void Create(FeedTarget target, string? command, string aliasName, IIconStore iconStore, bool machineWide)
Parameters
target
FeedTargetThe application being integrated.
command
stringThe command within
target
the alias shall point to; can benull
.aliasName
stringThe name of the alias to be created.
iconStore
IIconStoreStores icon files downloaded from the web as local files.
machineWide
boolCreate the alias machine-wide instead of just for the current user.
Exceptions
- OperationCanceledException
The user canceled the task.
- IOException
A problem occurred while writing to the filesystem or registry.
- WebException
A problem occurred while downloading additional data (such as icons).
- UnauthorizedAccessException
Write access to the filesystem or registry is not permitted.
GetStubDir(bool)
Returns the path of the directory used to store alias stub EXEs.
public static string GetStubDir(bool machineWide)
Parameters
machineWide
booltrue
for a machine-wide directory;false
for a directory just for the current user.
Returns
Remove(string, bool)
Removes an application alias from the current system.
public static void Remove(string aliasName, bool machineWide)
Parameters
aliasName
stringThe name of the alias to be removed.
machineWide
boolThe alias was created machine-wide instead of just for the current user.
Exceptions
- IOException
A problem occurred while writing to the filesystem or registry.
- UnauthorizedAccessException
Write access to the filesystem or registry is not permitted.