Wss3sdk: feature installation and uninstallation

Source: Internet
Author: User

Feature is installed on12 \ template \ featuresDirectory, each feature is a sub-folder. At the root of the folder, a feature. xml file defines the content of the feature.

Note:When you create a folder in the feature directory through windows Resource Manager (right-click a folder, click Create, and then click folder), the newly created Folder does not inherit the permission. If you deploy a feature in this folder, an exception occurs on some WSS pages (such as website settings or list views. You can right-click the new folder, click Properties, and click Security. Then click Advanced to delete the folder from the permission label without the inherited permissions. Or you can useMDCommand to create a folder.

You must install a specific feature before using it. To install a feature, run the following command:

Stsadm-O installfeature-filename <feature. xml file relative 12 \ Template \ features folder path >

When you install WSS V3 and moss 2007, all the default feature has been installed automatically.

In addition to installing the feature, you must activate it before using it (unless the feature is in the field range and is automatically activated in this case ).

To activate a feature, run the following command:

Stsadm-O activatefeature-name <folder containing the feature. xml file in the features directory >   - URL http: // Server / Site / Subsite

You can use the stsadm command line toolUninstallTo uninstall a feature. After the feature is uninstalled, the feature definition is no longer available in the server farm.

Note::

You need to disable the feature (Web ApplicationProgramOr feature in the field range ). You can disable it on the Web interface or through the command line. You can only unmount it through the command line.

After the feature is uninstalled, restart IIS to make the change take effect.

You can use the stsadm command line toolDeactivateTo disable a feature. After the feature is disabled, the feature becomes inactive within its original range.

The command is as follows:

Stsadm.exe - O deactivatefeature
{ - Filename < Feature. xml file12\ Template \ features folder path > |
- Name < Folder containing the feature. xml file in the features directory > |
- ID < Feature ID > }
[ - URL < URL > ]
[ - Force]

 

The command for uninstallation is:

Stsadm.exe - O uninstallfeature
{ - Filename < Feature. xml file12\ Template \ features folder path > |
- Name < Folder containing the feature. xml file in the features directory > |
- ID < Feature ID > }
[ - Force]

Then, you can delete the corresponding folder under features.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.