From 17da90fa06d63d87423d497f9bd33cb559be36bf Mon Sep 17 00:00:00 2001 From: Philippe Miossec Date: Tue, 18 Oct 2016 23:26:10 +0200 Subject: [PATCH] Add an uninstall script --- ChocolateyTemplates/chocolateyUninstall.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ChocolateyTemplates/chocolateyUninstall.ps1 diff --git a/ChocolateyTemplates/chocolateyUninstall.ps1 b/ChocolateyTemplates/chocolateyUninstall.ps1 new file mode 100644 index 00000000..006d0c5c --- /dev/null +++ b/ChocolateyTemplates/chocolateyUninstall.ps1 @@ -0,0 +1,9 @@ +$sysDrive = $env:SystemDrive +$gittfsPath = "$sysDrive\tools\gittfs" + +if(test-path $gittfsPath) { + write-host "Cleaning out the contents of $gittfsPath" + Remove-Item "$($gittfsPath)\*" -recurse -force +} + +write-host 'git-tfs has been uninstalled.'