MATLAB: The user was asked to install Matlab runtime for the standalone application

runtime needs to be installed

Dear All,
When I created a standalone application exe file, I used the selection "Runtime is included in the package". But the user got the following error meesage when he tried to run our standalone application exe file:
Error: Could not find version 9.8 of the MATLAB Runtime.
Attempting to load mclmcrrt9_8.dll.
Please install the correct version of the MATLAB Runtime.
Contact your vendor if you do not have an installer for the MATLAB Runtime.
Would anyone know how to fix this problem? Thanks a lot.
Benson

Best Answer

You may have distributed the compiled exe rather then the installer. When compiling an App three directories are generated.
for_redistribution = contains an installer, which will install your application and the runtime
for_redistribution_files_only = this will contain the compiled exe, you can run this if you download and install the runtime yourself.
for_testing = ....
The "Runtime is included in the package", generates an installer which contains the necessary runtime, which is placed inside the for_redistribution folder.