Tuesday, July 2, 2013

Installing the MCR in Silent Mode


The installation fails because it cannot get past the license agreement.


Installing the MCR Non-Interactively (Silent Mode)

To install the MCR without having to interact with the installer dialog boxes, use one of the MCR installer non-interactive modes: silent or automated.

Version: MCR v8.1
Release: R2013a
Platform: win64


Steps to test what is to be a future automated silent installation.
  1. Download the MCR compiler exe. The msi doesn't exist anymore.
  2. Rename to .zip and extract.
  3. Run setup from command prompt with admin privileges.
          setup.exe location:

          setup.exe -mode silent -agreeToLicense yes

          **you need the agreeToLicense command or it will get stuck and fail**

         Logs can be found in C:\Users\YourUser\AppData\Local\Temp

Log errors:

When running the installer with an input file, you must accept the license agreement by setting the agreeToLicense option to yes.
Exiting with status -1
End - Unsuccessful

For future automation:
  • Some folders are useless for placing the zip in storage, to unzip, and run your automated installation scripts. They include: help, utils, and files in the root called install_guides.

Side notes:

Location of mclmcrrt8_1.dll:
C:\Program Files\MATLAB\MATLAB Compiler Runtime\v81\runtime\win64

1 comment:

  1. This worked perfectly. Thank you for your clear directions!