Shortcuts to start/stop service
[yaz-moved-to-github.git] / win / yaz.nsi
1 ; $Id: yaz.nsi,v 1.3 2002-03-16 12:48:47 adam Exp $
2
3 !define VERSION "1.8.6"
4
5 Name "YAZ"
6 Caption "Index Data YAZ ${VERSION} Setup"
7 OutFile "yaz_${VERSION}.exe"
8
9 LicenseText "You must read the following license before installing:"
10 LicenseData license.txt
11
12 ComponentText "This will install the YAZ Toolkit on your computer:"
13 InstType "Full (w/ Source)"
14 InstType "Lite (w/o Source)"
15
16 ; Some default compiler settings (uncomment and change at will):
17 ; SetCompress auto ; (can be off or force)
18 ; SetDatablockOptimize on ; (can be off)
19 ; CRCCheck on ; (can be off)
20 ; AutoCloseWindow false ; (can be true for the window go away automatically at end)
21 ; ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
22 ; SetDateSave off ; (can be on to have files restored to their orginal date)
23
24 InstallDir "$PROGRAMFILES\YAZ"
25 InstallDirRegKey HKLM "SOFTWARE\Index Data\YAZ" ""
26 DirShow show ; (make this hide to not let the user change it)
27 DirText "Select the directory to install YAZ in:"
28
29 Section "" ; (default section)
30         SetOutPath "$INSTDIR"
31         ; add files / whatever that need to be installed here.
32         WriteRegStr HKLM "SOFTWARE\Index Data\YAZ" "" "$INSTDIR"
33         WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YAZ" "DisplayName" "YAZ ${VERSION} (remove only)"
34         WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YAZ" "UninstallString" '"$INSTDIR\uninst.exe"'
35         ; write out uninstaller
36         WriteUninstaller "$INSTDIR\uninst.exe"
37 SectionEnd ; end of default section
38
39 Section "yaz core (required)"
40         SectionIn 12
41         SetOutPath $INSTDIR
42         File LICENSE.txt
43         File ..\README
44         SetOutPath $INSTDIR\bin
45         File ..\bin\*.exe
46         File ..\bin\*.dll
47         SetOutPath $INSTDIR\ztest
48         File ..\ztest\dummy-records
49         File ..\ztest\dummy-grs
50         File ..\ztest\dummy-words
51         SetOutPath $INSTDIR
52         File /r ..\tab
53         SetOutPath $SMPROGRAMS\YAZ
54         CreateShortCut "$SMPROGRAMS\YAZ\YAZ Program Directory.lnk" \
55                  "$INSTDIR"
56         CreateShortCut "$SMPROGRAMS\YAZ\YAZ Client.lnk" \
57                  "$INSTDIR\bin\yaz-client.exe"
58         SetOutPath $SMPROGRAMS\YAZ\Server
59         CreateShortCut "$SMPROGRAMS\YAZ\Server\Server on console on port 9999.lnk" \
60                  "$INSTDIR\bin\yaz-ztest.exe" '-w"$INSTDIR\ztest"'
61         CreateShortCut "$SMPROGRAMS\YAZ\Server\Install Z39.50 service on port 210.lnk" \
62                   "$INSTDIR\bin\yaz-ztest.exe" '-installa tcp:@:210'
63         CreateShortCut "$SMPROGRAMS\YAZ\Server\Remove Z39.50 service.lnk" \
64                  "$INSTDIR\bin\yaz-ztest.exe" '-remove'
65         WriteINIStr "$SMPROGRAMS\YAZ\YAZ Home page.url" \
66               "InternetShortcut" "URL" "http://www.indexdata.dk/yaz/"
67 SectionEnd
68
69 Section "yaz development"
70         SectionIn 12
71         SetOutPath $INSTDIR\include\yaz
72         File ..\include\yaz\*.h
73         SetOutPath $INSTDIR\lib
74         File ..\lib\*.lib
75 SectionEnd
76
77 Section "yaz documentation"
78         SectionIn 12
79         SetOutPath $INSTDIR
80         File /r ..\doc
81         SetOutPath $SMPROGRAMS\YAZ
82         CreateShortCut "$SMPROGRAMS\YAZ\HTML Documentation.lnk" \
83                  "$INSTDIR\doc\yaz.html"
84         CreateShortCut "$SMPROGRAMS\YAZ\PDF Documentaion.lnk" \
85                  "$INSTDIR\doc\yaz.pdf"
86 SectionEnd
87
88 Section "yaz source"
89         SectionIn 1
90         SetOutPath $INSTDIR\util
91         File ..\util\*.c
92         File ..\util\*.tcl
93         SetOutPath $INSTDIR\odr
94         File ..\odr\*.c
95         SetOutPath $INSTDIR\z39.50
96         File ..\z39.50\*.c
97         File ..\z39.50\*.asn
98         SetOutPath $INSTDIR\ill
99         File ..\ill\*.c
100         File ..\ill\*.asn
101         SetOutPath $INSTDIR\zutil
102         File ..\zutil\*.c
103         SetOutPath $INSTDIR\ccl
104         File ..\ccl\*.c
105         SetOutPath $INSTDIR\zoom
106         File ..\zoom\*.c
107         File ..\zoom\*.h
108         SetOutPath $INSTDIR\comstack
109         File ..\comstack\*.c
110         SetOutPath $INSTDIR\server
111         File ..\server\*.c
112         File ..\server\*.h
113         SetOutPath $INSTDIR\retrieval
114         File ..\retrieval\*.c
115         SetOutPath $INSTDIR\ztest
116         File ..\ztest\*.c
117         SetOutPath $INSTDIR\client
118         File ..\client\*.c
119         File ..\client\*.h
120         SetOutPath $INSTDIR\win
121         File makefile
122         File *.nsi
123         File *.rc
124         File *.h
125 SectionEnd
126
127 ; begin uninstall settings/section
128 UninstallText "This will uninstall YAZ ${VERSION} from your system"
129
130 Section Uninstall
131 ; add delete commands to delete whatever files/registry keys/etc you installed here.
132         Delete "$INSTDIR\uninst.exe"
133         DeleteRegKey HKLM "SOFTWARE\Index Data\YAZ"
134         DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\YAZ"
135         RMDir /r "$INSTDIR"
136         RMDir /r $SMPROGRAMS\YAZ
137 SectionEnd ; end of uninstall section
138
139 ; eof