MATLAB: Is it possible to deploy the compiled application in MATLAB 7.0 (R14) and install the MCRInstaller in silent mode

4.0buildercomcompilerdeploydistributeexcelinstallinstallermanualMATLAB Compilermcrmcrinstaller

I would like to perform a silent installation of my MATLAB Compiler-generated application. However, MCRInstaller requires user interaction during installation.

Best Answer

This enhancement has been incorporated in Release 2006b (R2006b). For more information see the Related Solution listed below.
For previous product releases, read below for any possible workarounds:
The following steps will accomplish a silent install of the MCR on a Windows deployment machine:
1. Unzip MCRInstaller.exe file in a writeable directory. This extracts the necessary files for the MCR installation. We provide a command line UNZIP utility in $MATLABROOT\toolbox\compiler\deploy\win32 for this purpose ($MATLABROOT is the root directory of your MATLAB installation). Execute the following commands in DOS:
unzip.exe MCRInstaller.exe
This exposes the file MCRInstaller.msi, which is a standard Windows MSI package that includes the MCR archive.
2. Install the MCR with the following command:
msiexec /q /i MCRInstaller.msi
This installs the MCR in the directory
%PROGRAMFILES%\MathWorks\MATLAB Component Runtime\vXX
The variable %PROGRAMFILES% is typically C:\Program Files by default.
XX is the MCR version.
In a similar fashion, to uninstall the MCR silently:
msiexec /q /x d:\...\MCRInstaller.msi
For a network install of the MCR, see the Related Solution.