I'm trying to use NativeProcess to run an executable generated by Matlab (blah). I've called it "engine.exe"
I've installed the Matlab Compiler Runtime (MCR) and I can call the engine.exe fine from the directory I want to run it in when using the command line.
But when I try to call the same executable with the same arguments via NativeProcess, I get a MCR Error dialog "Could not find version 8.2 of the MCR. Attempting to load mclmcrrt8_2.dll..."
Interestingly, I can see this mclmcrrt8_2.dll in C:\Program Files\MATLAB\MATLAB Compiler Runtime\v82\runtime\win64
And that path is part of my PATH setting on my pc. So not sure why I can run engine.exe fine with the command line but it gives this error when trying to run from NativeProcess.
So the only thing I can think of is that when the exe is run via NativeProcess, it somehow can't see the PATH settings? Could that be true?
Thanks for any thoughts.
Daniel