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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
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
OLDNEW
(Empty)
1 #!/bin/sh
2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # TODO(garykac): Replace this with a proper double-clickable uninstaller app.
8 NAME=org.chromium.chromoting
9 LAUNCHAGENTS=/Library/LaunchAgents
10 HELPERTOOLS=/Library/PrivilegedHelperTools
11 PLIST="$LAUNCHAGENTS/$NAME.plist"
12
13 # Stop service if currently running.
14 # TODO(garykac): Trap errors and replace sleep with a check for when the
15 # service is stopped.
16 launchctl stop $NAME
17 launchctl unload -w -S Aqua $PLIST
18 sleep 1
19
20 # Cleanup files from old versions of installer.
21 sudo rm -f "$LAUNCHAGENTS/com.google.chrome_remote_desktop.plist"
22 sudo rm -f "$HELPERTOOLS/remoting_me2me_host"
23 sudo rm -f "$HELPERTOOLS/me2me.sh"
24 sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me_host"
25 sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me.sh"
26 sudo rm -f ~/.ChromotingConfig.json
27 sudo rm -f "$HELPERTOOLS/auth.json"
28 sudo rm -f "$HELPERTOOLS/host.json"
29 sudo rm -f "$HELPERTOOLS/me2me_enabled"
30 sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me_enabled"
31 sudo rm -rf /ChromotingSetup
32
33 # Cleanup installed files.
34 sudo rm -f $PLIST
35 sudo rm -f "$HELPERTOOLS/$NAME.me2me_host"
36 sudo rm -f "$HELPERTOOLS/$NAME.me2me.sh"
37 sudo rm -f "$HELPERTOOLS/$NAME.json"
38 sudo rm -f "$HELPERTOOLS/$NAME.me2me_enabled"
39
40 # Unregister our ticket from Keystone.
41 KSADMIN=/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Content s/MacOS/ksadmin
42 KSPID=com.google.chrome_remote_desktop
43 $KSADMIN --delete --productid $KSPID
OLDNEW
« 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