在服务器场中部署“WSS 3.0 应用程序模板中文版”心得

之前看到园子里有几篇关于部署Windows SharePoint Services 3.0 应用程序模板中文版的文章,他们都采用了批处理文件,但在服务器场中部署始终报错,后来经过尝试发现,如果把stsadm -o deploysolution和stsadm -o addsolution指令分成两个批处理文件,先执行stsadm -o addsolution得批处理,再在各个前端服务器执行stsadm -o deploysolution批处理(建议加上-force开关),就不会有问题了,具体指令如下:
1、stsadm -o addsolution批处理:

@REM set templatePath=d:\wss3tem\

@set templatePath=d:\wss3tem\

stsadm -o addsolution -filename %templatePath%ApplicationTemplateCore.wsp

stsadm -o deploysolution -name ApplicationTemplateCore.wsp -local -allowGacDeployment

stsadm -o copyappbincontent

stsadm -o addsolution -filename %templatePath%AbsenceVacationSchedule.wsp
stsadm -o addsolution -filename %templatePath%BudgetingTrackingMultipleProjects.wsp
stsadm -o addsolution -filename %templatePath%BugDatabase.wsp
stsadm -o addsolution -filename %templatePath%CallCenter.wsp
stsadm -o addsolution -filename %templatePath%ChangeRequest.wsp
stsadm -o addsolution -filename %templatePath%ComplianceProcessSupport.wsp
stsadm -o addsolution -filename %templatePath%ContactsManagement.wsp
stsadm -o addsolution -filename %templatePath%DocumentLibraryReview.wsp
stsadm -o addsolution -filename %templatePath%EventPlanning.wsp
stsadm -o addsolution -filename %templatePath%ExpenseReimbursementApproval.wsp
stsadm -o addsolution -filename %templatePath%HelpDesk.wsp
stsadm -o addsolution -filename %templatePath%InventoryTracking.wsp
stsadm -o addsolution -filename %templatePath%ITTeamWorkspace.wsp
stsadm -o addsolution -filename %templatePath%JobRequisition.wsp
stsadm -o addsolution -filename %templatePath%KnowledgeBase.wsp
stsadm -o addsolution -filename %templatePath%LendingLibrary.wsp
stsadm -o addsolution -filename %templatePath%PhysicalAssetTracking.wsp
stsadm -o addsolution -filename %templatePath%ProjectTrackingWorkspace.wsp
stsadm -o addsolution -filename %templatePath%RoomEquipmentReservations.wsp
stsadm -o addsolution -filename %templatePath%SalesLeadPipeline.wsp
Pause
 
2、stsadm -o deploysolution批处理:


@set templatePath=d:\wss3tem\

stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -local -force
stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -local -force
stsadm -o deploysolution -name BugDatabase.wsp -local -force
stsadm -o deploysolution -name CallCenter.wsp -local -force
stsadm -o deploysolution -name ChangeRequest.wsp -local -force
stsadm -o deploysolution -name ComplianceProcessSupport.wsp -local -force
stsadm -o deploysolution -name ContactsManagement.wsp -local -force
stsadm -o deploysolution -name DocumentLibraryReview.wsp -local -force -allowGacDeployment
stsadm -o deploysolution -name EventPlanning.wsp -local -force
stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -local -force
stsadm -o deploysolution -name HelpDesk.wsp -local -force
stsadm -o deploysolution -name InventoryTracking.wsp -local -force -allowGacDeployment
stsadm -o deploysolution -name ITTeamWorkspace.wsp -local -force
stsadm -o deploysolution -name JobRequisition.wsp -local -force
stsadm -o deploysolution -name KnowledgeBase.wsp -local -force
stsadm -o deploysolution -name LendingLibrary.wsp -local -force
stsadm -o deploysolution -name PhysicalAssetTracking.wsp -local -force
stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -local -force
stsadm -o deploysolution -name RoomEquipmentReservations.wsp -local -force -allowGacDeployment
stsadm -o deploysolution -name SalesLeadPipeline.wsp -local -force

Pause

 

posted @ 2007-05-08 12:02  克隆  阅读(363)  评论(0编辑  收藏  举报