YAZ Runtime section (instead of yaz core)
[yaz-moved-to-github.git] / win / yaz.nsi
1 ; $Id: yaz.nsi,v 1.4 2002-03-16 17:37:40 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         SetOutPath $SMPROGRAMS\YAZ
38         CreateShortCut "$SMPROGRAMS\YAZ\YAZ Program Directory.lnk" \
39                  "$INSTDIR"
40         WriteINIStr "$SMPROGRAMS\YAZ\YAZ Home page.url" \
41               "InternetShortcut" "URL" "http://www.indexdata.dk/yaz/"
42         SetOutPath $INSTDIR
43         File LICENSE.txt
44         File ..\README
45         SetOutPath $INSTDIR
46         File /r ..\tab
47         SetOutPath $INSTDIR\ztest
48         File ..\ztest\dummy-records
49         File ..\ztest\dummy-grs
50         File ..\ztest\dummy-words
51 SectionEnd ; end of default section
52
53 Section "YAZ Runtime"
54         SectionIn 12
55         SetOutPath $INSTDIR\bin
56         File ..\bin\*.exe
57         File ..\bin\*.dll
58         SetOutPath $SMPROGRAMS\YAZ
59         CreateShortCut "$SMPROGRAMS\YAZ\YAZ Client.lnk" \
60                  "$INSTDIR\bin\yaz-client.exe"
61         SetOutPath $SMPROGRAMS\YAZ\Server
62         CreateShortCut "$SMPROGRAMS\YAZ\Server\Server on console on port 9999.lnk" \
63                  "$INSTDIR\bin\yaz-ztest.exe" '-w"$INSTDIR\ztest"'
64         CreateShortCut "$SMPROGRAMS\YAZ\Server\Install Z39.50 service on port 210.lnk" \
65                   "$INSTDIR\bin\yaz-ztest.exe" '-installa tcp:@:210'
66         CreateShortCut "$SMPROGRAMS\YAZ\Server\Remove Z39.50 service.lnk" \
67                  "$INSTDIR\bin\yaz-ztest.exe" '-remove'
68 SectionEnd
69
70 Section "YAZ Development"
71         SectionIn 12
72         SetOutPath $INSTDIR\include\yaz
73         File ..\include\yaz\*.h
74         SetOutPath $INSTDIR\lib
75         File ..\lib\*.lib
76 SectionEnd
77
78 Section "YAZ Documentation"
79         SectionIn 12
80         SetOutPath $INSTDIR
81         File /r ..\doc
82         SetOutPath $SMPROGRAMS\YAZ
83         CreateShortCut "$SMPROGRAMS\YAZ\HTML Documentation.lnk" \
84                  "$INSTDIR\doc\yaz.html"
85         CreateShortCut "$SMPROGRAMS\YAZ\PDF Documentaion.lnk" \
86                  "$INSTDIR\doc\yaz.pdf"
87 SectionEnd
88
89 Section "YAZ Source"
90         SectionIn 1
91         SetOutPath $INSTDIR\util
92         File ..\util\*.c
93         File ..\util\*.tcl
94         SetOutPath $INSTDIR\odr
95         File ..\odr\*.c
96         SetOutPath $INSTDIR\z39.50
97         File ..\z39.50\*.c
98         File ..\z39.50\*.asn
99         SetOutPath $INSTDIR\ill
100         File ..\ill\*.c
101         File ..\ill\*.asn
102         SetOutPath $INSTDIR\zutil
103         File ..\zutil\*.c
104         SetOutPath $INSTDIR\ccl
105         File ..\ccl\*.c
106         SetOutPath $INSTDIR\zoom
107         File ..\zoom\*.c
108         File ..\zoom\*.h
109         SetOutPath $INSTDIR\comstack
110         File ..\comstack\*.c
111         SetOutPath $INSTDIR\server
112         File ..\server\*.c
113         File ..\server\*.h
114         SetOutPath $INSTDIR\retrieval
115         File ..\retrieval\*.c
116         SetOutPath $INSTDIR\ztest
117         File ..\ztest\*.c
118         SetOutPath $INSTDIR\client
119         File ..\client\*.c
120         File ..\client\*.h
121         SetOutPath $INSTDIR\win
122         File makefile
123         File *.nsi
124         File *.rc
125         File *.h
126 SectionEnd
127
128 ; begin uninstall settings/section
129 UninstallText "This will uninstall YAZ ${VERSION} from your system"
130
131 Section Uninstall
132 ; add delete commands to delete whatever files/registry keys/etc you installed here.
133         Delete "$INSTDIR\uninst.exe"
134         DeleteRegKey HKLM "SOFTWARE\Index Data\YAZ"
135         DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\YAZ"
136         RMDir /r "$INSTDIR"
137         RMDir /r $SMPROGRAMS\YAZ
138 SectionEnd ; end of uninstall section
139
140 ; eof