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
Fabian Kohlsdorfer 2023 年 9 月 4 日
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 Center および File ExchangeIntroduction 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