MATLAB: Do I receive an extraction error when running mglinstaller.exe

MATLAB Compiler

I receive the error:
checkdir: cannot create extraction directory: C:"
Error: could not run command 'mglarchive.exe -qq -u -d
"C:\"'.
Finished unsuccessfully. Press Enter key to exit the installer.

Best Answer

The mglinstaller.exe utility is a zip archive. When you give C:\, it tries to create C:\ and then unzip the file within that. Since, C:\ is a drive letter, it cannot create a directory by this name.
To work around this issue, provide a directory name within a particular drive to install MATLAB run-time libraries correctly, something like C:\MGL.