Run Matlab MCR without setting path environment variable, without admin rights, and for users with little computer experience
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 3 Jul 2018
It is not clear to me that it is appropriate for users to be able to execute any program not installed by administrators in these circumstances.
OCDER
on 3 Jul 2018
Read this to see if users can at least add environment variable to their own local profile. Will the IT be okay with this? How much security is needed? The balance between IT security and computer usability is always a tough one to determine.
Walter Roberson
on 3 Jul 2018
Jose Blasques
on 4 Jul 2018
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
0 votes
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."
Categories
Find more on MATLAB Parallel Server 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!