Main Content

Run Applications Using a Network Installation ofMATLABRuntime

Local clients on a network can accessMATLAB®Runtimeon a network drive.

On Linux®systems, distributing to a network file system is the same as distributing to a local file system. After installingMATLAB Runtime, set theLD_LIBRARY_PATHenvironment variable or use shell scripts that point to theMATLAB Runtimeinstallation. For information on setting the library path, seeSet MATLAB Runtime Path for Deployment.

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

  1. InstallMATLAB Runtimeonto a machine with the same system architecture as the network drive. For details, seeInstall and Configure MATLAB Runtime.

  2. Copy the entireMATLAB Runtimeinstallation folder onto the network drive.

  3. 添加目录\\runtime\to the path on all client machines. For instructions, seeSet MATLAB Runtime Path for Deployment. All network clients can then execute compiled applications.

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

    mwcommgr.dll

    .NET Assemblies and COM Components mwcomutil.dll

    To register these DLLs:

    1. Open a system command prompt

    2. Navigate tomatlabroot\bin\version, wherematlabrootrepresents the location of MATLAB orMATLAB Runtimethat 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

      For more information about themwregsvr实用程序,请参阅Register COM Component(MATLAB Compiler SDK).