try {
  $sysDrive = $env:SystemDrive
  $gittfsPath = "$sysDrive\tools\gittfs"

  if(test-path $gittfsPath) {
    write-host "Cleaning out the contents of $gittfsPath"
    Remove-Item "$($gittfsPath)\*" -recurse -force
  }
  
  Install-ChocolateyZipPackage 'gittfs' '${DownloadUrl}' $gittfsPath
  Install-ChocolateyPath $gittfsPath

  write-host 'git-tfs has been installed. Call `git tfs` from the command line to see options. You may need to close and reopen the command shell.'
  Write-ChocolateySuccess 'gittfs'
} catch {
  Write-ChocolateyFailure 'gittfs' $($_.Exception.Message)
  throw 
}

$sysDrive = $env:SystemDrive
$gittfsPath = "$sysDrive\tools\gittfs"

if(test-path $gittfsPath) {
	write-host "Cleaning out the contents of $gittfsPath"
	Remove-Item "$($gittfsPath)\*" -recurse -force
}

Install-ChocolateyZipPackage 'gittfs' '${DownloadUrl}' $gittfsPath
Install-ChocolateyPath $gittfsPath

write-host 'git-tfs has been installed. Call `git tfs` from the command line to see options. You may need to close and reopen the command shell.'

Remove deprecated calls to chocolatey functions
Remove deprecated calls to chocolatey functions

+ remove no more needed try/catch
https://github.com/chocolatey/choco/wiki/HelpersReference#error--success-functions
