SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a solution for SP2010. Let's call it s.wsp. I had version 1 of s.wsp and now I have version 2 of s.wsp. Versions 1 and 2 share three common features: A, B and C. Version 2 adds a new feature D.

We used to upgrade solutions with Update-SPSolution command, but now I have an error for A,B and C since we changed their paths:

The solution cannot be deployed. The feature 'guid_here' uses the directory "path_a" in the solution. However, it is currently installed in the farm to the directory "path_a_a". Uninstall the existing feature before you install a new version of the solution.

The idea was to add some custom code which will uninstall these features without using several calls of Uninstall-SPFeature command. But I have no idea is it possible or not. Can someone help?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.