From ec73e35dc127903fda30c275ac22328d05f96f58 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 26 Dec 2013 07:36:48 +0000 Subject: [PATCH] * properly support 'cuninst filebot' --- installer/chocolatey/tools/chocolateyUninstall.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 installer/chocolatey/tools/chocolateyUninstall.ps1 diff --git a/installer/chocolatey/tools/chocolateyUninstall.ps1 b/installer/chocolatey/tools/chocolateyUninstall.ps1 new file mode 100644 index 00000000..1b99b8b4 --- /dev/null +++ b/installer/chocolatey/tools/chocolateyUninstall.ps1 @@ -0,0 +1,9 @@ +$app = Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name = 'FileBot'" +echo $app + +if ($app -eq $null) { + echo 'FileBot is not installed.' +} else { + $app.Uninstall() + echo 'FileBot has been uninstalled.' +}