-
Notifications
You must be signed in to change notification settings - Fork 4
/
winInstaller.nsi.old
259 lines (238 loc) · 10.5 KB
/
winInstaller.nsi.old
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
; Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "GlycoWorkbench"
!define PRODUCT_VERSION "1.3.0.0"
!define PRODUCT_PUBLISHER "Eurocarb"
!define PRODUCT_WEB_SITE "http://www.glycoworkbench.org"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\GlycoWorkbench.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
; Language Selection Dialog Settings
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "LICENSE.txt"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Start menu page
var ICONS_GROUP
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "GlycoWorkbench"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\GlycoWorkbench.exe"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README.txt"
!insertmacro MUI_PAGE_FINISH
; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
; Language files
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "German"
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Setup.exe"
InstallDir "$PROGRAMFILES\GlycoWorkbench"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
Section "MainSection" SEC01
SetOutPath "$INSTDIR"
SetOverwrite try
File "dist-zip\gwb\GlycoWorkbench.bmp"
File "dist-zip\gwb\GlycoWorkbench.exe"
File "dist-zip\gwb\GlycoWorkbench.ico"
File "dist-zip\gwb\gwb_icon.bmp"
SetOutPath "$INSTDIR\lib"
File "dist-zip\gwb\lib\avalon-framework-api-4.3.1.jar"
File "dist-zip\gwb\lib\batik-anim-1.7.jar"
File "dist-zip\gwb\lib\batik-awt-util-1.6-1.jar"
File "dist-zip\gwb\lib\batik-awt-util-1.7.jar"
File "dist-zip\gwb\lib\batik-bridge-1.6-1.jar"
File "dist-zip\gwb\lib\batik-css-1.6-1.jar"
File "dist-zip\gwb\lib\batik-css-1.7.jar"
File "dist-zip\gwb\lib\batik-dom-1.6-1.jar"
File "dist-zip\gwb\lib\batik-dom-1.7.jar"
File "dist-zip\gwb\lib\batik-ext-1.6-1.jar"
File "dist-zip\gwb\lib\batik-ext-1.7.jar"
File "dist-zip\gwb\lib\batik-extension-1.7.jar"
File "dist-zip\gwb\lib\batik-gui-util-1.6-1.jar"
File "dist-zip\gwb\lib\batik-gvt-1.6-1.jar"
File "dist-zip\gwb\lib\batik-gvt-1.7.jar"
File "dist-zip\gwb\lib\batik-parser-1.6-1.jar"
File "dist-zip\gwb\lib\batik-parser-1.7.jar"
File "dist-zip\gwb\lib\batik-script-1.6-1.jar"
File "dist-zip\gwb\lib\batik-svg-dom-1.6-1.jar"
File "dist-zip\gwb\lib\batik-svg-dom-1.7.jar"
File "dist-zip\gwb\lib\batik-svggen-1.6-1.jar"
File "dist-zip\gwb\lib\batik-svggen-1.7.jar"
File "dist-zip\gwb\lib\batik-swing-1.6-1.jar"
File "dist-zip\gwb\lib\batik-transcoder-1.6.jar"
File "dist-zip\gwb\lib\batik-transcoder-1.7.jar"
File "dist-zip\gwb\lib\batik-util-1.6-1.jar"
File "dist-zip\gwb\lib\batik-util-1.7.jar"
File "dist-zip\gwb\lib\batik-xml-1.6-1.jar"
File "dist-zip\gwb\lib\batik-xml-1.7.jar"
File "dist-zip\gwb\lib\commons-codec-1.3.jar"
File "dist-zip\gwb\lib\commons-io-1.3.1.jar"
File "dist-zip\gwb\lib\commons-logging-1.1.1.jar"
File "dist-zip\gwb\lib\commons-logging-api-1.0.4.jar"
File "dist-zip\gwb\lib\DJNativeSwing-SWT.jar"
File "dist-zip\gwb\lib\DJNativeSwing.jar"
File "dist-zip\gwb\lib\eurocarb-glycanbuilder-1.0rc.jar"
File "dist-zip\gwb\lib\eurocarb-glycoworkbench-1.0rc.jar"
File "dist-zip\gwb\lib\eurocarb-molecularframework-1.0rc.jar"
File "dist-zip\gwb\lib\eurocarb-resourcesdb-1.0rc.jar"
File "dist-zip\gwb\lib\fop-0.95.jar"
File "dist-zip\gwb\lib\javahelp-2.0.02.jar"
File "dist-zip\gwb\lib\jaxen-1.1-beta-9.jar"
File "dist-zip\gwb\lib\jcommon-1.0.12.jar"
File "dist-zip\gwb\lib\jdom-1.0.jar"
File "dist-zip\gwb\lib\jfreechart-1.0.9.jar"
File "dist-zip\gwb\lib\jrap-jdk15-1.0.jar"
File "dist-zip\gwb\lib\jsr107cache-1.0.jar"
File "dist-zip\gwb\lib\log4j-1.2.12.jar"
File "dist-zip\gwb\lib\ProteomeCommons.org-IO-1.0.jar"
File "dist-zip\gwb\lib\ProteomeCommons.org-IO-T2D-1.0.jar"
File "dist-zip\gwb\lib\ProteomeCommons.org-IO-Waters-1.0.jar"
File "dist-zip\gwb\lib\ProteomeCommons.org-JAF-1.0.jar"
File "dist-zip\gwb\lib\ProteomeCommons.org-Tranche-1.0.jar"
File "dist-zip\gwb\lib\swing-layout-1.0.jar"
File "dist-zip\gwb\lib\win-swt.jar"
File "dist-zip\gwb\lib\xercesImpl-2.8.1.jar"
File "dist-zip\gwb\lib\xml-apis-ext-1.3.04.jar"
File "dist-zip\gwb\lib\xmlgraphics-commons-1.3.1.jar"
SetOutPath "$INSTDIR"
File "dist-zip\gwb\LICENSE.txt"
File "dist-zip\gwb\README.txt"
; Shortcuts
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\GlycoWorkbench.lnk" "$INSTDIR\GlycoWorkbench.exe"
CreateShortCut "$DESKTOP\GlycoWorkbench.lnk" "$INSTDIR\GlycoWorkbench.exe"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section -AdditionalIcons
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\GlycoWorkbench.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\GlycoWorkbench.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd
Function un.onUninstSuccess
HideWindow
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
FunctionEnd
Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
Abort
FunctionEnd
Section Uninstall
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\README.txt"
Delete "$INSTDIR\LICENSE.txt"
Delete "$INSTDIR\lib\xmlgraphics-commons-1.3.1.jar"
Delete "$INSTDIR\lib\xml-apis-ext-1.3.04.jar"
Delete "$INSTDIR\lib\xercesImpl-2.8.1.jar"
Delete "$INSTDIR\lib\win-swt.jar"
Delete "$INSTDIR\lib\swing-layout-1.0.jar"
Delete "$INSTDIR\lib\ProteomeCommons.org-Tranche-1.0.jar"
Delete "$INSTDIR\lib\ProteomeCommons.org-JAF-1.0.jar"
Delete "$INSTDIR\lib\ProteomeCommons.org-IO-Waters-1.0.jar"
Delete "$INSTDIR\lib\ProteomeCommons.org-IO-T2D-1.0.jar"
Delete "$INSTDIR\lib\ProteomeCommons.org-IO-1.0.jar"
Delete "$INSTDIR\lib\log4j-1.2.12.jar"
Delete "$INSTDIR\lib\jsr107cache-1.0.jar"
Delete "$INSTDIR\lib\jrap-jdk15-1.0.jar"
Delete "$INSTDIR\lib\jfreechart-1.0.9.jar"
Delete "$INSTDIR\lib\jdom-1.0.jar"
Delete "$INSTDIR\lib\jcommon-1.0.12.jar"
Delete "$INSTDIR\lib\jaxen-1.1-beta-9.jar"
Delete "$INSTDIR\lib\javahelp-2.0.02.jar"
Delete "$INSTDIR\lib\fop-0.95.jar"
Delete "$INSTDIR\lib\eurocarb-resourcesdb-1.0rc.jar"
Delete "$INSTDIR\lib\eurocarb-molecularframework-1.0rc.jar"
Delete "$INSTDIR\lib\eurocarb-glycoworkbench-1.0rc.jar"
Delete "$INSTDIR\lib\eurocarb-glycanbuilder-1.0rc.jar"
Delete "$INSTDIR\lib\DJNativeSwing.jar"
Delete "$INSTDIR\lib\DJNativeSwing-SWT.jar"
Delete "$INSTDIR\lib\commons-logging-api-1.0.4.jar"
Delete "$INSTDIR\lib\commons-logging-1.1.1.jar"
Delete "$INSTDIR\lib\commons-io-1.3.1.jar"
Delete "$INSTDIR\lib\commons-codec-1.3.jar"
Delete "$INSTDIR\lib\batik-xml-1.7.jar"
Delete "$INSTDIR\lib\batik-xml-1.6-1.jar"
Delete "$INSTDIR\lib\batik-util-1.7.jar"
Delete "$INSTDIR\lib\batik-util-1.6-1.jar"
Delete "$INSTDIR\lib\batik-transcoder-1.7.jar"
Delete "$INSTDIR\lib\batik-transcoder-1.6.jar"
Delete "$INSTDIR\lib\batik-swing-1.6-1.jar"
Delete "$INSTDIR\lib\batik-svggen-1.7.jar"
Delete "$INSTDIR\lib\batik-svggen-1.6-1.jar"
Delete "$INSTDIR\lib\batik-svg-dom-1.7.jar"
Delete "$INSTDIR\lib\batik-svg-dom-1.6-1.jar"
Delete "$INSTDIR\lib\batik-script-1.6-1.jar"
Delete "$INSTDIR\lib\batik-parser-1.7.jar"
Delete "$INSTDIR\lib\batik-parser-1.6-1.jar"
Delete "$INSTDIR\lib\batik-gvt-1.7.jar"
Delete "$INSTDIR\lib\batik-gvt-1.6-1.jar"
Delete "$INSTDIR\lib\batik-gui-util-1.6-1.jar"
Delete "$INSTDIR\lib\batik-extension-1.7.jar"
Delete "$INSTDIR\lib\batik-ext-1.7.jar"
Delete "$INSTDIR\lib\batik-ext-1.6-1.jar"
Delete "$INSTDIR\lib\batik-dom-1.7.jar"
Delete "$INSTDIR\lib\batik-dom-1.6-1.jar"
Delete "$INSTDIR\lib\batik-css-1.7.jar"
Delete "$INSTDIR\lib\batik-css-1.6-1.jar"
Delete "$INSTDIR\lib\batik-bridge-1.6-1.jar"
Delete "$INSTDIR\lib\batik-awt-util-1.7.jar"
Delete "$INSTDIR\lib\batik-awt-util-1.6-1.jar"
Delete "$INSTDIR\lib\batik-anim-1.7.jar"
Delete "$INSTDIR\lib\avalon-framework-api-4.3.1.jar"
Delete "$INSTDIR\gwb_icon.bmp"
Delete "$INSTDIR\GlycoWorkbench.ico"
Delete "$INSTDIR\GlycoWorkbench.exe"
Delete "$INSTDIR\GlycoWorkbench.bmp"
Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
Delete "$DESKTOP\GlycoWorkbench.lnk"
Delete "$SMPROGRAMS\$ICONS_GROUP\GlycoWorkbench.lnk"
RMDir "$SMPROGRAMS\$ICONS_GROUP"
RMDir "$INSTDIR\lib"
RMDir "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
SetAutoClose true
SectionEnd