I have MATLAB R2020a installed in my laptop with limited products under a license. The license has expired now. I have got another license under student competitions, which offers a wide number of products. Do I need to uininstall the older version to install this new one?
MATLAB: Do I need to uninstall another version of MATLAB before installing an new version with different products
installationMATLAB
Related Solutions
There are two separate cases for a MATLAB upgrade:
1) Installing a new general release version of MATLAB.
2) Installing a web update to a MATLAB version (also know as a plus '+' release).
General Release Upgrade
When you install a new version of the general release, you will simply install the new version of MATLAB into a new folder. The installer will not overwrite any other versions that are already installed. If you have a network installation of MATLAB, the network license manager will need to be updated before you can run the new version of MATLAB.
For the complete instructions on how to install MATLAB, please refer to the installation guide here:
Install Products
Once the new version is installed, you can remove the previous installation of MATLAB, or leave it installed if you wish.
NOTE: When uninstalling, if you are prompted to deactivate, do not do so. Deactivation will also remove your license for the new release.
Plus Release Upgrade
If you are upgrading from a standard release to a plus (+) release (e.g. upgrading R2006b to R2006b+), you will need the installation files only for the products that have updates. The plus releases are only available through downloads. Once you have downloaded all of the updated files, launch the installer that was downloaded with the plus release files. For more information about this installation process, see the related solution: "How do I install additional toolboxes into an existing installation of MATLAB?"
To update the Network License Manager, you must first obtain the updated License File then install the updated License Manager software using the MathWorks Installer or manually update the License Manager binaries.
The following instructions are for:
- Obtaining the update License File
- Updating the License Manager using MathWorks Installer
- Manually updating the License Manager using the binaries
Obtaining the updated License File (Required)
Updating the network license manager requires that the license server already be activated on the MathWorks website.
To obtain the updated license file:
- Open the license in the License Center
- Click the "Install and Activate" tab
- Under 'Get License File,' click the down arrow to download the license file or the envelope to email the license file.
If you see "Activate to Retrieve License File," then you will need to activate the license. For information on installing the License Manager with a new network license, please refer to the following article:
If you are transferring the license to a new license server, you will be required to first deactivate before reactivating to the new license server:
Updating the License Manager using MathWorks Installer
Using the MathWorks Installer to update the license manager is recommended for new license administrators. Compared to updating the license manager manually, it takes longer but is less error-prone.
1) Stop the current License Manager service
(Windows Machines only) Stop and remove the service
On Windows, the existing license manager service must be removed before the installer can be used to create a new one.
To remove the existing service:
- Open the MATLAB installation folder.
- Open the folder "etc\win64."
- Start "lmtools.exe."
- Go to the "Start/Stop/Reread" tab.
- Click "Stop Server."
- Go to the "Config Services" tab.
- Click on the "Service Name" drop down menu, and select the service you would like to remove.
- Click "Remove Service."
- Reboot the server to save the changes to your registry.
(Linux and MacOS) Stop Server
Linux and MacOS do not share Windows' concept of services. Instead, use the lmdown script to stop the license manager before proceeding.
2) Download and run the MathWorks Installer
The license manager installer is part of the MathWorks Installer. The MathWorks Installer can be downloaded here. Once you have the installer:
- Start the MATLAB installer.
- Click 'Advanced Options' at the top right.
- Select 'I want to install Network License Manager'
- Accept the terms of the Software License Agreement.
- When prompted for a license file, browse to the "license.lic" file that you downloaded from the MathWorks License Center.
- Select the destination folder
- To start the license manager to start at boot time, select "Configure the license manager as a service" (Windows only.)
- Click "Begin Install."
You may now start the License Manager as you had prior to the update.
NOTE: When updating the License Manager with the MathWorks Installer, the license.dat generated will not include the changes made to the SERVER line from your old license.dat. You may need to replace the SERVER line from your updated license.dat with the SERVER line from the outdated license.dat.
The old license manager will still be in the folder it was originally installed in. Now that the updated license manager has been installed, you may delete this folder.
Manually updating the License Manager using the binaries
If you are serving multiple vendors from your FlexLM server, or you simply prefer to do things manually, the license manager can be updated without using the MATLAB installer. While updating the license manager manually is faster than using the MathWorks Installer, it is more error prone and only recommended for experienced license administrators.
First, you must download the License Manager binaries. The license manager binaries can be downloaded here.
The license manager consists of three binaries, or four for Windows machines:
- lmgrd, the core license manager binary
- mlm, the MATLAB vendor daemon
- lmutil, a suite of tools for administering the license manager
- lmtools.exe, a graphical frontend for the license manager. (Windows only)
To update the license manager:
- Stop the license manager. On Windows machines, remove the License Manager service.
- Replace the binaries on the server with the ones you downloaded above.
- Update the license file.
You may now start the License Manager using the startup scripts.
When contacting us through a service request, please provide the license.dat and the debug log (lmlog). You may also find the help you need by visiting our support page!
Best Answer