Contents

Method

Uninstall

ModuleSoftware
LibraryCore
Action

Uninstall the specified software item.

Parameters

Product (string): The software product to uninstall. Any instances that match will be uninstalled.

Publisher (string): The publisher of the product to uninstall. This value must be empty (or the parameter left out completely) if there is no recorded publisher for the product.

Version (string; optional): If given, uninstall only this exact version of the product. Leading zeroes are not significant in dot-separated numeric fields, so for example versions "11.0.0" and "11.0.00" are considered to be equivalent. However, there must be the same quantity of dot-separated fields, e.g. "11" and "11.0" are not equivalent. Version is not relevant for uninstall on some platforms, e.g. those with Debian-style packages.

Return valuesCommandLine (string): The command(s) used to uninstall the software.
Example
Remove Notepad++. (This takes advantage of wildcarding in the Software.GetInstallations method - the full product name is "Notepad++ (64-bit x64)".)
@packageInfo = Software.GetInstallations(Product : "Notepad++");
evaluate;
Software.Uninstall(Product: @packageInfo.Product, Publisher: @packageInfo.Publisher);
Platforms
  • Windows
  • Linux
  • Solaris Intel
  • Solaris Sparc
  • Android
Notes

On Windows, uninstall commands that do not use msiexec are not supported.

An empty Publisher does not mean "any publisher" - it means specifically that there is no recorded publisher.