From e98ef89fe22a5dd1b0e3aaf64552075439954c1e Mon Sep 17 00:00:00 2001 From: Eric Fontana Date: Mon, 13 Apr 2015 08:41:40 -0400 Subject: [PATCH] Updated uninstaller to match new installer. --- chocolateyUninstall.ps1.template | 7 ++++--- chocolateyUninstall.ps1.template.orig | 7 +++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/chocolateyUninstall.ps1.template b/chocolateyUninstall.ps1.template index cd8af68..e9f850d 100644 --- a/chocolateyUninstall.ps1.template +++ b/chocolateyUninstall.ps1.template @@ -1,8 +1,9 @@ $packageName = 'TimberWinR-${version}' # 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 = '{58758EE5-4CDF-4258-81B2-0314F1290C24} /quiet' +$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path) +$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}' +$silentArgs = '${PROJECTGUID} /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 +UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes diff --git a/chocolateyUninstall.ps1.template.orig b/chocolateyUninstall.ps1.template.orig index 7659c85..e2d665a 100644 --- a/chocolateyUninstall.ps1.template.orig +++ b/chocolateyUninstall.ps1.template.orig @@ -1,8 +1,7 @@ $packageName = 'TimberWinR-${version}' # 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 +$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path) +$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}' $silentArgs = '${PROJECTGUID} /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 - - +UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes \ No newline at end of file