Posted on 08-25-2024 07:03 PM
Download the MATLAB DMG Installer:
Mount the DMG and Run the Installer:
Log In with Your Company Account:
Select Advanced Options:
Download the Installation Files:
Create the Installer Input File:
Edit this file to include the following parameters:
destinationFolder=/Applications
agreeToLicense=yes
outputFile=/tmp/mathworks_install.log
enableLNU=yes
If deploying with a File Installation Key (FIK), add:
fileInstallationKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Save the installer_input.txt file.
Create the Post-Installation Script:
Create a script to automate the installation process:
#!/bin/bash
INSTALL_DIR="/private/tmp/MatlabR2024a"
# Run the installer
"$INSTALL_DIR"/install -inputFile "$INSTALL_DIR"/installer_input.txt
# Check if the installation was successful
if [ $? -eq 0 ]; then
echo "MATLAB installation completed successfully."
else
echo "MATLAB installation failed." >&2
exit 1
fi
# Clean up the installation files if needed
# Uncomment the following line to remove the installer files after installation
# rm -rf "$INSTALL_DIR"
Save this script as install_matlab.sh.
Packaging the Installation for JAMF Deployment:
Upload the Package to JAMF:
Create a JAMF Policy for Deployment:
Tuesday
@Hasibravo
Are you doing this with 2 packages?
was trying to use your script as post install script to add as part of the package. Cant get it to work though