App installer generated by MATLAB Compiler does not recognize the MATLAB runtime

9 views (last 30 days)
Intro:
I use MATLAB Compiler Version 6.5 (R2017b) to generate a Windows executable file and an installer, "MyAppInstaller_web.exe", which should download and install MATLAB runtime if correct version of MATLAB or MATLAB runtime is not already installed.
Problem:
When I run the generated installer on the same computer, it does not recognize that MATLAB (and thereby MATLAB runtime) is already installed and wants to download the runtime and install it again on the computer. However, as indicated in the MATLAB documentations, if MATLAB is installed on a computer, there shouldn't be any need for installing MATLAB runtime separately.
Further observations:
When I look at the PATH environmental variable of Windows 10, I see "C:\Program Files\MATLAB\R2017b\runtime\win64" is already included in the path where the file "mclmcrrt9_3.dll" exists.
If I allow the installer, "MyAppInstaller_web.exe", to install the runtime again, in a new location, then "C:\prog\MATLAB\MATLAB Runtime\v93\runtime\win64", which only contains the file "mclmcrrt9_3.dll", is added to the end of PATH environmental variable. After this new, extra installation of MATLAB runtime, if I run "MyAppInstaller_web.exe" again, then it recognizes the installed MATLAB runtime and does not try to install it again.
If I generate an executable from a MATLAB code using mcc or MATLAB Compiler and run the executable version of the program (without installing anything) the executable file finds the MATLAB runtime and runs successfully.
Motivation:
Some of the colleagues who will receive the "MyAppInstaller_web.exe" already have the exact same MATLAB version installed on their computers and I don't want to make them install extra MATLAB runtime.

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!