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