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

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

Static Public Member Functions

static void Register (FeedTarget target, Model.Capabilities.ComServer comServer, IIconStore iconStore, bool machineWide)
 Registers a COM server in the current system. More...
 
static void Unregister (Model.Capabilities.ComServer comServer, bool machineWide)
 Unregisters a COM server in the current system. More...
 

Static Public Attributes

const string RegKeyClassesIDs = @"CLSID"
 The HKCR registry key for storing COM class IDs.
 

Detailed Description

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

Member Function Documentation

◆ Register()

static void ZeroInstall.DesktopIntegration.Windows.ComServer.Register ( FeedTarget  target,
Model.Capabilities.ComServer  comServer,
IIconStore  iconStore,
bool  machineWide 
)
inlinestatic

Registers a COM server in the current system.

Parameters
targetThe application being integrated.
comServerThe COM server to be registered.
machineWideRegister the COM server 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.ComServer.Unregister ( Model.Capabilities.ComServer  comServer,
bool  machineWide 
)
inlinestatic

Unregisters a COM server in the current system.

Parameters
comServerThe COM server to be unregistered.
machineWideUnregister the COM server 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: