Standalone desktop application requires admin rights to run

25 次查看(过去 30 天)
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!

采纳的回答

Rik
Rik 2023-6-9
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 个评论
Rik
Rik 2023-6-13
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by