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_PATH
environment 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:
InstallMATLAB Runtimeonto a machine with the same system architecture as the network drive. For details, seeInstall and Configure MATLAB Runtime.
Copy the entireMATLAB Runtimeinstallation folder onto the network drive.
添加目录
to the path on all client machines. For instructions, seeSet MATLAB Runtime Path for Deployment. All network clients can then execute compiled applications.
\
\runtime\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:
Open a system command prompt
Navigate to
, wherematlabroot
\bin\version
matlabroot
represents the location of MATLAB orMATLAB Runtimethat 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
For more information about the
mwregsvr
实用程序,请参阅Register COM Component(MATLAB Compiler SDK).