MATLAB: Do I get the error: “The dynamic link library libmmfile.dll could not be found in the specified path.” even though I have installed the runtime libraries

alonedeploydeploymentlibraryMATLAB Compilermglinstallerruntimestand

I get the following error even though I have installed the runtime libraries:
The dynamic link library libmmfile.dll could not be found in the specified path
A listing of directories from the system PATH variable then follows this error. The library installation directory IS listed, what could be the problem?
I have run the MGLINSTALLER utility on a Microsoft Windows machine where I wish to install my MATLAB Compiler generated application.

Best Answer

The problem usually occurs due to a lack of global permissions on the MATLAB Runtime Library files, and the directory in which they are installed.
To prevent this error please log into the machine as an administrator and change the permission of the following directory such that everyone has the ability to read it and the files located in it.
$MATLABROOT\toolbox\runtime
(where $MATLABROOT is the MATLAB root directory on your machine)
Please note that $MATLABROOT can be replaced with $MCRROOT
(where $MCRROOT is the MATLAB Compiler Runtime root directory on your machine)