MathWorks MATLAB
  • 29 May 2024
  • 2 Minutes to read
  • Dark
    Light
  • PDF

MathWorks MATLAB

  • Dark
    Light
  • PDF

Article summary

If you want to deploy MATLAB there are some extra steps you have to take.

Using an Installer Properties File

You need a File Installation Key to use an installer properties file.

Running the installer noninteractively

To run the installer noninteractively, perform these steps:

  1. First, download both ISO files for your MATLAB version.

The MATLAB ISO archive doubles as an offline installer for MATLAB. Instead of burning the ISO archive, it is possible to extract it using 7zip to create an offline installer. Depending on the release of MATLAB you need to install, you may need to merge the two ISO archives into a single extracted folder before proceeding.
Ensure that the product files, including the MATLAB installer, are available in an accessible location, for example, in the default Downloads folder on your computer. We found out that running the installer from a network share doesn’t always work properly. If the product files are located in a folder other than the default Downloads folder on your computer, the installer file must be located in the same folder as the product files.

  1. Create an installer properties file.

Make a copy of the installer properties file template, named installer_input.txt. This file is located in the top-level folder on the MathWorks DVD or in the top level of the folder where you downloaded the software (typically, C:\Users\user\AppData\Local\Temp\mathworks_downloads).

ExampleOn a Windows system, you might execute this command:
copy Z:\installer_input.txt C:\temp\my_installer_input.txt

Open your installer properties file using any text editor, and enter values for all the specified parameters. For example, to specify where you want to install products, set the value of the destinationFolder= parameter to the full path of the installation folder.

ExampledestinationFolder=C:\Program Files\MATLAB\R2018a

The installer properties file template contains descriptions of each parameter along with valid values. Specify your File Installation Key as the value of the fileInstallationKey= parameter.

Example
fileInstallationKey=48287-49983-etc(your file installation key)
agreeToLicense=Yes
outputFile=c:\temp\matlabinstall.log
mode=silent
licensePath=C:\TEMP\license.dat
desktopShortcut=True
startMenuShortcut=True

Save your changes to the file.

  1. Create a file called activate.ini in the same location.
Example
isSilent=true
licenseFile=c:\temp\license.dat
  1. Start the installer using the -inputFile option to specify the full path of your installer properties file as a command-line argument.
Example

On Windows systems, click the Start menu and select the Run option. In the Run dialog box, enter

setup.exe -inputFile C:\temp\my_installer_input.txt

Further reading

How do I download a MATLAB ISO or DMG archive (MathWorks Community.
Install MathWorks Products on Offline Computer (MathWorks Help Center)
Download Products Without Installation (MathWorks Help Center)
Perform Silent Installation of MATLAB from Command Line (MathWorks Help Center)


Was this article helpful?