Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: remoting/host/installer/mac/Scripts/uninstall.sh

Issue 9958083: Initial version of the Chromoting installer for Mac. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/installer/mac/Scripts/remoting_postflight.sh ('k') | remoting/host/installer/mac/build.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/installer/mac/Scripts/uninstall.sh
===================================================================
--- remoting/host/installer/mac/Scripts/uninstall.sh (revision 0)
+++ remoting/host/installer/mac/Scripts/uninstall.sh (working copy)
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# TODO(garykac): Replace this with a proper double-clickable uninstaller app.
+NAME=org.chromium.chromoting
+LAUNCHAGENTS=/Library/LaunchAgents
+HELPERTOOLS=/Library/PrivilegedHelperTools
+PLIST="$LAUNCHAGENTS/$NAME.plist"
+
+# Stop service if currently running.
+# TODO(garykac): Trap errors and replace sleep with a check for when the
+# service is stopped.
+launchctl stop $NAME
+launchctl unload -w -S Aqua $PLIST
+sleep 1
+
+# Cleanup files from old versions of installer.
+sudo rm -f "$LAUNCHAGENTS/com.google.chrome_remote_desktop.plist"
+sudo rm -f "$HELPERTOOLS/remoting_me2me_host"
+sudo rm -f "$HELPERTOOLS/me2me.sh"
+sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me_host"
+sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me.sh"
+sudo rm -f ~/.ChromotingConfig.json
+sudo rm -f "$HELPERTOOLS/auth.json"
+sudo rm -f "$HELPERTOOLS/host.json"
+sudo rm -f "$HELPERTOOLS/me2me_enabled"
+sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me_enabled"
+sudo rm -rf /ChromotingSetup
+
+# Cleanup installed files.
+sudo rm -f $PLIST
+sudo rm -f "$HELPERTOOLS/$NAME.me2me_host"
+sudo rm -f "$HELPERTOOLS/$NAME.me2me.sh"
+sudo rm -f "$HELPERTOOLS/$NAME.json"
+sudo rm -f "$HELPERTOOLS/$NAME.me2me_enabled"
+
+# Unregister our ticket from Keystone.
+KSADMIN=/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/ksadmin
+KSPID=com.google.chrome_remote_desktop
+$KSADMIN --delete --productid $KSPID
Property changes on: remoting/host/installer/mac/Scripts/uninstall.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
« no previous file with comments | « remoting/host/installer/mac/Scripts/remoting_postflight.sh ('k') | remoting/host/installer/mac/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698