Matlab and Simulink R2006a

From the Mathworks Website:

MATLAB is a high-level language and interactive environment that enables you to perform computationally intensive tasks faster than with traditional programming languages such as C, C++, and Fortran.

Simulink is a platform for multidomain simulation and Model-Based Design for dynamic systems. It provides an interactive graphical environment and a customizable set of block libraries, and can be extended for specialized applications.

» How to Install

The process for unattended installation is more complex than simply calling the installer with switches, but it's not unreasonable.

» Make a Local Install

The installation files come on three CDs. To consolidate them to one local directory, take the following steps as described by Mathworks.
1. Copy all of the files from the first CD to a directory on your within your unattended CD directory. Mine is %UnCD%\Software\Matlab\ but change it to fit your own organization scheme. We'll call the local matlab directory %matlab%.
2. Copy all the files from the archives directory of the second and third discs to the archives directory in the folder on your hard drive.
3. Delete the file matinfoxml.enc from %matlab%
Now you've got a working local installation.

» Make it Unattended

Make a copy of %matlab%\installer.ini and rename it to silentin.ini. Edit the necessary lines %Matlab%\silentin.ini to include these values:
plp=XX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
name=User
company=Company
license=yes
license_path=c:\temp\license.dat


Obviously you should replace the X's in the PLP entry with your actual number.
You can leave the lines that read "CD2=" and "CD3=" alone.

Next, copy your license.dat file into your unattended CD directory so that it will be on the hard drive when you copy call it from the installer. Place it in %unattendedcd%\$OEM$\$1\temp\license.dat

» Call the installer with the proper .ini file.

From a batch file, use the line
"%CDROM%\Software\Matlab\setup.exe" -if "%CDROM%\Software\Matlab\silentin.ini" 
but replace \Software\Matlab\ with your directory.

For RunOnceEx try
REG ADD %KEY%\145 /VE /D "Matlab R2006a" /f
REG ADD %KEY%\145 /V 1 /D ""%CDROM%\Software\Matlab2006a\setup.exe" -if "%CDROM%\Software\Matlab2006a\silentin.ini"" /f


Note: if you're not trying to make an unattended windows CD but just want an unattended installation of Matlab from a DVD, you might try calling the license.dat file from d:\license.dat. The problem with this method is that it won't work if the computer's DVD drive isn't set to d:. A better way might be to set license_path=license.dat and use a batch file to execute the installation that would leave the working directory as the root of the CD.
Submitted by vampus8.
Last updated 2008-01-05 14:42:33 by vampus8