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:
Posted on 01-14-2025 07:56 AM
@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
2 weeks ago
Hi @tdenton
Sorry, I was away that's why I am replying late.
You don't need two packages. Just add the script in a post-install script, add the following parameters into installer_input.txt, and create the package for deployment.
Please ensure the address you mentioned in the scripts is correct.
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.
Please let me know exactly what you are facing issue.
a week ago
Could get it to work not sure what I was doing wrong.
Ended up using this in a script connected to jamf policy seems to work fine
cd /private/tmp/MathWorks/R2024a/
./install -inputFile installer_input.txt