简体   繁体   中英

how to add WSP file in central admin through Management Shell

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 "

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'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM