#!/bin/sh
## postflight
##
## Not supported for flat packages.

pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3

xml=$(cat <<-EOF
<config>
	<panel>
		<name>AppsPanel</name>
		<visible>true</visible>
	</panel>
	<panel>
		<name>FilesPanel</name>
		<masked>false</masked>
	</panel>
	<panel>
		<name>MarketPanel</name>
		<masked>false</masked>
	</panel>
	<feature>
		<name>SelfServeInstalls</name>
		<enabled>true</enabled>
	</feature>
	<feature>
		<name>BrowserBasedAuthentication</name>
		<enabled>false</enabled>
	</feature>
	<feature>
		<name>Selfupdate</name>
		<enabled>false</enabled>
	</feature>
</config>
EOF)

pkill "Creative Cloud"

mkdir /Library/Application\ Support/Adobe/OOBE/Configs

echo $xml > /Library/Application\ Support/Adobe/OOBE/Configs/ServiceConfig.xml 

pkill “Core Sync Helper” 
pkill “Core Sync”
pkill “Adobe Desktop Service”
pkill “AdobeCRDaemon”

open -a Creative\ Cloud




exit 0		## Success
exit 1		## Failure
