微软网站为Windows SharePoint Services 3.0提供了20个模板,安装的方法。并且写了一个脚本,批次把20个脚本全部导入。
原文章文章来源:http://blog.csdn.net/YanChaoChao/archive/2007/08/09/1733949.aspx
update 2008-1-30 把过去两个文件的写到一个文件中了,TemplatePath/TemplateCorePath 请替换成实际位置。
将一下代码拷贝,粘贴到文本文件,命名为all.bat,拷贝到 C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN ,然后在命令行中执行即可。
原文章文章来源:http://blog.csdn.net/YanChaoChao/archive/2007/08/09/1733949.aspx
update 2008-1-30 把过去两个文件的写到一个文件中了,TemplatePath/TemplateCorePath 请替换成实际位置。
将一下代码拷贝,粘贴到文本文件,命名为all.bat,拷贝到 C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN ,然后在命令行中执行即可。
1@REM set templatePath=E:\SPS\Extension\Template\Templates\
2@set templatePath=E:\SPS\Extension\Template\Templates\
3
4stsadm -o addsolution -filename E:\SPS\Extension\Template\templateCore\applicationtemplatecore.wsp
5stsadm -o deploysolution -name applicationtemplatecore.wsp -allowgacdeployment -immediate
6stsadm -o copyappbincontent
7
8stsadm -o addsolution -filename %templatePath%AbsenceVacationSchedule.wsp
9stsadm -o addsolution -filename %templatePath%BudgetingTrackingMultipleProjects.wsp
10stsadm -o addsolution -filename %templatePath%BugDatabase.wsp
11stsadm -o addsolution -filename %templatePath%CallCenter.wsp
12stsadm -o addsolution -filename %templatePath%ChangeRequest.wsp
13stsadm -o addsolution -filename %templatePath%ComplianceProcessSupport.wsp
14stsadm -o addsolution -filename %templatePath%ContactsManagement.wsp
15stsadm -o addsolution -filename %templatePath%DocumentLibraryReview.wsp
16stsadm -o addsolution -filename %templatePath%EventPlanning.wsp
17stsadm -o addsolution -filename %templatePath%ExpenseReimbursementApproval.wsp
18stsadm -o addsolution -filename %templatePath%HelpDesk.wsp
19stsadm -o addsolution -filename %templatePath%InventoryTracking.wsp
20stsadm -o addsolution -filename %templatePath%ITTeamWorkspace.wsp
21stsadm -o addsolution -filename %templatePath%JobRequisition.wsp
22stsadm -o addsolution -filename %templatePath%KnowledgeBase.wsp
23stsadm -o addsolution -filename %templatePath%LendingLibrary.wsp
24stsadm -o addsolution -filename %templatePath%PhysicalAssetTracking.wsp
25stsadm -o addsolution -filename %templatePath%ProjectTrackingWorkspace.wsp
26stsadm -o addsolution -filename %templatePath%RoomEquipmentReservations.wsp
27stsadm -o addsolution -filename %templatePath%SalesLeadPipeline.wsp
28
29stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -local -force
30stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -local -force
31stsadm -o deploysolution -name BugDatabase.wsp -local -force
32stsadm -o deploysolution -name CallCenter.wsp -local -force
33stsadm -o deploysolution -name ChangeRequest.wsp -local -force
34stsadm -o deploysolution -name ComplianceProcessSupport.wsp -local -force
35stsadm -o deploysolution -name ContactsManagement.wsp -local -force
36stsadm -o deploysolution -name DocumentLibraryReview.wsp -local -force -allowGacDeployment
37stsadm -o deploysolution -name EventPlanning.wsp -local -force
38stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -local -force
39stsadm -o deploysolution -name HelpDesk.wsp -local -force
40stsadm -o deploysolution -name InventoryTracking.wsp -local -force -allowGacDeployment
41stsadm -o deploysolution -name ITTeamWorkspace.wsp -local -force
42stsadm -o deploysolution -name JobRequisition.wsp -local -force
43stsadm -o deploysolution -name KnowledgeBase.wsp -local -force
44stsadm -o deploysolution -name LendingLibrary.wsp -local -force
45stsadm -o deploysolution -name PhysicalAssetTracking.wsp -local -force
46stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -local -force
47stsadm -o deploysolution -name RoomEquipmentReservations.wsp -local -force -allowGacDeployment
48stsadm -o deploysolution -name SalesLeadPipeline.wsp -local -force
49
50Pause
51
52
53
2@set templatePath=E:\SPS\Extension\Template\Templates\
3
4stsadm -o addsolution -filename E:\SPS\Extension\Template\templateCore\applicationtemplatecore.wsp
5stsadm -o deploysolution -name applicationtemplatecore.wsp -allowgacdeployment -immediate
6stsadm -o copyappbincontent
7
8stsadm -o addsolution -filename %templatePath%AbsenceVacationSchedule.wsp
9stsadm -o addsolution -filename %templatePath%BudgetingTrackingMultipleProjects.wsp
10stsadm -o addsolution -filename %templatePath%BugDatabase.wsp
11stsadm -o addsolution -filename %templatePath%CallCenter.wsp
12stsadm -o addsolution -filename %templatePath%ChangeRequest.wsp
13stsadm -o addsolution -filename %templatePath%ComplianceProcessSupport.wsp
14stsadm -o addsolution -filename %templatePath%ContactsManagement.wsp
15stsadm -o addsolution -filename %templatePath%DocumentLibraryReview.wsp
16stsadm -o addsolution -filename %templatePath%EventPlanning.wsp
17stsadm -o addsolution -filename %templatePath%ExpenseReimbursementApproval.wsp
18stsadm -o addsolution -filename %templatePath%HelpDesk.wsp
19stsadm -o addsolution -filename %templatePath%InventoryTracking.wsp
20stsadm -o addsolution -filename %templatePath%ITTeamWorkspace.wsp
21stsadm -o addsolution -filename %templatePath%JobRequisition.wsp
22stsadm -o addsolution -filename %templatePath%KnowledgeBase.wsp
23stsadm -o addsolution -filename %templatePath%LendingLibrary.wsp
24stsadm -o addsolution -filename %templatePath%PhysicalAssetTracking.wsp
25stsadm -o addsolution -filename %templatePath%ProjectTrackingWorkspace.wsp
26stsadm -o addsolution -filename %templatePath%RoomEquipmentReservations.wsp
27stsadm -o addsolution -filename %templatePath%SalesLeadPipeline.wsp
28
29stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -local -force
30stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -local -force
31stsadm -o deploysolution -name BugDatabase.wsp -local -force
32stsadm -o deploysolution -name CallCenter.wsp -local -force
33stsadm -o deploysolution -name ChangeRequest.wsp -local -force
34stsadm -o deploysolution -name ComplianceProcessSupport.wsp -local -force
35stsadm -o deploysolution -name ContactsManagement.wsp -local -force
36stsadm -o deploysolution -name DocumentLibraryReview.wsp -local -force -allowGacDeployment
37stsadm -o deploysolution -name EventPlanning.wsp -local -force
38stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -local -force
39stsadm -o deploysolution -name HelpDesk.wsp -local -force
40stsadm -o deploysolution -name InventoryTracking.wsp -local -force -allowGacDeployment
41stsadm -o deploysolution -name ITTeamWorkspace.wsp -local -force
42stsadm -o deploysolution -name JobRequisition.wsp -local -force
43stsadm -o deploysolution -name KnowledgeBase.wsp -local -force
44stsadm -o deploysolution -name LendingLibrary.wsp -local -force
45stsadm -o deploysolution -name PhysicalAssetTracking.wsp -local -force
46stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -local -force
47stsadm -o deploysolution -name RoomEquipmentReservations.wsp -local -force -allowGacDeployment
48stsadm -o deploysolution -name SalesLeadPipeline.wsp -local -force
49
50Pause
51
52
53