Main Content

Run Applications Using a Network Installation of MATLAB Runtime

Local clients on a network can access MATLAB® Runtime on a network drive.

On Linux® systems, distributing to a network file system is the same as distributing to a local file system. After installing MATLAB Runtime, set the LD_LIBRARY_PATH environment variable or use shell scripts that point to the MATLAB Runtime installation. For information on setting the library path, see Set MATLAB Runtime Path for Run-Time Deployment.

On Windows® systems, complete the following steps to run applications using a network install of MATLAB Runtime:

  1. Run the mcrinstaller function to obtain name and location of the MATLAB Runtime installer.

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

  3. Copy the compiled application into a separate folder on the network drive and add the directory <MATLAB_RUNTIME_INSTALL_DIR>\<VERSION>\runtime\<ARCH> to the path on all client machines. All network clients can then execute the application.

  4. 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

    .NET assemblies to create COM objectsmwcomutil.dll

    To register the DLLs, at the system command prompt enter:

    mwregsvr <fully_qualified_pathname\dllname.dll>
    

    These DLLs are located in <<MATLAB_RUNTIME_INSTALL_DIR>>\<VERSION>\bin\win64.

    Note

    These libraries are automatically registered on the machine on which the installer was run.