#!/bin/sh
# 
# File:   uninstall-app.sh
# Author: tikksa
#
# Created on 25. toukokuuta 2010, 16:48
#
# This script will be installed as .../uninstall.app/Contents/MacOS/uninstall
#
# It will copy 2nd stage uninstall app to a temporary directory
# and asks LaunchServices to run it from there.
#
tmpdir=`mktemp -d -t MacProtectionUninstall_XXXXXX` || exit 1
bundle=`dirname "$0"`
cp -Rp "$bundle/../Resources/UninstallStage2.app" "$tmpdir"
open "$tmpdir/UninstallStage2.app"
