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

6 views (last 30 days)
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

Accepted Answer

Fabian Kohlsdorfer
Fabian Kohlsdorfer on 4 Sep 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

More Answers (1)

Praveen Reddy
Praveen Reddy on 1 Sep 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!

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!