用于MOSS 3.0 网站的模板更新程序,如下:
@ECHO OFF
ECHO **********************************
ECHO.开始WSS3.0模版安装(请将模版文件存放在D:\ServerAdminTemplates目录)
ECHO **********************************
pause
cls
set path=%path%;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
stsadm -o addsolution -filename D:\ServerAdminTemplates\applicationtemplatecore.wsp
stsadm -o deploysolution -name applicationtemplatecore.wsp -allowgacdeployment -immediate
stsadm -o copyappbincontent
ECHO "应用程序模板核心解决方案"应用成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\AbsenceVacationSchedule.wsp
stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -allowgacdeployment -immediate
ECHO AbsenceVacationSchedule.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\BudgetingTrackingMultipleProjects.wsp
stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -allowgacdeployment -immediate
ECHO BudgetingTrackingMultipleProjects.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\BugDatabase.wsp
stsadm -o deploysolution -name BugDatabase.wsp -allowgacdeployment -immediate
ECHO BugDatabase.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\CallCenter.wsp
stsadm -o deploysolution -name CallCenter.wsp -allowgacdeployment -immediate
ECHO CallCenter.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ChangeRequest.wsp
stsadm -o deploysolution -name ChangeRequest.wsp -allowgacdeployment -immediate
ECHO ChangeRequest.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ComplianceProcessSupport.wsp
stsadm -o deploysolution -name ComplianceProcessSupport.wsp -allowgacdeployment -immediate
ECHO ComplianceProcessSupport.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ContactsManagement.wsp
stsadm -o deploysolution -name ContactsManagement.wsp -allowgacdeployment -immediate
ECHO ContactsManagement.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\DocumentLibraryReview.wsp
stsadm -o deploysolution -name DocumentLibraryReview.wsp -allowgacdeployment -immediate
ECHO DocumentLibraryReview.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\EventPlanning.wsp
stsadm -o deploysolution -name EventPlanning.wsp -allowgacdeployment -immediate
ECHO EventPlanning.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ExpenseReimbursementApproval.wsp
stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -allowgacdeployment -immediate
ECHO ExpenseReimbursementApproval.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\HelpDesk.wsp
stsadm -o deploysolution -name HelpDesk.wsp -allowgacdeployment -immediate
ECHO HelpDesk.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\InventoryTracking.wsp
stsadm -o deploysolution -name InventoryTracking.wsp -allowgacdeployment -immediate
ECHO InventoryTracking.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ITTeamWorkspace.wsp
stsadm -o deploysolution -name ITTeamWorkspace.wsp -allowgacdeployment -immediate
ECHO ITTeamWorkspace.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\JobRequisition.wsp
stsadm -o deploysolution -name JobRequisition.wsp -allowgacdeployment -immediate
ECHO JobRequisition.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\KnowledgeBase.wsp
stsadm -o deploysolution -name KnowledgeBase.wsp -allowgacdeployment -immediate
ECHO KnowledgeBase.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\LendingLibrary.wsp
stsadm -o deploysolution -name LendingLibrary.wsp -allowgacdeployment -immediate
ECHO LendingLibrary.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\PhysicalAssetTracking.wsp
stsadm -o deploysolution -name PhysicalAssetTracking.wsp -allowgacdeployment -immediate
ECHO PhysicalAssetTracking.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ProjectTrackingWorkspace.wsp
stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -allowgacdeployment -immediate
ECHO ProjectTrackingWorkspace.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\RoomEquipmentReservations.wsp
stsadm -o deploysolution -name RoomEquipmentReservations.wsp -allowgacdeployment -immediate
ECHO RoomEquipmentReservations.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\SalesLeadPipeline.wsp
stsadm -o deploysolution -name SalesLeadPipeline.wsp -allowgacdeployment -immediate
ECHO SalesLeadPipeline.wsp模版安装成功
ECHO *****************
ECHO 全部模版安装成功
ECHO *****************
pause