Borrar filtros
Borrar filtros

Standalone desktop application requires admin rights to run

25 visualizaciones (últimos 30 días)
Max Finney
Max Finney el 9 de Jun. de 2023
Comentada: Max Finney el 13 de Jun. de 2023
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!

Respuesta aceptada

Rik
Rik el 9 de Jun. de 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 comentarios
Rik
Rik el 13 de Jun. de 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 el 13 de Jun. de 2023
Alright, thanks for that, I'll have a look into it

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by