-
Notifications
You must be signed in to change notification settings - Fork 2
/
ZoomSearchDestroy.pkginfo
186 lines (163 loc) · 4.59 KB
/
ZoomSearchDestroy.pkginfo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>_metadata</key>
<dict>
<key>created_by</key>
<string>kevinmcox</string>
<key>creation_date</key>
<date>2020-04-11T00:44:44Z</date>
<key>munki_version</key>
<string>4.1.2.3939</string>
<key>os_version</key>
<string>10.14.6</string>
</dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>category</key>
<string>NoPkg</string>
<key>description</key>
<string>Zoom.us will be removed from your computer as it’s use is prohibited by corporate policy.</string>
<key>developer</key>
<string>Kevin M. Cox</string>
<key>display_name</key>
<string>Zoom Search & Destory</string>
<key>icon_name</key>
<string>ZoomSearchDestroy.png</string>
<key>installcheck_script</key>
<string>#!/bin/bash
# Zoom Search and Destroy
# Version 1.2
# By Kevin M. Cox
# Last updated 4/10/20
# Begin Search Phase
echo "Searching for Zoom files..."
if
# System Locations
[ -d /Applications/zoom.us.app ] ||
[ -d /Library/Audio/Plug-Ins/HAL/ZoomAudioDevice.driver ] ||
[ -d /Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin ] ||
[ -d /System/Library/Extensions/ZoomAudioDevice.kext ] ||
# User Directory Locations
[ -d /Users/*/.zoomus/ ] ||
[ -d /Users/*/Applications/zoom.us.app ] ||
[ -d /Users/*/Library/Application\ Support/zoom.us/ ] ||
[ -d /Users/*/Library/Caches/us.zoom.xos ] ||
[ -d /Users/*/Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin ] ||
[ -d /Users/*/Library/Logs/zoom.us/ ] ||
[ -f /Users/*/Library/Preferences/us.zoom.xos.plist ] ||
[ -f /Users/*/Library/Preferences/ZoomChat.plist ]
then
echo "Zoom files found! Proceeding to removal process..."
exit 0
fi
if
# User Installation Log
[ -f /Users/*/Library/Logs/zoominstall.log ]
then
echo "Zoom installer log found, but no current installation detected. No removal needed."
exit 1
fi
echo "No traces of Zoom found."
exit 1</string>
<key>installer_type</key>
<string>nopkg</string>
<key>minimum_os_version</key>
<string>10.4.0</string>
<key>name</key>
<string>ZoomSearchDestroy</string>
<key>postinstall_script</key>
<string>#!/bin/bash
# Zoom Search and Destroy
# Version 1.2
# By Kevin M. Cox
# Last updated 4/10/20
# Begin Destroy Phase
echo "Search and Destroy Zoom files..."
# System Locations
if
[ -d /Applications/zoom.us.app ]
then
/bin/rm -rf /Applications/zoom.us.app
echo "Deleted /Applications/zoom.us.app"
fi
if
[ -d /Library/Audio/Plug-Ins/HAL/ZoomAudioDevice.driver ]
then
/bin/rm -rf /Library/Audio/Plug-Ins/HAL/ZoomAudioDevice.driver
echo "Deleted /Library/Audio/Plug-Ins/HAL/ZoomAudioDevice.driver"
fi
if
[ -d /Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin ]
then
/bin/rm -rf /Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin
echo "Deleted /Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin"
fi
if
[ -d /System/Library/Extensions/ZoomAudioDevice.kext ]
then
kextunload -b zoom.us.ZoomAudioDevice
/bin/rm -rf /System/Library/Extensions/ZoomAudioDevice.kext
echo "Deleted /System/Library/Extensions/ZoomAudioDevice.kext"
fi
# User Directory Locations
if
[ -d /Users/*/.zoomus/ ]
then
/bin/rm -rf /Users/*/.zoomus/
echo "Deleted /Users/*/.zoomus/"
fi
if
[ -d /Users/*/Applications/zoom.us.app ]
then
/bin/rm -rf /Users/*/Applications/zoom.us.app
echo "Deleted /Users/*/Applications/zoom.us.app"
fi
if
[ -d /Users/*/Library/Application\ Support/zoom.us/ ]
then
/bin/rm -rf /Users/*/Library/Application\ Support/zoom.us/
echo "Deleted /Users/*/Library/Application\ Support/zoom.us/"
fi
if
[ -d /Users/*/Library/Caches/us.zoom.xos ]
then
/bin/rm -rf /Users/*/Library/Caches/us.zoom.xos
echo "Deleted /Users/*/Library/Caches/us.zoom.xos"
fi
if
[ -d /Users/*/Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin ]
then
/bin/rm -rf /Users/*/Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin
echo "Deleted /Users/*/Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin"
fi
if
[ -d /Users/*/Library/Logs/zoom.us/ ]
then
/bin/rm -rf /Users/*/Library/Logs/zoom.us/
echo "Deleted /Users/*/Library/Logs/zoom.us/"
fi
if
[ -f /Users/*/Library/Preferences/us.zoom.xos.plist ]
then
/bin/rm -f /Users/*/Library/Preferences/us.zoom.xos.plist
echo "Deleted /Users/*/Library/Preferences/us.zoom.xos.plist"
fi
if
[ -f /Users/*/Library/Preferences/ZoomChat.plist ]
then
/bin/rm -f /Users/*/Library/Preferences/ZoomChat.plist
echo "Deleted /Users/*/Library/Preferences/ZoomChat.plist"
fi
echo "Zoom Search and Destroy complete."</string>
<key>unattended_install</key>
<true/>
<key>version</key>
<string>1.2</string>
</dict>
</plist>