Table of Contents

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

string

RegSubKeyFileAssocs

The registry subkey containing FileType references.

public const string RegSubKeyFileAssocs = "FileAssociations"

Field Value

string

RegSubKeyStartMenu

The registry subkey containing DefaultProgram references.

public const string RegSubKeyStartMenu = "StartMenu"

Field Value

string

RegSubKeyUrlAssocs

The registry subkey containing UrlProtocol references.

public const string RegSubKeyUrlAssocs = "URLAssociations"

Field Value

string

RegValueAppDescription

The registry value name for the application description.

public const string RegValueAppDescription = "ApplicationDescription"

Field Value

string

RegValueAppIcon

The registry value name for the application icon.

public const string RegValueAppIcon = "ApplicationIcon"

Field Value

string

RegValueAppName

The registry value name for the application name.

public const string RegValueAppName = "ApplicationName"

Field Value

string

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 FeedTarget

The application being integrated.

appRegistration AppRegistration

The registration information to be applied.

verbCapabilities IEnumerable<VerbCapability>

The capabilities that the application is to be registered with.

iconStore IIconStore

Stores icon files downloaded from the web as local files.

machineWide bool

Apply 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 AppRegistration

The registration information to be removed.

machineWide bool

Apply 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.