Building a deployable and completely silent software installer for Matlab on windows is a bit of an adventure . Clearly, each installation is different so I don’t think I can give a detailed step-by-step recipe here for every circumstance. I can give you a few steps which took me a while to piece together from various sources and a considerable amount of trial and error …
- Extract the installer from the vendor to a new, empty folder
- Be sure to replace the generic “archives” folder which may initially contain only the license manager with the archives folder you have specific for the Matlab products you need to install
- Create an installer input file with all the questions answered (a copy of ours is attached , remember to change the auth-code to your real auth code, ours is scrubbed out in this example)
- For a completely silent install also change the “mode=automated” to “mode=silent” in this installer input file
- If you run this in a non-FlexLM environment you also have to deal with the activation process (we run FlexLM here to simplify the process, so I can’t help you with that process …)
- Make sure you have a copy of your network license file to copy into a known place for the installer to point at
- Run the installer from a batch script with commands like:
echo Copying network license file …
xcopy /Q /Y “%install_dir%payload\matlab_network.dat” c:\windows\temp\echo Installing software and required conponents …
“%install_dir%payload\bin\win64\setup.exe” -inputFile “%install_dir%payload\wc_installer_input.txt”Where %installdir% is set to the directory where you are running the installation. Also mind the line breaks shown here are not intended for the actual commands ….