--- /dev/null 2014-03-13 13:00:34.000000000 -0600 +++ new/modules/fxpackager/src/main/resources/com/sun/javafx/tools/resource/mac/preinstall.template 2014-03-13 13:00:34.000000000 -0600 @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +set -e +if launchctl list "DEPLOY_DAEMON_IDENTIFIER" &> /dev/null; then + launchctl unload "/Library/LaunchDaemons/DEPLOY_LAUNCHD_PLIST_FILE" +fi + +exit 0