Installation of Latest version of matlab in automated mode

6 visualizzazioni (ultimi 30 giorni)
Trying to install matlab 2022b in automated mode using batch script. i am having organisation provided network license (network.lic). Manually, i am able to install matlab with .lic file without any issues. But when i am trying to install matlab from batch file, installer requesting for login details. i have given all those details in text file and given as input to batch script. but still it is asking for login details. Here i am attaching batch script and result image. Can anyone please support here to install matlab in automated mode.
Placed installation files and batch files in C drive.
input text file data:
destinationFolder=C:\xx\xx\MatlabR2022b
fileInstallationKey=network
lmgrFiles=yes
lmgrService=yes
agreeToLicense=yes
outputFile=C:\temp\SourceFiles\Cfg\MatlabInstallOutput.log
licensePath=C:\xx\ToolsxxDir\SourceFiles\Lic\network.lic
desktopShortcut=true
startMenuShortcut=true
email="xxxxx@companyname.com"
password="password"
product.MATLAB
product.MATLAB_Coder
product.MATLAB_Report_Generator
product.Optimization_Toolbox
product.Simulink
product.Simulink_Design_Optimization
product.Simulink_Report_Generator
product.Simulink_Verification_and_Validation
product.Stateflow

Risposte (1)

Gyan Vaibhav
Gyan Vaibhav il 27 Feb 2024
Hi Siva,
I see that you are trying to do a silent install of Matlab using a batch script.
However, it seems like there are a few issues with your batch script. The script is attempting to wait for the MATLAB installer to launch and then simulate the entry of login credentials. However, this approach is not reliable for automating the installation of MATLAB, as the installer does not support direct input of credentials via the clipboard in an automated fashion.
For an automated installation of MATLAB using a network license, you should use the silent installation features provided by MathWorks. This typically involves creating an installer input file (sometimes referred to as an installer_input.txt or similar) with all the necessary information, and then running the installer with the -inputFile argument pointing to that file.
You can follow this guide for in detail steps.
For the above method you will need the network license and file installation key. Refer to the following for the steps to obtain the same.
Hope this resolves your query.
Thanks
Gyan

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by