I'm trying to allow a 3D party program (Amira) to use the matlab COM server, but cannot seem to register the server properly. Amira cannot open the Matlab engines and suggests running calling 'matlab /regserver' in a terminal, but this returns nothing and does not appear to help.
If I open Matlab as an administrator running 'enableservice('AutomationServer',true)' appears to set up the server, but then running 'regmatlabserver' throws the following mysterious error: While executing ["C:\Program Files\MATLAB\R2016a\bin\matlab" /wait /regserver /r quit], the following error was reported by DOS with status 9:
It would be nice to get some more information on why the server cannot be registered, but I can't seem to find any other error messages. I did previously have R2014A and R2014B installed on the machine, and I read that registry errors can cause problems with the COM server which could be the case here as well. Is there a way to check that registry settings are OK for the COM settings?