how to transfer license from one computer to another?
You need to navigate to the "transfer license" tab as shown in my attachment. At that point, deactivate the SW license on your old computer, go to the new install and activate it.
Just to add to what Jeff has already correctly said, the computers will try to activate the serial number which it was installed with. So if you are say changing a premium license between computers, you may need to change the serial number on the computer. This can be done by navigating to Control Panel>Programs and Features and then find SolidWorks in the list of programs, select change. This will load up the SolidWorks Installation manager and will give you the option to Modify the installation, on the next page you will be prompted to enter the new serial number, once completed let the installation wizard complete. When you now try and activate SolidWorks, it will be trying to do so with the new serial number.
Retrieving data ...