If you create a installer using setup and deployment project make sure that while installing it do not choose SolidWorks folder as the location. We do not want to overwrite the already existing interops in SolidWorks installation folder.

You can install it at any other location and will be able to register the dll without any issues.