Sometimes you have to be forceful

When a solution was not correctly removed from a farm, features will be left behind, because they were not deactivated and removed.

In cases, where those features are not being altered, it is possible to re-deploy a solution using -force.

Retract the solution and then

Install-SPSolution -Identity <solution_file> -GACDeployment -Force

 

Or, if you receive error about gac deployment or about web application scoping, use this line instead

 

Install-spsolution -identity <solution_file> -allwebapplications -gacdeployment -force

 

 

forceDeploy

DocLibraryBreadcrumb.wsp install with:

 

install-spsolution -identity doclibrarybreadcrumb.wsp -AllWebApplications -gacdeployment -force