Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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>jonasb</string>
<key>creation_date</key>
<date>2020-04-02T13:42:34Z</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>installcheck_script</key>
<string>#!/bin/sh
APP=/Applications/zoom.us.app
if [ -d "$APP" ];
then
exit 0
fi
exit 1
</string>
<key>installer_type</key>
<string>nopkg</string>
<key>minimum_os_version</key>
<string>10.4.0</string>
<key>name</key>
<string>RemoveZoomApp</string>
<key>postinstall_script</key>
<string>#!/bin/sh
APP=/Applications/zoom.us.app
if [ -d "$APP" ];
then
rm -rf $APP
fi
</string>
<key>unattended_install</key>
<true/>
<key>version</key>
<string>1.0</string>
</dict>
</plist>
@jby

This comment has been minimized.

Copy link
Owner Author

@jby jby commented Apr 2, 2020

As far as I know, this (or the installcheck_script part at least) will run every time munki runs, and if a user has installed Zoom after this has been run it will be deleted every time.

@GenoMyb

This comment has been minimized.

Copy link

@GenoMyb GenoMyb commented Apr 2, 2020

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment