Can the Matlab Runtime Installer Location be set by a command or script on a windows machine?

6 visualizaciones (últimos 30 días)
Hi,
I am trying to script something where I install Matlab Runtime after installing Matlab. I would like to copy the zipped installation folder onto the installing machine and let Matlab know where to find it for future packaging using the Application Compiler. This last step gives me a headache. I know the path is saved in the Preferences and using the GUI its easy to change. But is there a way to do this automatically by script?
Thanks in advance, Fabian

Respuesta aceptada

Fabian Kohlsdorfer
Fabian Kohlsdorfer el 4 de Sept. de 2023
Hi Praveen,
I preffer a way that does not execute Matlab code. I unzipped the "MatlabCompiler.mlsettings" file and edited the settings.json within. That was way easier to integrate into the setup routine since all of it can be done using a loop in cmd
KR, Fabian

Más respuestas (1)

Praveen Reddy
Praveen Reddy el 1 de Sept. de 2023
Hi Fabian,
I understand that you wish to set the Compiler Preference, "MATLAB Runtime Installer Location" programmatically. However, currently there is no official way to achieve this. Please refer to the following MATLAB Answers post, which discusses a potential solution for this issue.
I hope this helps!

Categorías

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

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by