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[]?, string?, Uri?, string?, string?, long?, bool)
Adds an entry to the list of uninstallable applications.
public static void Register(string id, string name, string[] uninstallCommand, string[]? modifyCommand = null, string? publisher = null, Uri? homepage = null, string? iconPath = null, string? version = null, long? size = null, bool machineWide = false)
Parameters
id
stringThe ID of the entry to create.
name
stringThe name of the application.
uninstallCommand
string[]The command-line to invoke for uninstalling the application.
modifyCommand
string[]The command-line to invoke for modifying the state of the application.
publisher
stringThe publisher (company or organization) of the application.
homepage
UriThe URL of a web-page describing application in more detail.
iconPath
stringThe path of an icon file.
version
stringThe application's current version.
size
long?The application's size in bytes.
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.
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
FeedTargetThe application being added.
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(string, bool)
Removes an entry from the list of uninstallable applications.
public static void Unregister(string id, bool machineWide)
Parameters
id
stringThe ID of the entry 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.
Unregister(FeedUri, bool)
Removes an entry from the list of uninstallable applications.
public static void Unregister(FeedUri uri, bool machineWide)
Parameters
uri
FeedUriThe feed 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.