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

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

Risposta accettata

Fabian Kohlsdorfer
Fabian Kohlsdorfer il 4 Set 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

Più risposte (1)

Praveen Reddy
Praveen Reddy il 1 Set 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!

Categorie

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

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by