Max Glenister

About
Articles
Reviews

Removing the Blackberry Desktop Software for Mac without having to re-download a 70mb installer from Blackberry

29 May 2013 • Source on GitHub • Comments • Share on Twitter


If you happen to have installed the Blackberry Desktop Software and you want to remove it and it’s annoying persistant daemons, you might have discovered that this can only be done by downloading the 70mb installer dmg, and running the uninstaller.

That’s not an issue if you still have the installer dmg from when you errantly found yourself installing the Blackberry Desktop Software, but in my case (and my fastidious ~/Downloads cleaning habits) I no-longer posessed the installer dmg, and (even though it wouldn’t take long) I didn’t want to redownload it.

After a bit of Googling, I came across a forum post with the major part of the uninstaller (a shell script) pasted verbatim.

Unfortunately, the uninstaller script doesn’t work as is without the cushy double-clickability of the uninstaller, so I’ve consolidated it in to the following simple script that just does all of the unregistering and removing of files:

#!/bin/sh
if [ $UID -ne 0 ]; then
    echo "Script must run as root"
    exit 1
fi
/Library/Application\ Support/Blackberry/BBLaunchAgent.app -ndefault /Applications/BlackBerry\ Desktop\ Manager.app >> /dev/null
rm -fr "/Applications/BlackBerry Desktop Manager.app"
rm -fr "/Library/Receipts/blackberrydesktopmanager.pkg"
rm -fr /Users/*"/Library/Application Support/BlackBerryDesktop/"
rm -f /Users/*"/Library/Preferences/com.rim.blackberrydesktopmanager.plist"
rm -fr /Users/*"/Library/Caches/com.rim.blackberrydesktopmanager"
/Library/Application\ Support/BlackBerry/BBLaunchAgent.app -ipndefault /Library/Application\ Support/BlackBerry/IPModemPasswordDialog.app >> /dev/null
rm -fr "/Library/Application Support/BlackBerry/IPModemPasswordDialog.app"
rm -fr "/Library/Modem Scripts/RIM IP Modem.ccl"
rm -fr "/Library/Frameworks/RIM_VSP.framework"
rm -fr "/Library/Receipts/blackberryvsp.pkg"
rm -f "/Library/Preferences/com.rim.vsp.plist"
rm -fr "/System/Library/Extensions/RIMBBVSP.kext"
rm -fr "/Library/Receipts/blackberryvspdr.pkg"
rm -f "/Library/Preferences/com.rim.RIMBBVSP.plist"
sudo -u "${currentUser}" launchctl unload /Library/LaunchAgents/com.rim.BBLaunchAgent.plist
launchctl unload /Library/LaunchDaemons/com.rim.BBDaemon.plist
rm -fr "/Library/Frameworks/RimBlackBerryUSB.framework"
rm -f "/Library/LaunchDaemons/com.rim.BBDaemon.plist"
rm -f "/Library/LaunchAgents/com.rim.BBLaunchAgent.plist"
rm -fr "/Library/Application Support/BlackBerry"
rm -fr "/Library/Receipts/blackberryframeworks.pkg"
rm -f "/Library/Preferences/com.rim.RimBlackBerryUSB.plist"
rm -f "/Library/Preferences/com.rim.RimLaunchAgent.plist"
rm -f /Users/*"/Library/Preferences/com.rim.RimLaunchAgent.plist"
rm -fr "/System/Library/Extensions/BlackBerryUSBDriverInt.kext"
rm -fr "/System/Library/Extensions/RIMBBUSB.kext"
rm -fr "/Library/Receipts/blackberryusbdriverint.pkg"
rm -f "/Library/Preferences/com.rim.BlackBerryUSBDriverInt.plist"
rm -f "/Library/Preferences/com.rim.RIMBBUSB.plist"
pkgutil --forget "com.rim.blackberrydesktopmanager.BlackBerryFrameworks.pkg"
pkgutil --forget "com.rim.blackberrydesktopmanager.BlackBerryUSBDriver.pkg"
pkgutil --forget "com.rim.blackberrydesktopmanager.BlackBerryUSBDriverVSP.pkg"
pkgutil --forget "com.rim.blackberrydesktopmanager.BlackBerryVSP.pkg"
pkgutil --forget "com.rim.blackberrydesktopmanager.Application.pkg"
killall BBLaunchAgent.app
rm -fr /Library/Application\ Support/BlackBerry/
exit 0

Download from the gist at GitHub


Notice any issues in this post? You can fix it or raise an issue on GitHub.

This post was written way back in 2013. There's a chance that it's no-longer correct, or it has been superseded by a newer post. I commend you for making it this far through my archive!

Take a look in the Archive to see if I've written a newer post on the subject.

Featured articles

  • Why your reasons for no-longer using a CSS pre-processor are wrong, and you're wrong, and you should feel bad.
  • Max Glenister Uses This
  • Getting started with using Sass in your existing website
  • On the subject of "Pixel-perfect PSD to HTML/CSS"