Deploy Applications and MATLAB Runtime on Network Drives - MATLAB & Simulink (original) (raw)

Main Content

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 theMATLAB Runtime installation. For details, see Set MATLAB Runtime Path for Deployment.

On Windows® systems, complete the following steps to use a network install ofMATLAB 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.
    Caution
    The installation path must not contain any non-ASCII characters.
  3. Add the directory_`<MATLABRUNTIMEINSTALLDIR>`_\_`<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 and for deployment targets other than Excel® or COM, 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 theMWComUtil 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 mwcomutil.dllmwcommgr.dll
COM Components mwcomutil.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:

See Also

Topics