Skip to main content
Question

Instructions to Install MATLAB 2024a with License or Prompt for License Key

  • August 26, 2024
  • 5 replies
  • 1274 views

Hasibravo
Forum|alt.badge.img+7


Download the MATLAB DMG Installer:

  • Visit MathWorks and log in with your MathWorks account.
  • Download the MATLAB DMG installer for macOS.

Mount the DMG and Run the Installer:

  • Double-click the downloaded DMG file to mount it.
  • Open the mounted DMG and run the InstallForMacOSX.app.

Log In with Your Company Account:

  • When prompted, log in using your company MathWorks account.
  • Choose your license from the available options.

Select Advanced Options:

  • Before proceeding with the installation, click on "Advanced Options."
  • Choose the option "I want to download without installing."

Download the Installation Files:

  • The installer will download the necessary installation files to a folder and then move to /private/tmp/MatlabR2024a

Create the Installer Input File:

  • Navigate to the folder '/private/tmp/MatlabR2024a' and locate the installer_input.txt 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:

  • Open JAMF Composer.
  • Drag the /private/tmp/MatlabR2024a-Offsite folder into Composer.
  • Drag the install_matlab.sh script into Composer under the “Scripts” tab, ensuring it runs After the installation.
  • Remove any .DS_Store files from the package.
  • Build the package in Composer.

Upload the Package to JAMF:

  • Open JAMF Admin.
  • Upload the built package from Composer to JAMF Admin.
  • Assign it to the appropriate categories and groups.

Create a JAMF Policy for Deployment:

  • Open JAMF Pro and create a new policy.
  • Assign the uploaded MATLAB package to the policy.
  • Set the policy to deploy during a specific trigger (e.g., Self Service, Recurring Check-in).
  • Save and scope the policy to the required devices.

5 replies

tdenton
Forum|alt.badge.img+12
  • Valued Contributor
  • January 14, 2025

@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



Hasibravo
Forum|alt.badge.img+7
  • Author
  • Contributor
  • February 9, 2025

@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



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. 


tdenton
Forum|alt.badge.img+12
  • Valued Contributor
  • February 10, 2025

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

 


Forum|alt.badge.img+6
  • Contributor
  • September 10, 2025

This install works but still requires user interaction to install. Is there not a non-interactive installtion option? 

Never mind, I found it.

-mode silent in the CLI command


Forum|alt.badge.img+10
  • Contributor
  • August 24, 2026


Curious if you guys are using SSO with Individual licensing. Our users are asked to log in again with two factor authentication every time they quit the program, not even logging out the machine.

 

Is this normal behavior?