Class AppRegistration
- Namespace
- ZeroInstall.DesktopIntegration.Windows
- Assembly
- ZeroInstall.DesktopIntegration.dll
Contains control logic for applying AppRegistration on Windows systems.
public static class AppRegistration
- Inheritance
-
AppRegistration
- Inherited Members
Fields
RegKeyMachineRegisteredApplications
The HKLM registry key for registering applications as candidates for default programs.
public const string RegKeyMachineRegisteredApplications = "SOFTWARE\\RegisteredApplications"
Field Value
RegSubKeyFileAssocs
The registry subkey containing FileType references.
public const string RegSubKeyFileAssocs = "FileAssociations"
Field Value
RegSubKeyStartMenu
The registry subkey containing DefaultProgram references.
public const string RegSubKeyStartMenu = "StartMenu"
Field Value
RegSubKeyUrlAssocs
The registry subkey containing UrlProtocol references.
public const string RegSubKeyUrlAssocs = "URLAssociations"
Field Value
RegValueAppDescription
The registry value name for the application description.
public const string RegValueAppDescription = "ApplicationDescription"
Field Value
RegValueAppIcon
The registry value name for the application icon.
public const string RegValueAppIcon = "ApplicationIcon"
Field Value
RegValueAppName
The registry value name for the application name.
public const string RegValueAppName = "ApplicationName"
Field Value
Methods
Register(FeedTarget, AppRegistration, IEnumerable<VerbCapability>, IIconStore, bool)
Applies application registration to the current system.
public static void Register(FeedTarget target, AppRegistration appRegistration, IEnumerable<VerbCapability> verbCapabilities, IIconStore iconStore, bool machineWide)
Parameters
target
FeedTargetThe application being integrated.
appRegistration
AppRegistrationThe registration information to be applied.
verbCapabilities
IEnumerable<VerbCapability>The capabilities that the application is to be registered with.
iconStore
IIconStoreStores icon files downloaded from the web as local files.
machineWide
boolApply the registration 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.
Unregister(AppRegistration, bool)
Removes application registration from the current system.
public static void Unregister(AppRegistration appRegistration, bool machineWide)
Parameters
appRegistration
AppRegistrationThe registration information to be removed.
machineWide
boolApply the registration 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.