Export (0) Print
Expand All

Installing or Uninstalling Features

Windows SharePoint Services 3

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

You install Features in the 12\Template\Features directory, with each Feature in its own subdirectory. At the root of this folder, a Feature.xml file defines the contents of the Feature.

Note When you create a folder within the Features directory through Windows Explorer by right-clicking a folder, pointing to New, and then clicking Folder, the new folder does not have inherited permissions. If you deploy a Feature in the folder, then some Windows SharePoint Services pages, such as for site settings or list views, throw an exception. You can fix this problem by right-clicking the new folder, click Properties, click Security, and then click Advanced. On the Permissions tab, delete uninherited permissions from the folder. You can also fix this problem by creating the new folder at the command prompt through the md command.

You must install individual Features before you can use them. To do this, run the following command at the command prompt:

stsadm –o installfeature –filename <path of the Feature.xml file relative to the 12\TEMPLATE\FEATURES folder >

When you install Windows SharePoint Services (version 3) and Microsoft Office SharePoint Server 2007, all default Features are automatically installed.

In addition to installing a Feature, you must activate it before you can use it (unless the Feature is Farm scoped, which means it is activated automatically).

To activate a Feature, run the following command:

stsadm –o activatefeature –name < folder in FEATURES directory containing the Feature.xml file > -url http://Server/Site/Subsite

To uninstall a Feature so that its definition is no longer available within a server farm, you can use the uninstall operation.

NoteNote

You must deactivate features before uninstalling them unless they are WebApplication scoped or Farm scoped Features.

After uninstalling a Feature, reset Internet Information Services (IIS) so that changes can take effect.

To deactivate a Feature so that it becomes inactive at its originally assigned scope, you can use the deactivate operation.

Show:
© 2014 Microsoft