微软网站为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
4
stsadm -o addsolution -filename E:\SPS\Extension\Template\templateCore\applicationtemplatecore.wsp
5
stsadm -o deploysolution -name applicationtemplatecore.wsp -allowgacdeployment -immediate
6
stsadm -o copyappbincontent
7
8
stsadm -o addsolution -filename %templatePath%AbsenceVacationSchedule.wsp
9
stsadm -o addsolution -filename %templatePath%BudgetingTrackingMultipleProjects.wsp
10
stsadm -o addsolution -filename %templatePath%BugDatabase.wsp
11
stsadm -o addsolution -filename %templatePath%CallCenter.wsp
12
stsadm -o addsolution -filename %templatePath%ChangeRequest.wsp
13
stsadm -o addsolution -filename %templatePath%ComplianceProcessSupport.wsp
14
stsadm -o addsolution -filename %templatePath%ContactsManagement.wsp
15
stsadm -o addsolution -filename %templatePath%DocumentLibraryReview.wsp
16
stsadm -o addsolution -filename %templatePath%EventPlanning.wsp
17
stsadm -o addsolution -filename %templatePath%ExpenseReimbursementApproval.wsp
18
stsadm -o addsolution -filename %templatePath%HelpDesk.wsp
19
stsadm -o addsolution -filename %templatePath%InventoryTracking.wsp
20
stsadm -o addsolution -filename %templatePath%ITTeamWorkspace.wsp
21
stsadm -o addsolution -filename %templatePath%JobRequisition.wsp
22
stsadm -o addsolution -filename %templatePath%KnowledgeBase.wsp
23
stsadm -o addsolution -filename %templatePath%LendingLibrary.wsp
24
stsadm -o addsolution -filename %templatePath%PhysicalAssetTracking.wsp
25
stsadm -o addsolution -filename %templatePath%ProjectTrackingWorkspace.wsp
26
stsadm -o addsolution -filename %templatePath%RoomEquipmentReservations.wsp
27
stsadm -o addsolution -filename %templatePath%SalesLeadPipeline.wsp
28
29
stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -local -force
30
stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -local -force
31
stsadm -o deploysolution -name BugDatabase.wsp -local -force
32
stsadm -o deploysolution -name CallCenter.wsp -local -force
33
stsadm -o deploysolution -name ChangeRequest.wsp -local -force
34
stsadm -o deploysolution -name ComplianceProcessSupport.wsp -local -force
35
stsadm -o deploysolution -name ContactsManagement.wsp -local -force
36
stsadm -o deploysolution -name DocumentLibraryReview.wsp -local -force -allowGacDeployment
37
stsadm -o deploysolution -name EventPlanning.wsp -local -force
38
stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -local -force
39
stsadm -o deploysolution -name HelpDesk.wsp -local -force
40
stsadm -o deploysolution -name InventoryTracking.wsp -local -force -allowGacDeployment
41
stsadm -o deploysolution -name ITTeamWorkspace.wsp -local -force
42
stsadm -o deploysolution -name JobRequisition.wsp -local -force
43
stsadm -o deploysolution -name KnowledgeBase.wsp -local -force
44
stsadm -o deploysolution -name LendingLibrary.wsp -local -force
45
stsadm -o deploysolution -name PhysicalAssetTracking.wsp -local -force
46
stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -local -force
47
stsadm -o deploysolution -name RoomEquipmentReservations.wsp -local -force -allowGacDeployment
48
stsadm -o deploysolution -name SalesLeadPipeline.wsp -local -force
49
50
Pause
51
52
53

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53
