Skip to content

Instantly share code, notes, and snippets.

@vorou
Created May 9, 2015 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vorou/1d6d58c05ff7d1ebe0bc to your computer and use it in GitHub Desktop.
Save vorou/1d6d58c05ff7d1ebe0bc to your computer and use it in GitHub Desktop.
$ErrorActionPreference = 'Stop';
$process = Get-Process RBTray -ErrorAction SilentlyContinue
if ($process) {
Stop-Process $process
Write-Output "Process stopped, waiting for 5 sec."
Start-Sleep -s 5
}
$packageName = 'rbtray'
UnInstall-ChocolateyZipPackage $packageName 'RBTray-4_3.zip'
$startupShortcut = "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\RBTray.lnk"
if (Test-Path $startupShortcut) {
rm $startupShortcut
Write-Output "Removed startup shortcut."
}
Write-Output "Please remove the folder in lib-bkp manually."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment