How can I embed MCR in an executable file?
14 次查看(过去 30 天)
显示 更早的评论
Hello,
i want to compile an app and embed the MRC directly. Currently I always create an installation file which has to be installed on the end computer. Can I bypass this installation ?
Matlabversion : R2018a
Runtime: 9.4
Many thanks in advance
Torsten Klement
5 个评论
Adam
2019-1-17
As far as I am aware, whether it is the web installation or the one packaged in with the installer it checks if the MCR already exists first and only installs/downloads it if it doesn't.
采纳的回答
Image Analyst
2019-1-16
I don't recommend it. There are installer packages that can bundle everything in, like Centurion, into a single executable, but everytime you roll out a new version of your app with the same release of MATLAB you'll be distributing about a gigabyte of the MCR which the user does not need to install again. This makes your installer way too big, too long to transmit/deliver, and take too long to install again when it doesn't even NEED to be installed again (as long as you're on the same release of MATLAB. That's why I always deliver the installer for my app separately from the MCR installer.
3 个评论
Image Analyst
2019-1-16
If the MCR is 1 GB and your app is 20 MB, and you bundle them together, you're shipping one file of 1020 MB. Then your installer might unpack both of those installers and run the MCR first, then your installer second.
Now let's say you make an update to your app and are using the same MATLAB release. You will only need to ship your new 20 MB installer, NOT the 1 GB MCR installer. So why bother shipping that huge thing? It won't need to be installed again so why install the combined installer and have your user install the MCR again (which is unneeded) and your app (which IS needed)? That's why I ship the two installers separately.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!