| Contents | Index |
You can deploy a compiled standalone application to a network drive so that it can be accessed by all network users without having them install the MCR on their individual machines.
Note There is no need to perform these steps on a Linux system. There is no requirement for vcredist on Linux, and the component registration is in support of MATLAB Builder EX and MATLAB COM Builder, which both run on Windows only. Distributing to a Linux network file system is exactly the same as distributing to a local file system. You only need to set up the LD_LIBRARY_PATH or use the Run Script which points to the MCR installation. |
On any Windows machine, run mcrinstaller function to obtain name of the MCR Installer executable.
Copy the entire MCR folder (the folder where MCR is installed) onto a network drive.
Copy the compiled application into a separate folder in the network drive and add the path <mcr_root>\<ver>\runtime\<arch> to all client machines. All network users can then execute the application.
Run vcredist_x86.exe on for 32-bit clients; run vcredist_x64.exe for 64-bit clients.
If you are using MATLAB Builder EX, register mwcomutil.dll and mwcommgr.dll on every client machine.
If you are using MATLAB Builder NE (to create COM objects), register mwcomutil.dll on every client machine.
To register the DLLs, at the DOS prompt enter
mwregsvr <fully_qualified_pathname\dllname.dll>
These DLLs are located in <mcr_root>\<ver>\runtime\<arch>.
![]() | Working with the MCR | MATLAB Compiler Deployment Messages | ![]() |

Learn how to build standalone executables and C/C++ shared libraries from MATLAB code.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |