Zero Install .NET API 2.20.0
ZeroInstall.DesktopIntegration.Windows.AppRegistration Class Reference

Contains control logic for applying Model.Capabilities.AppRegistration on Windows systems. More...

Static Public Member Functions

static void Register (FeedTarget target, Model.Capabilities.AppRegistration appRegistration, [InstantHandle] IEnumerable< VerbCapability > verbCapabilities, IIconStore iconStore, bool machineWide)
 Applies application registration to the current system. More...
 
static void Unregister (Model.Capabilities.AppRegistration appRegistration, bool machineWide)
 Removes application registration from the current system. More...
 

Static Public Attributes

const string RegKeyMachineRegisteredApplications = @"SOFTWARE\RegisteredApplications"
 The HKLM registry key for registering applications as candidates for default programs.
 
const string RegValueAppName = "ApplicationName"
 The registry value name for the application name.
 
const string RegValueAppDescription = "ApplicationDescription"
 The registry value name for the application description.
 
const string RegValueAppIcon = "ApplicationIcon"
 The registry value name for the application icon.
 
const string RegSubKeyFileAssocs = "FileAssociations"
 The registry subkey containing Model.Capabilities.FileType references.
 
const string RegSubKeyUrlAssocs = "URLAssociations"
 The registry subkey containing Model.Capabilities.UrlProtocol references.
 
const string RegSubKeyStartMenu = "StartMenu"
 The registry subkey containing Model.Capabilities.DefaultProgram references.
 

Detailed Description

Contains control logic for applying Model.Capabilities.AppRegistration on Windows systems.

Member Function Documentation

◆ Register()

static void ZeroInstall.DesktopIntegration.Windows.AppRegistration.Register ( FeedTarget  target,
Model.Capabilities.AppRegistration  appRegistration,
[InstantHandle] IEnumerable< VerbCapability verbCapabilities,
IIconStore  iconStore,
bool  machineWide 
)
inlinestatic

Applies application registration to the current system.

Parameters
targetThe application being integrated.
appRegistrationThe registration information to be applied.
verbCapabilitiesThe capabilities that the application is to be registered with.
machineWideApply the registration machine-wide instead of just for the current user.
iconStoreStores icon files downloaded from the web as local files.
Exceptions
OperationCanceledExceptionThe user canceled the task.
IOExceptionA problem occurred while writing to the filesystem or registry.
WebExceptionA problem occurred while downloading additional data (such as icons).
UnauthorizedAccessExceptionWrite access to the filesystem or registry is not permitted.

◆ Unregister()

static void ZeroInstall.DesktopIntegration.Windows.AppRegistration.Unregister ( Model.Capabilities.AppRegistration  appRegistration,
bool  machineWide 
)
inlinestatic

Removes application registration from the current system.

Parameters
appRegistrationThe registration information to be removed.
machineWideApply the registration machine-wide instead of just for the current user.
Exceptions
IOExceptionA problem occurred while writing to the filesystem or registry.
UnauthorizedAccessExceptionWrite access to the filesystem or registry is not permitted.

The documentation for this class was generated from the following file: