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