MATLAB Installation Guide for Windows    

Running the Installer Noninteractively

If you have many MATLAB installations to perform, and the information you need to enter for each installation is the same, you can put this information in an installer initialization file and run the installer non-interactively. In this mode, the installer still displays the dialog boxes that query you for information but you do not have to enter data in response. The initialization file provides the installer with the information. Noninteractive installs (also called silent installs) can save time and prevent errors.

The following sections describe how to use an installer initialization file and how to verify this type of installation.

Using an Installer Initialization File

To run the installer noninteractively, perform these steps:

  1. Create your installer initialization file.
  1. The MathWorks provides an initialization file template, named installer.ini, located in the top-level directory on The MathWorks product CD. Copy this template file, giving it any name you want. For example, open an MS-DOS command prompt window and enter this command, where Z: is the drive letter for your CD-ROM drive:

  1. Enter your installation information into the initialization file, using this syntax:
  1. For example, to enter the installation directory you would enter

    The initialization file template includes all the parameters you can enter, with examples.

  1. Save your changes to the file.
  2. Run the installer (setup.exe), using the -if flag to specify the initialization file as a command-line argument. For example, at the MS-DOS command prompt, enter
  1. You must specify the full path name of the initialization file.

Verifying a Noninteractive Installation

To verify a noninteractive installation, you may want the installer to create an output log that lists the products that were installed and reports any error that may have occurred. To create this log, specify the path of the file in the installer initialization file as the value of the outlog parameter. For example:


  Installing MATLAB Help Files in a Separate Directory License Management