MATLAB: Do I receive an error when I try to register a dll using MATLAB Compiler 5.0 (R2013b)

MATLAB

I am using the command
! mwregsvr myLibrary.dll
and I see the following error:
"mwregsvr" is not recognized as an internal or external command, operable program or batch file.

Best Answer

The reason behind this error is that the folder $MATLABROOT\runtime\win64 is not on the system path, where $MATLABROOT is the MATLAB installation folder. You can obtain the MATLAB installation folder path by typing the following command in MATLAB:
matlabroot
Once $MATLABROOT\runtime\win64 is added to the path, it will be possible to register libraries.