MATLAB: How to silently uninstall the MATLAB Compiler Runtime 7.16 (R2011b)

interactionMATLAB Compilermcrnosilentuninstalluser

I would like to uninstall the MATLAB Compiler Runtime (MCR) silently, without any user interaction.

Best Answer

It is possible to uninstall the MATLAB Compiler Runtime (MCR) silently by following the steps mentioned below:
1) Navigate to the 'uninstall' folder at the installation location of the MCR. For example, the path to this folder for 32-bit MCR 7.16 is:
C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v716\uninstall
2) Open the 'uninstaller_input.txt' text file and initialize the 'mode' variable to 'silent' and uncomment the line by removing the '#' symbol in front of it.
3) Open Windows DOS prompt and navigate to the 'uninstall.exe' file. This file is persent in the 'bin\win32' (for 32-bit MCR) or 'bin\win64' (for 64-bit MCR) folder in the 'uninstall' folder mentioned in step 1 above. For example, the path to this folder for 32-bit MCR 7.16 is:
C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v716\uninstall\bin\win32
Note: This path will be different depending on the bitness of the MCR and the version of the MCR.
4) Execute the 'uninstall.exe' application present in thsi folder with the 'inputFile' flag by executing the following command on the Windows DOS prompt:
uninstall -inputFile "C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v716\uninstall\uninstaller_input.txt"