Standalone desktop application requires admin rights to run

29 views (last 30 days)
Hi all,
I am looking to package my application such that a machine with just MCR Runtime is able to run and use the application. Once I have packaged my application as a standalone desktop application through the app designer (with the 'Runtime downloaded from web' option), it appears as a .exe file which requires admin rights in order to run it. Does every application packaged this way require admin rights to run or is there a way around it?
Thanks in advance for any help!

Accepted Answer

Rik
Rik on 9 Jun 2023
From my limited experience, running a standalone executable only requires admin rights if you need to install the MCR. Running an application should not require admin rights. The documentation is not explicit, but it does suggest you don't necesarilly need admin right.
What you could do, is to package this code with the 'install from web' option enabled:
msgbox('runtime installation complete, you can now install the main application')
That way you provide a way to ensure the MCR is installed, and your main application should no longer need admin rights as it no longer needs to install the MCR.
  3 Comments
Rik
Rik on 13 Jun 2023
There are many downsides to this idea (and one day I will summarize them in a thread), but you could also look into using GNU Octave to create a standalone application. It is free for most uses and intends to provide a drop-in replacement. You lose a lot of performance, debugging tools, documentation, and even a lot of functions, but it might provide a workaround that gives you time to convince your IT to install the MCR.
For a 1-sentence summary of Matlab vs Octave: I use Matlab to write code that is compatible with Octave. That should tell you enough.

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!