When Repairing SOLIDWORKS Installation it is best to go through the Windows Control Panel > Programs and features > Uninstall a program.
What you will do next is right-click on SOLIDWORKS 20XX and select Change NOT Uninstall.
Once this is done you will select OK:
Then select Repair the individual installation (on this computer) and pick Next
This will then bring up a window to select the SOLIDWORKS programs you would like to repair, make your selections then hit Repair.
It will take some time to go through the process of repairing the SOLIDWORKS installation[s]. If you would like to know what is happening in the background this blog post explains what the Repair SOLIDWORKS Command is doing.
That’s it!! The Repairing SOLIDWORKS Installation process has been completed.