- people who don't have any MATLAB at all on their computer
- people who have a different version of MATLAB or the runtime library on their computer than you used.
- people who have the same verion of MATLAB as you but don't have the compiler toolbox (I'm not sure about this one).
MATLAB runtime with multiple versions on computer.
27 次查看(过去 30 天)
显示 更早的评论
Hi!
I am trying to export an application made with the app designer in R2020b to a standalone application, that people without MATLAB could run. I have multiple MATLAB versions installed on my computer. (16a,18a,20b..). When trying to package with the option of `Runtime included in package` I get the box: "Valid MATLAB runtime installer not found". I have downloaded matlab runtime, extracted and installed it, so now I have a directory named C:\Program Files\MATLAB\MATLAB Runtime\v99 (There is also v901 inside if matters).
But, when I try to package, it gives me the same error. I have tried to use 'specify location' and got to the "MATLAB compiler preferences", but I couldn't get any location to work (I'm not sure which I should choose). Am I doing something wrong? which location should I choose?
Thank you very much.
0 个评论
回答(1 个)
Image Analyst
2023-2-6
编辑:Image Analyst
2023-2-6
See the FAQ: https://matlab.fandom.com/wiki/FAQ#My_standalone_executable_won't_run_on_the_target_computer._What_can_I_try?
When you, the developer, compiles the code into a standalone executable, then you do not need a runtime library to run the executable. The only people who would need the runtime library are
All the runtime libraries are found here:
If you're using deploytool (which I don't) then uncheck the option to include the runtime library and just install it separately. That's what I do.
Otherwise call tech support.
2 个评论
Image Analyst
2023-2-9
I use Centurion Setup. I looked at all the installation package building programs out there, over a dozen. This one was BY FAR the easiest to use and most flexible. It has great tooltips and help and graphics to help you. I'm attaching a generic script that Centurion Setup can use to bundle up all your files needed for some project. Just make the obvious modifications, like the name of your project folder on your computer and the name of the desired destination folder on the target computer, etc.
I use mcc to make an executable and then I use Centurion Setup to bundle that with .mat files, splash images, demo images, Excel workbook templates, etc. Then it creates a single installation package called something like "Install NetFre program.exe". Your end user first runs the MCR installer from the web site (after extracting it -- don't run setup from within the zipped archive!), and then runs the installer created with Centurion Setup.
With any subsequent tweaks you make, you just need to send your installer. They won't need to run the MATLAB MCR installer again for each tweak, only if you upgrade to a new release.
另请参阅
类别
在 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!