Borrar filtros
Borrar filtros

Can I programmatically set mcrinstaller path?

3 visualizaciones (últimos 30 días)
Andreas Prokopiou
Andreas Prokopiou el 31 de Oct. de 2018
Respondida: Andreas Prokopiou el 31 de Oct. de 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.

Respuesta aceptada

Andreas Prokopiou
Andreas Prokopiou el 31 de Oct. de 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

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by