Table of Contents

Class UninstallEntry

Namespace
ZeroInstall.DesktopIntegration.Windows
Assembly
ZeroInstall.DesktopIntegration.dll

Manages uninstall registry entries on Windows systems.

public static class UninstallEntry
Inheritance
UninstallEntry
Inherited Members

Methods

Register(string, string[], string, string?, Uri?, string?, string?, long?, bool)

Adds an entry to the list of uninstallable applications.

public static void Register(string id, string[] uninstallCommand, string name, string? publisher = null, Uri? homepage = null, string? iconPath = null, string? version = null, long? size = null, bool machineWide = false)

Parameters

id string

The ID of the entry to create.

uninstallCommand string[]

The command-line to invoke for uninstalling the application.

name string

The name of the application.

publisher string

The publisher (company or organization) of the application.

homepage Uri

The URL of a web-page describing application in more detail.

iconPath string

The path of an icon file.

version string

The application's current version.

size long?

The application's size in bytes.

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.

Register(FeedTarget, IIconStore, bool)

Adds an entry to the list of uninstallable applications.

public static void Register(FeedTarget target, IIconStore iconStore, bool machineWide)

Parameters

target FeedTarget

The application being added.

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(string, bool)

Removes an entry from the list of uninstallable applications.

public static void Unregister(string id, bool machineWide)

Parameters

id string

The ID of the entry 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.

Unregister(FeedUri, bool)

Removes an entry from the list of uninstallable applications.

public static void Unregister(FeedUri uri, bool machineWide)

Parameters

uri FeedUri

The feed 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.