Standalone desktop application requires admin rights to run
29 次查看(过去 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!
0 个评论
采纳的回答
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
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 Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!