From 91857b9003cf7f54b079aab170739303b5323876 Mon Sep 17 00:00:00 2001 From: Eric Fontana Date: Fri, 5 Sep 2014 08:55:30 -0400 Subject: [PATCH] Added Chocolatey Uninstall --- TimberWinR.sln | 1 + chocolateyUninstall.ps1.template | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 chocolateyUninstall.ps1.template diff --git a/TimberWinR.sln b/TimberWinR.sln index b437a34..43b314e 100644 --- a/TimberWinR.sln +++ b/TimberWinR.sln @@ -19,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution appveyor.yml = appveyor.yml chocolatey.png = chocolatey.png chocolateyInstall.ps1.template = chocolateyInstall.ps1.template + chocolateyUninstall.ps1.template = chocolateyUninstall.ps1.template LICENSE.txt = LICENSE.txt README.md = README.md timberwinr.nuspec.template = timberwinr.nuspec.template diff --git a/chocolateyUninstall.ps1.template b/chocolateyUninstall.ps1.template new file mode 100644 index 0000000..cddf045 --- /dev/null +++ b/chocolateyUninstall.ps1.template @@ -0,0 +1,8 @@ +$packageName = 'TimberWinR' # arbitrary name for the package, used in messages +$installerType = 'msi' #only one of these: exe, msi, msu +$url = 'http://www.ericfontana.com/TimberWinR/TimberWinR-${version}.0.msi' # download url +$silentArgs = '/quiet' +$validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx +UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" -validExitCodes $validExitCodes + +