Added Chocolatey Uninstall

This commit is contained in:
Eric Fontana
2014-09-05 08:55:30 -04:00
parent a23354bc0a
commit 91857b9003
2 changed files with 9 additions and 0 deletions

View File

@@ -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

View File

@@ -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