How do I deploy my compiled stand-alone application on a network drive so that it can be accessed by all network users without having to install MATLAB Compiler Runtime (MCR) on all client computers?

26 ビュー (過去 30 日間)
I have compiled a stand-alone application that I would like to put on a network drive so that it can be accessed by all network users. I would like to do this without having to install MATLAB Compiler Runtime (MCR) on every client computer on the network.

採用された回答

MathWorks Support Team
MathWorks Support Team 2020 年 10 月 5 日
編集済み: MathWorks Support Team 2020 年 10 月 15 日
This information has been added to the Documentation for MATLAB Compiler. The documentation is available here:
User's Guide (MATLAB Compiler) -> Deployment Process -> Deploying a Standalone Application on a Network Drive
If you are using a previous version, read the following:
Documentation on how to install the MCR on a network drive is missing from the MATLAB Compiler manual. Here is additional information:
Execute MCRInstaller.exe to install MATLAB Compiler Runtime (MCR) on a machine. For installation instructions, refer to:
User's Guide (MATLAB Compiler) -> Deployment Process
For documentation links:
For installing MCR:
For MCR path settings:
1. Copy the resulting MCR directory (the directory where MCR is installed) onto a network drive.
2. Copy the compiled application directly into the directory $MCR\$VERSION\runtime\$ARCH (where $MCR is the root or your MCR installation, $VERSION is the version of your MCR installation, and $ARCH is your system's architecture). Alternatively, copy the compiled application into any directory in the network drive, and add $MCR\$VERSION\runtime\$ARCH to the system path (not the MATLAB path) on all the client machines. Be sure to copy the CTF-file as well as the executable file.
3. Install the Microsoft Visual C++ Redistributable Package (vcredist_x86.exe).
All network users will then be able to execute the application.
If you are using either MATLAB Builder for COM or MATLAB Builder for Excel, instead of copying the executable file, you will copy the DLL-file along with the CTF-file. You will then need to register the following DLLs on every client machine.
mwcommgr.dll
mwcomutil.dll
by using the following command at your DOS prompt
regsvr32 <dllname>
These DLLs are in $MCR\$VERSION\runtime\$ARCH

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by