Effacer les filtres
Effacer les filtres

Can I programmatically set mcrinstaller path?

3 vues (au cours des 30 derniers jours)
Andreas Prokopiou
Andreas Prokopiou le 31 Oct 2018
So far I can only define the path through the Preferences pane in the Matlab IDE (go to MATLAB Compiler option from the list to the left of the pane and select the path to the MCR_installer.exe).
After I do that when I type mcrinstaller in the command window I see the path I just set through the Preferences. My question now is; is there a way to do this process programmatically? Something to the extend of:
set(mcrinstaller,'C:\MCR_installer.exe')
Thank you in advance for your help,
A.

Réponse acceptée

Andreas Prokopiou
Andreas Prokopiou le 31 Oct 2018
I found the solution to my own problem by reversing how the mcrinstaller function works.
installer_path = 'C:\...\MCR_R2018b_win64_installer.exe';
s = settings;
compilerGroup = s.matlabCompiler;
compilerGroup.RuntimeInstaller.PersonalValue = installed_path;
hope it helps someone

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Tags

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by