On Windows, when a MATLAB installation is registered as a COM server, it writes its location into the registry, so I can retrieve this location.
Using this information, is it possible to write a MATLAB Engine application which will work even if the required MATLAB DLL's are not in the PATH environment variable? Can it read their location from the registry and load them dynamically?
yes that possible but more a C/C++ question rather than MATLAB. You would need to look up HKEY_CLASSES_ROOT\MATLAB.Application registry entry:
Fetch the information from there and then built up the path to the MATLAB installation folder in order to use:
And maybe you need this also: