Well, this is not quite the answer, but the comment area in question was too short ...
I know little about the VS2015 installer since I personally use InnoSetup . In any case, to check if the runtime is installed on the target machine, you can see if the following key exists in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\MathWorks\MATLAB Runtime\9.0
For more details, see my posts here and here .
NB1: Please note that the installer for Matlab runtime is very large (about 1 GB). I would not pack it with the deployment application, but simply warned the user about installing it separately.
NB2: I think Mathworks packs C:\Program Files\MATLAB\R2015b\toolbox\compiler\deploy\win64\InstallAgent.zip (~ 66 MB) instead of MCRInstall.exe (~ 1 GB) when deploying a standalone installer with deploytool for loading the runtime during installation, but I do not know how this works.
source share