安装Feature

cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"

set FeatureFilePath=DMContentTypeSettings\feature.xml
set TargetSiteUrl=http://localhost:1979

stsadm -o installfeature -filename  "%FeatureFilePath%"

stsadm -o activatefeature -filename "%FeatureFilePath%" -url "%TargetSiteUrl%"

set FeatureFilePath=DMS\feature.xml
set TargetSiteUrl=http://localhost:1979

stsadm -o installfeature -filename  "%FeatureFilePath%"

stsadm -o activatefeature -filename "%FeatureFilePath%" -url "%TargetSiteUrl%"

set FeatureFilePath=DMS_CreateBaseLineFeature\feature.xml
set TargetSiteUrl=http://localhost:1979

stsadm -o installfeature -filename  "%FeatureFilePath%"

stsadm -o activatefeature -filename "%FeatureFilePath%" -url "%TargetSiteUrl%"

set FeatureFilePath=DMS_DeleteDocFeature\feature.xml
set TargetSiteUrl=http://localhost:1979

stsadm -o installfeature -filename  "%FeatureFilePath%"

stsadm -o activatefeature -filename "%FeatureFilePath%" -url "%TargetSiteUrl%"

set FeatureFilePath=DMS_DocPlanNewVersionFeature\feature.xml
set TargetSiteUrl=http://localhost:1979

stsadm -o installfeature -filename  "%FeatureFilePath%"

stsadm -o activatefeature -filename "%FeatureFilePath%" -url "%TargetSiteUrl%"

set FeatureFilePath=DMS_SubmitDocFeature\feature.xml
set TargetSiteUrl=http://localhost:1979

stsadm -o installfeature -filename  "%FeatureFilePath%"

stsadm -o activatefeature -filename "%FeatureFilePath%" -url "%TargetSiteUrl%"

set FeatureFilePath=DMS_ViewDocAttrFeature\feature.xml
set TargetSiteUrl=http://localhost:1979

stsadm -o installfeature -filename  "%FeatureFilePath%"

stsadm -o activatefeature -filename "%FeatureFilePath%" -url "%TargetSiteUrl%"

set FeatureFilePath=DMS_ViewDocPlanFeature\feature.xml
set TargetSiteUrl=http://localhost:1979

stsadm -o installfeature -filename  "%FeatureFilePath%"

stsadm -o activatefeature -filename "%FeatureFilePath%" -url "%TargetSiteUrl%"

iisreset /timeout:0

posted @ 2011-04-12 09:55  Jason.Bird  阅读(225)  评论(0编辑  收藏  举报