Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Installing Features

  Asked By: Evelyn    Date: Mar 27    Category: Sharepoint    Views: 821

I am trying to install a bunch of features. I want to store them in
the features directory in a folder called custom so the directory
structure would look like this. 12/tempalte/features/custom/feature1.
When I try to install it using stsamd -filename it will not find the
feature in a sub directory. It seems to only find it if the feature is
directly off of the features directory. Is this a limitation of the
system or the developer.

This is what I tried:
stsadm -o installfeature -filename "custom\feature1\feature.xml"
**Doesn't work**

When i move the feature up one level.
stsadm -o installfeature -filename "feature1\feature.xml"
** works**



3 Answers Found

Answer #1    Answered By: Isaiah Santiago     Answered On: Mar 27

That is what I was afraid of. How do other developer  handle that. I
have a test server that is running multiple development environments
for different clients. I want to have a PageLayouts feature  for each
one? I guess I have to name them each differently and come up with a
naming convention.

Answer #2    Answered By: Robert Wilson     Answered On: Mar 27

We use a typical namespace naming convention, for example

Answer #3    Answered By: Chase Wagner     Answered On: Mar 27

The xml  file that defines the feature  (usually feature.xml) must be in a
subdirectory that is one level  below the FEATURES directory. You can't
group them in a subdirectory. You can mark them all as hidden and then
create one additional feature that lists all the others as Feature
Dependencies. Then when you activate the one feature you activate them

Didn't find what you were looking for? Find more on Installing Features Or get search suggestion and latest updates.