Created
May 9, 2015 07:12
-
-
Save vorou/1d6d58c05ff7d1ebe0bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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