Standalone desktop application requires admin rights to run

16 visualizzazioni (ultimi 30 giorni)
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!

Risposta accettata

Rik
Rik il 9 Giu 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 Commenti
Rik
Rik il 13 Giu 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.
Max Finney
Max Finney il 13 Giu 2023
Alright, thanks for that, I'll have a look into it

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by