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
idstringThe ID of the entry to create.
namestringThe name of the application.
uninstallCommandstring[]The command-line to invoke for uninstalling the application.
modifyCommandstring[]The command-line to invoke for modifying the state of the application.
publisherstringThe publisher (company or organization) of the application.
homepageUriThe URL of a web-page describing application in more detail.
iconPathstringThe path of an icon file.
versionstringThe application's current version.
sizelong?The application's size in bytes.
machineWideboolApply 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
targetFeedTargetThe application being added.
iconStoreIIconStoreStores icon files downloaded from the web as local files.
machineWideboolApply 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
idstringThe ID of the entry to be removed.
machineWideboolApply 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
uriFeedUriThe feed to be removed.
machineWideboolApply 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.