Variables handed to scripts
pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3
pathToPackage=$1
targetLocation=$2
targetVolume=$3
Environment Variables set for scripts
INSTALLER_TEMP=/private/tmp/PKInstallSandbox.EDPpwt/tmp
DSTVOLUME=/
TMPDIR=/private/tmp/PKInstallSandbox.EDPpwt/tmp
DSTROOT=/
USER=test
COMMAND_MODE=unix2003
SCRIPT_NAME=preinstall
SHARED_INSTALLER_TEMP=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager-shared-tmp
INSTALLER_SECURE_TEMP=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Secure_Temp.713947074
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec
PWD=/private/tmp/PKInstallSandbox.EDPpwt/Scripts/com.test.Template.Vd7S2Z
INSTALL_PKG_SESSION_ID=com.test.Template
PACKAGE_PATH=/Users/test/Desktop/Iceberg Builds/posttest/build/Template.pkg
SHLVL=1
HOME=/Users/test
_=/usr/bin/printenv
DSTVOLUME=/
TMPDIR=/private/tmp/PKInstallSandbox.EDPpwt/tmp
DSTROOT=/
USER=test
COMMAND_MODE=unix2003
SCRIPT_NAME=preinstall
SHARED_INSTALLER_TEMP=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager-shared-tmp
INSTALLER_SECURE_TEMP=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Secure_Temp.713947074
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec
PWD=/private/tmp/PKInstallSandbox.EDPpwt/Scripts/com.test.Template.Vd7S2Z
INSTALL_PKG_SESSION_ID=com.test.Template
PACKAGE_PATH=/Users/test/Desktop/Iceberg Builds/posttest/build/Template.pkg
SHLVL=1
HOME=/Users/test
_=/usr/bin/printenv