Batch file to install all features in one go

Apr 16, 2009 at 11:38 PM
SharePoint 2007 Features
http://features.codeplex.com/

Download:
http://features.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=2502

-->Download the Features_Solutions.zip [All Features in a Single Download]
-->extrace the file under C:\ drive
-->Download the file name Features.doc and change the extention to Features.bat
-->Move this file Features.bat in the same location
-->Open Command prompt by start-run-type cmd
-->
Change the path to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
-->Type Features.bat
-->Press Enter and it done

File: http://yagyashree.wordpress.com/sharepoint-2007-features/
====================

@echo off
stsadm -o addsolution -filename c:\Features_Solutions\CustomConfiguration.cab
stsadm -o deploysolution -immediate -name CustomConfiguration.cab

stsadm -o addsolution -filename c:\Features_Solutions\AJAX.Config.wsp
stsadm -o deploysolution -immediate -name AJAX.Config.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\AnonymousAudience.wsp
stsadm -o deploysolution -immediate -name AnonymousAudience.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\ContentTypeHierarchy.wsp
stsadm -o deploysolution -immediate -name ContentTypeHierarchy.wsp

stsadm -o addsolution -filename c:\Features_Solutions\CreateSiteInTargetDB.wsp
stsadm -o deploysolution -immediate -name CreateSiteInTargetDB.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\DebugConfigFeature.wsp
stsadm -o deploysolution -immediate -name DebugConfigFeature.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\DebuggerFeature.wsp
stsadm -o deploysolution -immediate -name DebuggerFeature.wsp

stsadm -o addsolution -filename c:\Features_Solutions\FBAManagement.wsp
stsadm -o deploysolution -immediate -name FBAManagement.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\ManageConfigMods.wsp
stsadm -o deploysolution -immediate -name ManageConfigMods.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\ManageHierarchicalStore.wsp
stsadm -o deploysolution -immediate -name ManageHierarchicalStore.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\ManageLayoutsSiteMap.wsp
stsadm -o deploysolution -immediate -name ManageLayoutsSiteMap.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\MinimalMaster.wsp
stsadm -o deploysolution -immediate -name MinimalMaster.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\MinimalPublishing.wsp
stsadm -o deploysolution -immediate -name MinimalPublishing.wsp

stsadm -o addsolution -filename c:\Features_Solutions\PawnContactsList.wsp
stsadm -o deploysolution -immediate -name PawnContactsList.wsp

stsadm -o addsolution -filename c:\Features_Solutions\PlaceHolderMaster.wsp
stsadm -o deploysolution -immediate -name PlaceHolderMaster.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\PrintList.wsp
stsadm -o deploysolution -immediate -name PrintList.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\RESET_THEME_SOLUTION.wsp
stsadm -o deploysolution -immediate -name RESET_THEME_SOLUTION.wsp

stsadm -o addsolution -filename c:\Features_Solutions\SharePointEventsManager.wsp
stsadm -o deploysolution -immediate -name SharePointEventsManager.wsp

stsadm -o addsolution -filename c:\Features_Solutions\SPGael.CustomFields.CustomRegularExpressionValidator.wsp
stsadm -o deploysolution -immediate -name SPGael.CustomFields.CustomRegularExpressionValidator.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\SPGael.CustomFields.VariationLabels.wsp
stsadm -o deploysolution -immediate -name SPGael.CustomFields.VariationLabels.wsp -allowgacdeployment -url <siteURL>

stsadm -o addsolution -filename c:\Features_Solutions\TaskAlert.wsp
stsadm -o deploysolution -immediate -name TaskAlert.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\TaskMover.wsp
stsadm -o deploysolution -immediate -name TaskMover.wsp

stsadm -o addsolution -filename c:\Features_Solutions\ThemeChanger.wsp
stsadm -o deploysolution -immediate -name ThemeChanger.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\ThemeChangerStaple.wsp
stsadm -o deploysolution -immediate -name ThemeChangerStaple.wsp

stsadm -o addsolution -filename c:\Features_Solutions\ToolbarManager.wsp
stsadm -o deploysolution -immediate -name ToolbarManager.wsp -allowgacdeployment -url <siteURL>

stsadm -o addsolution -filename c:\Features_Solutions\UniqueColumnPolicy.wsp
stsadm -o deploysolution -immediate -name UniqueColumnPolicy.wsp -allowgacdeployment

stsadm -o addsolution -filename c:\Features_Solutions\WindowsLinks.wsp
stsadm -o deploysolution -immediate -name WindowsLinks.wsp

stsadm -o execadmsvcjobs
iisreset
echo on