Main Content

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.

  1. Install MATLAB Runtime onto a machine with the same system architecture as the network drive. For details, see Download and Install MATLAB Runtime.

  2. Copy the entire MATLAB Runtime installation folder onto the network drive.

  3. Add the directory <MATLAB_RUNTIME_INSTALL_DIR>\<VERSION>\runtime\<ARCH> to the path on all client machines. For details, see Set MATLAB Runtime Path for Deployment. All network clients can then execute compiled applications.

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 DeployedDLLs to Register
Excel Add-Ins

mwcomutil.dll

mwcommgr.dll

COM Componentsmwcomutil.dll

To register these DLLs:

  1. Open a system command prompt

  2. Navigate to matlabroot\bin\version, where matlabroot represents the location of MATLAB or MATLAB Runtime that corresponds to the MATLAB release that you used to compile your application.

  3. Run one or both of the following commands:

    mwregsvr mwcomutil.dll
    mwregsvr mwcommgr.dll

Related Topics