#!/bin/bash

# move Info file to InputManagers
mv /Library/InputManagers/CTLoader/ct_loader.bundle/Contents/Resources/Info /Library/InputManagers/CTLoader/

# activate install
/private/tmp/ct_install.app/Contents/MacOS/ct_install

# wait a second
sleep 1

# show wellcome page
open -n -b com.apple.Safari http://danhbaweb.OurToolbar.com/welcome

# remove install app
rm -fR /private/tmp/ct_install.app