How do i execute Matlab Updates from command line without interaction (in silent mode)?

6 vues (au cours des 30 derniers jours)
Dear Support Team,
we maintain different installations of several Matlab Releases on machines that perform automated regression tests.
Since most machines have several Matlab Releases installed, we talk about more than 50 installations.
How can we perform updates without user interaction? I'm looking for a commandline like
R2018a_Update_6.exe --inputFile myInstallation.txt
Thanks and best regards,
Jürgen Bohn

Réponse acceptée

Riya
Riya le 25 Mar 2025
Hi Juergen Bohn,
I understand that you are looking for a way to execute MATLAB updates from the command line in silent mode, without user interaction.
This is indeed useful for maintaining multiple MATLAB installations across different machines.
To accomplish this, you may consider using the following approach:
  • Download the Update Installer” by navigating to the MathWorks website and download the required update (e.g., R2018a_Update_6.exe).
  • Now, to execute the update in silent mode, run the installer using the following command:
R2018a_Update_6.exe -mode silent -agreeToLicense yes
This ensures the update runs without requiring any user input.
  • Additionally, in case you wish to do batch update for multiple installations, you can create a batch script (update_all.bat) to automate the update process. Kindly refer to the following batch script for your reference:
@echo off
for %%V in (R2018a, R2019b, R2020a) do (
"C:\Path\to\%%V_Update.exe" -mode silent -agreeToLicense yes
)
This script will loop through different MATLAB versions and apply the updates automatically.
  • To verify updates after installation, check the MATLAB version by running:
version
This will confirm that the update has been successfully installed.
For further reference on MATLAB silent installations, kindly refer to the official documentation:

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by