File: ggobi.nsi

package info (click to toggle)
ggobi 2.1.9~20091212-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 19,340 kB
  • ctags: 5,083
  • sloc: ansic: 57,242; xml: 30,604; cpp: 833; makefile: 355; java: 225; perl: 201; sh: 122; python: 23
file content (98 lines) | stat: -rw-r--r-- 3,213 bytes parent folder | download
1
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# set PATH for all users - requires admin but I think we do anyway
!define ALL_USERS 1
!include "AddToPath.NSH"

!include "MUI.nsh"

Name GGobi
VIProductVersion ${VERSION}
OutFile ggobi-${VERSION}.exe
InstallDir $PROGRAMFILES\ggobi
InstallDirRegKey HKLM "Software\ggobi" "InstallationDirectory"

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "../CPLicense.txt"
#!insertmacro MUI_PAGE_COMPONENTS components
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH

!insertmacro MUI_LANGUAGE "English"

Section "GGobi"
	SetOutPath $INSTDIR
	File ..\src\.libs\ggobi.exe
	File /r /x .svn /x big* ..\data
	#File /r /x .svn ..\doc
	File ..\share\ggobi.ico
	File ..\ggobirc
	File ..\src\.libs\libggobi-0.dll
	
	SetOutPath $INSTDIR\share
	File ..\share\colorschemes.xml
	
	# Install the built plugins
	SetOutPath $INSTDIR\plugins\GraphLayout
	File ..\plugins\GraphLayout\plugin.la
	File ..\plugins\GraphLayout\.libs\plugin-0.dll
	SetOutPath $INSTDIR\plugins\GraphAction
	File ..\plugins\GraphAction\plugin.la
	File ..\plugins\GraphAction\.libs\plugin-0.dll
	SetOutPath $INSTDIR\plugins\DataViewer
	File ..\plugins\DataViewer\plugin.la
	File ..\plugins\DataViewer\.libs\plugin-0.dll
	SetOutPath $INSTDIR\plugins\ggvis
	File ..\plugins\ggvis\plugin.la
	File ..\plugins\ggvis\.libs\plugin-0.dll
	SetOutPath $INSTDIR\plugins\VarCloud
	File ..\plugins\VarCloud\plugin.la
	File ..\plugins\VarCloud\.libs\plugin-0.dll
	SetOutPath $INSTDIR\plugins\DescribeDisplay
	File ..\plugins\DescribeDisplay\plugin.la
	File ..\plugins\DescribeDisplay\.libs\plugin-0.dll
	
	# Include the header files and libs for those building against GGobi (rggobi)
	SetOutPath $INSTDIR\dev\include\ggobi
	File ..\src\*.h
	File ..\src\GGStructSizes.c
	SetOutPath $INSTDIR\dev\lib
	File ..\src\.libs\libggobi.dll.a
	File ..\src\.libs\libggobi.la
	
	# Shortcut
  SetShellVarContext all
  SetOutPath $INSTDIR\data
	CreateShortCut "$DESKTOP\ggobi.lnk" "$INSTDIR\ggobi.exe" "" "$INSTDIR\ggobi.ico"

	Push $INSTDIR
	Call AddToPath
	
	WriteRegStr HKLM SOFTWARE\ggobi "InstallationDirectory" "$INSTDIR"
	
	# Set up for uninstallation
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ggobi" "DisplayName" "GGobi Interactive Graphics Platform"
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ggobi" "UninstallString" '"$INSTDIR\uninstall.exe"'
	WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ggobi" "NoModify" 1
	WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ggobi" "NoRepair" 1
	WriteUninstaller $INSTDIR\uninstall.exe
	
SectionEnd

Section "Uninstall"
	# Clean up registry
	DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ggobi"
  	DeleteRegKey HKLM SOFTWARE\ggobi
	# Remove from PATH
	Push $INSTDIR
	Call un.RemoveFromPath
	# Get rid of shortcut
  SetShellVarContext all
	Delete "$DESKTOP\ggobi.lnk"
	# Finally, get rid of our files
	RMDir /r "$INSTDIR"
SectionEnd