how to add WSP file in central admin through Management Shell

452 Views Asked by At

I am adding wsp file as it already exist now I need to update it..

Its giving me a error message on management shell that

A solution with the same name and id already exist.

I am writing this command in management shell.

 Add-SPSolution "c:\Deploy\WSP\{file name}.wsp"  

Like this

Add-SPSolution "c:\Deploy\WSP\SharePointProject2.wsp"

1

There are 1 best solutions below

3
Akshay Belure On

There are two ways you can achieve this:

  1. Use 'Update-SPSolution' Or
  2. Remove solution using 'Remove-SPSolution' and add again using 'Add-SPSolution'