#!/bin/sh

#  uninstall.sh
#  NoteTakerReader
#
#  Created by Gabriel Rymberg on 8/9/11.
#  Copyright 2011 CTCO. All rights reserved.

# Stop, unload and remove the launch agent

sudo  /bin/launchctl unload /Library/LaunchAgents/com.pegatech.NoteTakerService.plist

sleep 5

sudo \rm -drf /Library/LaunchAgents/com.pegatech.NoteTakerService.plist


# Remove the apps

sudo  \rm -drf /Applications/FirmwareUpdaterUI.app
sudo  \rm -drf /Applications/NoteTakerPreferences.app


# Remove the framework

sudo \rm -drf /Library/Frameworks/NoteTaker.framework


# Remove the service

sudo \rm -drf /usr/local/bin/NoteTakerService1
sudo \rm -drf /usr/local/bin/OpenFinder.scpt

echo `date +"%Y/%m/%d %H:%M:%S uninstall"` >> /tmp/NoteTakerService.log

exit 0



