feature安装和卸载的脚本

Install


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

set FeatureFilePath=DocumentumContentServices\feature.xml
set TargetSiteUrl=http://localhost:8000

stsadm -o installfeature -filename  "%FeatureFilePath%"

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

iisreset /timeout:0

pause

 

Uninstall

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

set FeatureFilePath=DocumentumContentServices\feature.xml
set TargetSiteUrl=http://localhost:8000

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

stsadm -o uninstallfeature -filename "%FeatureFilePath%" -force


iisreset /timeout:0

pause

posted @ 2008-10-16 14:28  彷徨......  阅读(347)  评论(0编辑  收藏  举报