User`s guide

4 Deployment Process
Note The package needed for end users must include the .ctf file, which
includes all the files in your prefere nces directory. Thus, you should make
sure that you do n ot have files in y our preferences directory that you do
notwanttoexposetoendusers.MATLAB preferences set at compile time
are inherited by a compiled application. Preferences set by a compiled
application d o not affect the MATLAB preferences, and preferences set
in MATLAB do not affect a compiled application until that application is
recompiled. The preferences directory is as follows:
$HOME/.matlab/current_release on UNIX
<system root>\profil es\< user>\application data\mathworks
\matlab\current_release
on Windows
Caution MATLAB does not save your prefe rences directory until you exit
MATLAB. Therefore, if you make changes to y our MATLAB preferences,
stop and restart MATLAB before attempting to recompile using your new
preferences.
2 Write instructions for the end user. S ee “Steps by the End User on
Windows” on page 4-10.
3 Distribute the package to your end user, along with the instructions.
Steps by the End User on Windows
1 Open the package containing the software needed at run time.
2 Run MCRI nsta ller once on the target machine, that is, the machine where
you want to run the application or library. The
MCRInstaller opens a
command window and begins p reparation for the installation. See “Using
the MCR Installer GUI” on page 4-11.
3 If you are deploying a Java application to end users, they must set the
classpathonthetargetmachine.
4-10