Clear Filters
Clear Filters

Can I programmatically set mcrinstaller path?

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

Accepted Answer

Andreas Prokopiou
Andreas Prokopiou on 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

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Tags

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!