v1.0.0 = Initial Production Version

+ Initial Production Version
This commit is contained in:
Zack T
2019-01-22 22:24:15 -07:00
parent de365e82ae
commit 076e9a5490

View File

@@ -0,0 +1,47 @@
#!/bin/bash
###################################################################################################
# Script Name: install_ARCHICAD Patch.sh
# By: Zack Thompson / Created: 1/22/2019
# Version: 1.0.0 / Updated: 1/22/2019 / By: ZT
#
# Description: This script installs ARCHICAD in unattended mode.
#
###################################################################################################
echo "***** Install ARCHICAD Patch Process: START *****"
##################################################
# Define Variables
# Set working directory
pkgDir=$(/usr/bin/dirname "${0}")
# Get the filename of the .app file
ARCHICADinstaller=$(/bin/ls "${pkgDir}" | /usr/bin/grep .app)
##################################################
# Bits staged...
# Check the installation target.
if [[ $3 != "/" ]]; then
echo "ERROR: Target disk is not the startup disk."
echo "***** Install ARCHICAD Patch process: FAILED *****"
exit 1
fi
echo "Installing: " $( "${pkgDir}/${ARCHICADinstaller}/Contents/MacOS/installbuilder.sh" --version --mode unattended )
installResult=$( "${pkgDir}/${ARCHICADinstaller}/Contents/MacOS/installbuilder.sh" --mode unattended --unattendedmodeui none )
exitCode=$?
if [[ $exitCode != 0 ]]; then
echo "Installation FAILED!"
echo "Reason: ${installResult}"
echo "Exit Code: ${exitCode}"
echo "***** Install ARCHICAD Patch process: FAILED *****"
exit 2
fi
echo "ARCHICAD has been installed!"
echo "***** Install ARCHICAD Patch Process: COMPLETE *****"
exit 0