MATLAB: Do I receive an error about the ‘specified procedure could not be found’ when running MBUILD -SETUP in MATLAB Compiler 4.0 (R14)

-setupMATLAB Compilermbuildmexsetup.pmprocedurespecified

When I execute the setup for MBUILD, I receive the following error:
--> "C:\matlab7\bin\win32\mwregsvr C:\matlab7\bin\win32\mwcomutil.dll"
Error: 0x0000007f Message: The specified procedure could not be found.
Undefined subroutine &mexsetup::expire called at C:\matlab7/bin/win32/mexsetup.pm line 818.
??? Error using ==> mbuild
Unable to complete successfully

Best Answer

Before installing the MATLAB Compiler, you should uninstall any prior versions of MATLAB 7.0 and fully delete the entire MATLAB 7.0 directory tree. You should then reinstall MATLAB 7.0 (R14) and all other toolboxes including MATLAB Compiler.
After doing this, the error has been known to disappear.
Related Question