卸载feature
Rem Remember to remove line breaks from first two lines
@SET TEMPLATEDIR="%programfiles%/common files/microsoft shared/web server extensions/12/Template"
@SET STSADM="%programfiles%/common files/microsoft shared/web server extensions/12/bin/stsadm.exe"
iisreset /stop
Echo deactivatefeature PublishNews feature
%STSADM% -o deactivatefeature -filename PublishNews/feature.xml -force
Echo uninstallfeature PublishNews feature
%STSADM% -o uninstallfeature -filename PublishNews/feature.xml -force
Echo deactivatefeature ApproveNews feature
%STSADM% -o deactivatefeature -filename ApproveNews/feature.xml -force
Echo uninstallfeature ApproveNews feature
%STSADM% -o uninstallfeature -filename ApproveNews/feature.xml -force
Echo Restart IIS Worker Process
iisreset /start
pause
出处:http://www.cnblogs.com/dbasys/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。