Run Matlab MCR without setting path environment variable, without admin rights, and for users with little computer experience
5 views (last 30 days)
Show older comments
Hi,
I am distributing a compiled matlab executable inside my organization. My users have MCR in their laptops but the path variable has not been defined since a) they do no have admin rights and b) they don't know how to set environment variables in windows.
I am thinking of writing a batch script to launch the executable. I am having trouble setting user environment variables (setx is missing) so I would like to try it without defining a path variable.
The mcr path variable will need to point to something liek mydir/mcr/runtime/win64. In this folder you have mwregsvr.exe and some more DLLs. In the command prompt I have tried
mwregsvr.exe < app.exe
where app.exe is the executable I am trying to run. This did not work.
So, is there a way to make this work?
Deploying matlab apps to non matlab users with little computer skills and tight IT security is challenging!
Thanks! José
5 Comments
Walter Roberson
on 4 Jul 2018
set affects the current cmd so you should be able to create a .bat that does the set and then invokes the executable.
Answers (1)
Steven Lord
on 5 Jul 2018
From your description, I wonder if something like MATLAB Production Server might be a better fit to provide your users access to your application. Since you mentioned your organization is Excel based, this user story sounds like something in which you might be interested. A quote from the story:
"Hundreds of external customers and dozens of internal analysts are currently using the production core library in the background via various front-end applications. The library is accessed directly by individual analysts via a Microsoft® Excel® add-in and via the company’s investment management software."
0 Comments
See Also
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!