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

6 次查看(过去 30 天)
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

采纳的回答

Fabian Kohlsdorfer
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

更多回答(1 个)

Praveen Reddy
Praveen Reddy 2023-9-1
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!

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by