Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

Your Answer

 
discard

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.