Deploy Applications and MATLAB Runtime on Network Drives
You can deploy a MATLAB® Compiler™ or MATLAB Compiler SDK™ generated application to a network drive so that it can be accessed by all network users. You can also install MATLAB Runtime onto a network drive so that local clients do not need to install MATLAB Runtime on their individual machines.
Install MATLAB Runtime on Network Drives
On Linux® systems, distributing to a network file system is the same as distributing
to a local file system. After installing MATLAB Runtime on the network drive, set the LD_LIBRARY_PATH
environment variable on all client machines or use shell scripts that point to the
MATLAB Runtime installation. For details, see Set MATLAB Runtime Path for Deployment.
On Windows® systems, complete the following steps to use a network install of MATLAB Runtime.
Install MATLAB Runtime onto a machine with the same system architecture as the network drive. For details, see Download and Install MATLAB Runtime.
Copy the entire MATLAB Runtime installation folder onto the network drive.
Add the directory
to the path on all client machines. For details, see Set MATLAB Runtime Path for Deployment. All network clients can then execute compiled applications.<MATLAB_RUNTIME_INSTALL_DIR>
\<VERSION>
\runtime\<ARCH>
Deploy Applications on Network Drives
On Linux systems, distributing to a network file system is the same as distributing to a local file system.
On Windows systems, in order to run Excel® add-ins and COM components, you must register the
MWComUtil
utility library on client machines.
The following table specifies which DLLs to register on each client machine to deploy specific applications.
Application Deployed | DLLs to Register |
---|---|
Excel Add-Ins |
|
COM Components | mwcomutil.dll |
To register these DLLs:
Open a system command prompt
Navigate to
, wherematlabroot
\bin\version
matlabroot
represents the location of MATLAB or MATLAB Runtime that corresponds to the MATLAB release that you used to compile your application.Run one or both of the following commands:
mwregsvr mwcomutil.dll
mwregsvr mwcommgr.dll