is it possible to include selected toolboxes while deploying a standalone app which requires less size installation of MCR on target system

as the MCR size is greater than 340MB it is hard to download the matlab runtime over some metered networks. I build a windows standalone application using MATLAB R2012b which is about 20MB in size but the size of MCR limits me to share and package a windows installer with it.so please suggest me how to decrease size of MCR.Is there any MATLAB runtimes for dedicated toolboxes for deploying?

 Réponse acceptée

I'm pretty sure the answer is no. You have to install the whole MCR regardless if you're only using a single function from it.

4 commentaires

I deployed a app by unticking the " embed CTF archive into application " in compiler settings and started app then MCR copied "appname_mcr" folder in its working path. I uninstalled the MCR but not uninstalled the" matlab2012b " after then again started app and it is working perfect .what do you say about it ? .
I used the -C option to not include the CTF archive, like the MATLAB tech support person for the compiler thoguht I could do, and then when I tried to run it, it said "CTF archive missing" and would not launch. So your experience is different than mine. Anyway, the CTF is different than the MCR. The tech support rep said that I did not need to include the CTF but did need the MCR but that turned out to be wrong - I needed both. I really doubt that you are able to run a standalone executable without the MCR. Are you sure you're starting it on a clean machine? Maybe you're using a different MCR than you think you are and don't realize it. Is there an MCR folder under c:\program files\matlab? Or maybe you're running it on your development computer instead of a clean system.
I checked twice .I uninstalled MCR but not MATLAB .
you too experience this just follow this
1) type and execute "deploytool" from command window.
2) create any Windows Stand alone app
3) include source files.
4) click on settings and untick the "embed CTF archive into application" and then build application.
5) after building start the application you can observe "appname_mcr" folder is copied in path by MCR if you done fourth step fine.
6) now uninstall the MCR but not MATLAB of corresponding version.
7) now restart the app you can observe that application is still working even after uninstallation of MCR.
You say "uninstalled MCR but not MATLAB." - well there's the key. If you have MATLAB, you do not need the MCR. I was referring to a completely new and fresh computer where neither MATLAB nor MCR is installed. When I asked " Or maybe you're running it on your development computer instead of a clean system." I meant a computer where you have the full blown MATLAB development installed on it. I know that you can run it with MATLAB but not the MCR as that sentence implies. I thought you were installing on computers without any MATLAB on them . Since you are not, and you are in fact installing on computers with MATLAB installed on them already, why not just run the m-file?
But anyway, since you have MATLAB installed, the answer to your original question is : you do not need to deploy MCR to run executables with the full MATLAB environment already installed on them.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by