MathWorks MATLAB
  • 28 Nov 2022
  • 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

To run the installer noninteractively, perform these steps:
First, download both ISO files for your Matlab version. More information on downloading the ISO’s.
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. For information about downloading product files, see Download Products Without Installation.

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).

For example, on 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.

destinationFolder=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.

Here is an example of our test install:

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.

Also create a file called activate.ini in the same location.
In our test install we added this:

isSilent=true
licenseFile=c:\temp\license.dat

Start the installer using the -inputFile option to specify the full path of your installer properties file as a command-line argument.

For 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

For more information, click here.


Was this article helpful?