1cdf0e10cSrcweir!define PRODUCT_NAME "PRODUCTNAMEPLACEHOLDER"
2cdf0e10cSrcweir!define PRODUCT_VERSION "PRODUCTVERSIONPLACEHOLDER"
3cdf0e10cSrcweir!define PRODUCT_PUBLISHER "PUBLISHERPLACEHOLDER"
4cdf0e10cSrcweir!define PRODUCT_WEB_SITE "WEBSITEPLACEHOLDER"
5cdf0e10cSrcweir
6b45fc196Smseidel; Product Information
7b45fc196SmseidelVIAddVersionKey ProductName "Apache PRODUCTNAMEPLACEHOLDER"
82088a433SmseidelVIAddVersionKey CompanyName "Apache Software Foundation"
9*f0795d1bSmseidelVIAddVersionKey LegalCopyright "(c) 2012-2024 The Apache Software Foundation"
10b45fc196SmseidelVIAddVersionKey FileDescription "Apache PRODUCTNAMEPLACEHOLDER Installer"
11b45fc196SmseidelVIAddVersionKey ProductVersion "PRODUCTVERSIONPLACEHOLDER"
12e614db4aSmseidelVIProductVersion "4.2.9824.500"
13b45fc196Smseidel
14b871de36Sarielch; Enable Unicode
15b871de36SarielchUnicode true
16b871de36Sarielch
172088a433Smseidel; Compression options
184df3a119SmseidelCRCCheck on
19cdf0e10cSrcweirSetCompressor zlib
20cdf0e10cSrcweir
21cdf0e10cSrcweir; MUI 1.67 compatible ------
22cdf0e10cSrcweir!include "MUI.nsh"
23cdf0e10cSrcweir
24cdf0e10cSrcweirFunction .onInit
25cdf0e10cSrcweir
26cdf0e10cSrcweir  Call GetParameters
27cdf0e10cSrcweir  Pop $1
28cdf0e10cSrcweir  ;MessageBox MB_OK "$1"
29cdf0e10cSrcweir
30cdf0e10cSrcweir  Push $1
31cdf0e10cSrcweir  Push "/HELP="
32cdf0e10cSrcweir  Call GetOptions
33cdf0e10cSrcweir  Pop $2
34cdf0e10cSrcweir  ;MessageBox MB_OK "HELP: $2"
35cdf0e10cSrcweir
36cdf0e10cSrcweir  StrCmp $2 "ON" showhelp nohelp
37cdf0e10cSrcweir  showhelp:
38cdf0e10cSrcweir    MessageBox MB_OK|MB_ICONINFORMATION \
39cdf0e10cSrcweir    "DOWNLOADNAMEPLACEHOLDER options: $\n $\n \
40cdf0e10cSrcweir    /S : Silent installation $\n \
41cdf0e10cSrcweir    /D=<path> : NSIS installation directory (must be the last option!) $\n \
42cdf0e10cSrcweir    /EXTRACTONLY=ON : NSIS only extracts the PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER installation set $\n \
43cdf0e10cSrcweir    /INSTALLLOCATION=<path> : PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER installation directory $\n \
44cdf0e10cSrcweir    /POSTREMOVE=ON : Removes the unpacked installation set after PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER installation $\n \
45cdf0e10cSrcweir    /INSTALLJAVA=ON : Installs JRE located in sub directory java, if exists $\n \
46cdf0e10cSrcweir    /GUILEVEL=<guilevel> : Setting Windows Installer GUI level: qr, qb, qn, qf, ... $\n \
47cdf0e10cSrcweir    /PARAM1=$\"key=value$\" : Flexible parameter 1. Example: /PARAM1=$\"INSTALLLEVEL=70$\" $\n \
48cdf0e10cSrcweir    /PARAM2=$\"key=value$\" : Flexible parameter 2. $\n \
49cdf0e10cSrcweir    /PARAM3=$\"key=value$\" : Flexible parameter 3. $\n \
50cdf0e10cSrcweir    /HELP=ON : Shows this help $\n"
51cdf0e10cSrcweir    Quit
52cdf0e10cSrcweir    GoTo onInitDone
534df3a119Smseidel
54cdf0e10cSrcweir  nohelp:
55cdf0e10cSrcweir
56cdf0e10cSrcweir  StrCmp $INSTDIR "" pathnotset pathset
57cdf0e10cSrcweir  pathnotset:
58cdf0e10cSrcweir
59cdf0e10cSrcweir  IfSilent onInitSilent onInitNoSilent
60cdf0e10cSrcweir
61cdf0e10cSrcweir  onInitSilent:
62cdf0e10cSrcweir    StrCpy $INSTDIR "$TEMP\PRODUCTPATHPLACEHOLDER Installation Files"
63cdf0e10cSrcweir  GoTo onInitDone
64cdf0e10cSrcweir
65cdf0e10cSrcweir  onInitNoSilent:
66cdf0e10cSrcweir    StrCpy $INSTDIR "$DESKTOP\PRODUCTPATHPLACEHOLDER Installation Files"
67cdf0e10cSrcweir  GoTo onInitDone
68cdf0e10cSrcweir
69cdf0e10cSrcweir  onInitDone:
70cdf0e10cSrcweir  pathset:
714df3a119Smseidel
72cdf0e10cSrcweirFunctionEnd
73cdf0e10cSrcweir
74cdf0e10cSrcweirFunction GetParameters
75cdf0e10cSrcweir
76cdf0e10cSrcweir  Push $R0
77cdf0e10cSrcweir  Push $R1
78cdf0e10cSrcweir  Push $R2
79cdf0e10cSrcweir  Push $R3
80cdf0e10cSrcweir
81cdf0e10cSrcweir  StrCpy $R2 1
82cdf0e10cSrcweir
83cdf0e10cSrcweir  StrLen $R3 $CMDLINE
84cdf0e10cSrcweir
85cdf0e10cSrcweir  ;Check for quote or space
86cdf0e10cSrcweir  StrCpy $R0 $CMDLINE $R2
87cdf0e10cSrcweir
88cdf0e10cSrcweir  StrCmp $R0 '"' 0 +3
89cdf0e10cSrcweir    StrCpy $R1 '"'
90cdf0e10cSrcweir    Goto loop
91cdf0e10cSrcweir  StrCpy $R1 " "
92cdf0e10cSrcweir
93cdf0e10cSrcweir  loop:
94cdf0e10cSrcweir    IntOp $R2 $R2 + 1
95cdf0e10cSrcweir    StrCpy $R0 $CMDLINE 1 $R2
96cdf0e10cSrcweir    StrCmp $R0 $R1 get
97cdf0e10cSrcweir    StrCmp $R2 $R3 get
98cdf0e10cSrcweir    Goto loop
99cdf0e10cSrcweir
100cdf0e10cSrcweir  get:
101cdf0e10cSrcweir    IntOp $R2 $R2 + 1
102cdf0e10cSrcweir    StrCpy $R0 $CMDLINE 1 $R2
103cdf0e10cSrcweir    StrCmp $R0 " " get
104cdf0e10cSrcweir    StrCpy $R0 $CMDLINE "" $R2
105cdf0e10cSrcweir
106cdf0e10cSrcweir  Pop $R3
107cdf0e10cSrcweir  Pop $R2
108cdf0e10cSrcweir  Pop $R1
109cdf0e10cSrcweir  Exch $R0
110cdf0e10cSrcweir
111cdf0e10cSrcweirFunctionEnd
112cdf0e10cSrcweir
113cdf0e10cSrcweirFunction GetOptions
1144df3a119Smseidel
115cdf0e10cSrcweir    Exch $1
116cdf0e10cSrcweir    Exch
117cdf0e10cSrcweir    Exch $0
118cdf0e10cSrcweir    Exch
119cdf0e10cSrcweir    Push $2
120cdf0e10cSrcweir    Push $3
121cdf0e10cSrcweir    Push $4
122cdf0e10cSrcweir    Push $5
123cdf0e10cSrcweir    Push $6
124cdf0e10cSrcweir    Push $7
1254df3a119Smseidel
126cdf0e10cSrcweir    StrCpy $2 $1 '' 1
127cdf0e10cSrcweir    StrCpy $1 $1 1
128cdf0e10cSrcweir    StrLen $3 $2
129cdf0e10cSrcweir    StrCpy $7 0
1304df3a119Smseidel
131cdf0e10cSrcweir    begin:
132cdf0e10cSrcweir    StrCpy $4 -1
133cdf0e10cSrcweir    StrCpy $6 ''
1344df3a119Smseidel
135cdf0e10cSrcweir    quote:
136cdf0e10cSrcweir    IntOp $4 $4 + 1
137cdf0e10cSrcweir    StrCpy $5 $0 1 $4
138cdf0e10cSrcweir    StrCmp $5$7 '0' notfound
139cdf0e10cSrcweir    StrCmp $5 '' trimright
140cdf0e10cSrcweir    StrCmp $5 '"' 0 +7
141cdf0e10cSrcweir    StrCmp $6 '' 0 +3
142cdf0e10cSrcweir    StrCpy $6 '"'
143cdf0e10cSrcweir    goto quote
144cdf0e10cSrcweir    StrCmp $6 '"' 0 +3
145cdf0e10cSrcweir    StrCpy $6 ''
146cdf0e10cSrcweir    goto quote
147cdf0e10cSrcweir    StrCmp $5 `'` 0 +7
148cdf0e10cSrcweir    StrCmp $6 `` 0 +3
149cdf0e10cSrcweir    StrCpy $6 `'`
150cdf0e10cSrcweir    goto quote
151cdf0e10cSrcweir    StrCmp $6 `'` 0 +3
152cdf0e10cSrcweir    StrCpy $6 ``
153cdf0e10cSrcweir    goto quote
154cdf0e10cSrcweir    StrCmp $5 '`' 0 +7
155cdf0e10cSrcweir    StrCmp $6 '' 0 +3
156cdf0e10cSrcweir    StrCpy $6 '`'
157cdf0e10cSrcweir    goto quote
158cdf0e10cSrcweir    StrCmp $6 '`' 0 +3
159cdf0e10cSrcweir    StrCpy $6 ''
160cdf0e10cSrcweir    goto quote
161cdf0e10cSrcweir    StrCmp $6 '"' quote
162cdf0e10cSrcweir    StrCmp $6 `'` quote
163cdf0e10cSrcweir    StrCmp $6 '`' quote
164cdf0e10cSrcweir    StrCmp $5 $1 0 quote
165cdf0e10cSrcweir    StrCmp $7 0 trimleft trimright
1664df3a119Smseidel
167cdf0e10cSrcweir    trimleft:
168cdf0e10cSrcweir    IntOp $4 $4 + 1
169cdf0e10cSrcweir    StrCpy $5 $0 $3 $4
170cdf0e10cSrcweir    StrCmp $5 '' notfound
171cdf0e10cSrcweir    StrCmp $5 $2 0 quote
172cdf0e10cSrcweir    IntOp $4 $4 + $3
173cdf0e10cSrcweir    StrCpy $0 $0 '' $4
174cdf0e10cSrcweir    StrCpy $4 $0 1
175cdf0e10cSrcweir    StrCmp $4 ' ' 0 +3
176cdf0e10cSrcweir    StrCpy $0 $0 '' 1
177cdf0e10cSrcweir    goto -3
178cdf0e10cSrcweir    StrCpy $7 1
179cdf0e10cSrcweir    goto begin
1804df3a119Smseidel
181cdf0e10cSrcweir    trimright:
182cdf0e10cSrcweir    StrCpy $0 $0 $4
183cdf0e10cSrcweir    StrCpy $4 $0 1 -1
184cdf0e10cSrcweir    StrCmp $4 ' ' 0 +3
185cdf0e10cSrcweir    StrCpy $0 $0 -1
186cdf0e10cSrcweir    goto -3
187cdf0e10cSrcweir    StrCpy $3 $0 1
188cdf0e10cSrcweir    StrCpy $4 $0 1 -1
189cdf0e10cSrcweir    StrCmp $3 $4 0 end
190cdf0e10cSrcweir    StrCmp $3 '"' +3
191cdf0e10cSrcweir    StrCmp $3 `'` +2
192cdf0e10cSrcweir    StrCmp $3 '`' 0 end
193cdf0e10cSrcweir    StrCpy $0 $0 -1 1
194cdf0e10cSrcweir    goto end
1954df3a119Smseidel
196cdf0e10cSrcweir    notfound:
197cdf0e10cSrcweir    StrCpy $0 ''
1984df3a119Smseidel
199cdf0e10cSrcweir    end:
200cdf0e10cSrcweir    Pop $7
201cdf0e10cSrcweir    Pop $6
202cdf0e10cSrcweir    Pop $5
203cdf0e10cSrcweir    Pop $4
204cdf0e10cSrcweir    Pop $3
205cdf0e10cSrcweir    Pop $2
206cdf0e10cSrcweir    Pop $1
207cdf0e10cSrcweir    Exch $0
2084df3a119Smseidel
209cdf0e10cSrcweirFunctionEnd
210cdf0e10cSrcweir
211cdf0e10cSrcweir; MUI Settings
212cdf0e10cSrcweir!define MUI_HEADERIMAGE
213cdf0e10cSrcweir!define MUI_HEADERIMAGE_RIGHT
214cdf0e10cSrcweir!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
215cdf0e10cSrcweir!define MUI_HEADERIMAGE_BITMAP BANNERBMPPLACEHOLDER
216cdf0e10cSrcweir!define MUI_WELCOMEFINISHPAGE_BITMAP WELCOMEBMPPLACEHOLDER
217cdf0e10cSrcweir!define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
218cdf0e10cSrcweir!define MUI_WELCOMEPAGE_TITLE_3LINES
219cdf0e10cSrcweir!define MUI_ABORTWARNING
220cdf0e10cSrcweir!define MUI_ICON "SETUPICOPLACEHOLDER"
221cdf0e10cSrcweir
222cdf0e10cSrcweir; Welcome page
223cdf0e10cSrcweir!insertmacro MUI_PAGE_WELCOME
224cdf0e10cSrcweir!insertmacro MUI_PAGE_DIRECTORY
225cdf0e10cSrcweir!insertmacro MUI_PAGE_INSTFILES
226cdf0e10cSrcweir
227b871de36Sarielch!macro MUI_LANGUAGE_PACK LANGUAGE
228b871de36Sarielch  !verbose push
229b871de36Sarielch  !verbose ${MUI_VERBOSE}
230b871de36Sarielch  !insertmacro MUI_INSERT
231b871de36Sarielch  LoadLanguageFile "NSISPATHPLACEHOLDER\${LANGUAGE}_pack.nlf"
232b871de36Sarielch  ;Set default language file for MUI and backup user setting
233b871de36Sarielch  !ifdef LANGFILE_DEFAULT
234b871de36Sarielch    !define MUI_LANGFILE_DEFAULT_TEMP "${LANGFILE_DEFAULT}"
235b871de36Sarielch    !undef LANGFILE_DEFAULT
236b871de36Sarielch  !endif
237b871de36Sarielch  !define LANGFILE_DEFAULT "${NSISDIR}\Contrib\Language files\English.nsh"
238b871de36Sarielch  ;Include language file
239b871de36Sarielch  !insertmacro LANGFILE_INCLUDE "NSISPATHPLACEHOLDER\${LANGUAGE}_pack.nsh"
240b871de36Sarielch  ;Restore user setting for default language file
241b871de36Sarielch  !undef LANGFILE_DEFAULT
242b871de36Sarielch  !ifdef MUI_LANGFILE_DEFAULT_TEMP
243b871de36Sarielch    !define LANGFILE_DEFAULT "${MUI_LANGFILE_DEFAULT}"
244b871de36Sarielch  !endif
2454df3a119Smseidel  ;Add language to list of languages for selection dialog
246b871de36Sarielch  !ifndef MUI_LANGDLL_LANGUAGES
247b871de36Sarielch   !define MUI_LANGDLL_LANGUAGES "'${LANGFILE_${LANGUAGE}_NAME}' '${LANG_${LANGUAGE}}' "
248b871de36Sarielch    !define MUI_LANGDLL_LANGUAGES_CP "'${LANGFILE_${LANGUAGE}_NAME}' '${LANG_${LANGUAGE}}' '${LANG_${LANGUAGE}_CP}' "
249b871de36Sarielch  !else
250b871de36Sarielch    !ifdef MUI_LANGDLL_LANGUAGES_TEMP
251b871de36Sarielch      !undef MUI_LANGDLL_LANGUAGES_TEMP
252b871de36Sarielch    !endif
253b871de36Sarielch    !define MUI_LANGDLL_LANGUAGES_TEMP "${MUI_LANGDLL_LANGUAGES}"
254b871de36Sarielch    !undef MUI_LANGDLL_LANGUAGES
255b871de36Sarielch	!ifdef MUI_LANGDLL_LANGUAGES_CP_TEMP
256b871de36Sarielch      !undef MUI_LANGDLL_LANGUAGES_CP_TEMP
257b871de36Sarielch    !endif
258b871de36Sarielch    !define MUI_LANGDLL_LANGUAGES_CP_TEMP "${MUI_LANGDLL_LANGUAGES_CP}"
259b871de36Sarielch    !undef MUI_LANGDLL_LANGUAGES_CP
260b871de36Sarielch    !define MUI_LANGDLL_LANGUAGES "'${LANGFILE_${LANGUAGE}_NAME}' '${LANG_${LANGUAGE}}' ${MUI_LANGDLL_LANGUAGES_TEMP}"
261b871de36Sarielch    !define MUI_LANGDLL_LANGUAGES_CP "'${LANGFILE_${LANGUAGE}_NAME}' '${LANG_${LANGUAGE}}' '${LANG_${LANGUAGE}_CP}' ${MUI_LANGDLL_LANGUAGES_CP_TEMP}"
262b871de36Sarielch  !endif
263b871de36Sarielch  !verbose pop
264b871de36Sarielch!macroend
265cdf0e10cSrcweir
266cdf0e10cSrcweir; Language files
267cdf0e10cSrcweirALLLANGUAGESPLACEHOLDER
268cdf0e10cSrcweir
269cdf0e10cSrcweir; Reserve files
270cdf0e10cSrcweir;!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
271cdf0e10cSrcweir
272cdf0e10cSrcweir; MUI end ------
273cdf0e10cSrcweir
274cdf0e10cSrcweirName "PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER"
275cdf0e10cSrcweirOutFile "OUTPUTDIRPLACEHOLDER\DOWNLOADNAMEPLACEHOLDER"
276cdf0e10cSrcweir; InstallDir "$DESKTOP\PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER Installation Files"
277cdf0e10cSrcweir; ShowInstDetails show
278cdf0e10cSrcweir
279cdf0e10cSrcweirSection "MainSection" SEC01
280cdf0e10cSrcweirALLFILESPLACEHOLDER
281cdf0e10cSrcweirSectionEnd
282cdf0e10cSrcweir
283cdf0e10cSrcweirSection -Post
284cdf0e10cSrcweir
285cdf0e10cSrcweir  StrCpy $R9 "false"
2864df3a119Smseidel
287cdf0e10cSrcweir  Call GetParameters
288cdf0e10cSrcweir  Pop $1
289cdf0e10cSrcweir
290cdf0e10cSrcweir  Push $1
291cdf0e10cSrcweir  Push "/EXTRACTONLY="
292cdf0e10cSrcweir  Call GetOptions
293cdf0e10cSrcweir  Pop $2
294cdf0e10cSrcweir  ;MessageBox MB_OK "EXTRACTONLY: $2"
295cdf0e10cSrcweir
296cdf0e10cSrcweir  StrCmp $2 "ON" onPostDone callsetup
297cdf0e10cSrcweir  callsetup:
2984df3a119Smseidel
299cdf0e10cSrcweir  Push $1
300cdf0e10cSrcweir  Push "/INSTALLLOCATION="
301cdf0e10cSrcweir  Call GetOptions
302cdf0e10cSrcweir  Pop $2
303cdf0e10cSrcweir  ;MessageBox MB_OK "INSTALLLOCATION: $2"
304cdf0e10cSrcweir
305cdf0e10cSrcweir  StrCmp $2 "" installnotset installset
306cdf0e10cSrcweir  installset:
307cdf0e10cSrcweir    StrCpy $3 'INSTALLLOCATION="$2"'
308cdf0e10cSrcweir  installnotset:
309cdf0e10cSrcweir
310cdf0e10cSrcweir  Push $1
311cdf0e10cSrcweir  Push "/INSTALLJAVA="
312cdf0e10cSrcweir  Call GetOptions
313cdf0e10cSrcweir  Pop $2
314cdf0e10cSrcweir  ;MessageBox MB_OK "INSTALLJAVA: $2"
315cdf0e10cSrcweir
3164df3a119Smseidel  StrCmp $2 "ON" setinstalljava setdontinstalljava
317cdf0e10cSrcweir  setinstalljava:
318cdf0e10cSrcweir    StrCpy $R9 "true"
319cdf0e10cSrcweir  setdontinstalljava:
320cdf0e10cSrcweir
321cdf0e10cSrcweir  Push $1
322cdf0e10cSrcweir  Push "/GUILEVEL="
323cdf0e10cSrcweir  Call GetOptions
324cdf0e10cSrcweir  Pop $2
325cdf0e10cSrcweir
3264df3a119Smseidel  StrCmp $2 "" dontsetguilevel setguilevel
327cdf0e10cSrcweir  setguilevel:
328cdf0e10cSrcweir    StrCpy $7 "/"
329cdf0e10cSrcweir    StrCpy $7 $7$2
330cdf0e10cSrcweir    GoTo afterguilevel
331cdf0e10cSrcweir  dontsetguilevel:
332cdf0e10cSrcweir    StrCpy $7 "/qr"
333cdf0e10cSrcweir  afterguilevel:
334cdf0e10cSrcweir
335cdf0e10cSrcweir  ;MessageBox MB_OK "GUILEVEL: $7"
336cdf0e10cSrcweir
337cdf0e10cSrcweir  Push $1
338cdf0e10cSrcweir  Push "/PARAM1="
339cdf0e10cSrcweir  Call GetOptions
340cdf0e10cSrcweir  Pop $2
341cdf0e10cSrcweir  ;MessageBox MB_OK "PARAM1: $2"
342cdf0e10cSrcweir
343cdf0e10cSrcweir  StrCmp $2 "" param1notset param1set
344cdf0e10cSrcweir  param1set:
345cdf0e10cSrcweir    StrCpy $4 "$2"
346cdf0e10cSrcweir  param1notset:
347cdf0e10cSrcweir
348cdf0e10cSrcweir
349cdf0e10cSrcweir  Push $1
350cdf0e10cSrcweir  Push "/PARAM2="
351cdf0e10cSrcweir  Call GetOptions
352cdf0e10cSrcweir  Pop $2
353cdf0e10cSrcweir  ;MessageBox MB_OK "PARAM2: $2"
354cdf0e10cSrcweir
355cdf0e10cSrcweir  StrCmp $2 "" param2notset param2set
356cdf0e10cSrcweir  param2set:
357cdf0e10cSrcweir    StrCpy $5 "$2"
358cdf0e10cSrcweir  param2notset:
359cdf0e10cSrcweir
360cdf0e10cSrcweir
361cdf0e10cSrcweir  Push $1
362cdf0e10cSrcweir  Push "/PARAM3="
363cdf0e10cSrcweir  Call GetOptions
364cdf0e10cSrcweir  Pop $2
365cdf0e10cSrcweir  ;MessageBox MB_OK "PARAM3: $2"
366cdf0e10cSrcweir
367cdf0e10cSrcweir  StrCmp $2 "" param3notset param3set
368cdf0e10cSrcweir  param3set:
369cdf0e10cSrcweir    StrCpy $6 "$2"
370cdf0e10cSrcweir  param3notset:
371cdf0e10cSrcweir
372cdf0e10cSrcweir  IfSilent onPostSilent onPostNoSilent
373cdf0e10cSrcweir
374cdf0e10cSrcweir  onPostSilent:
375cdf0e10cSrcweir    Push $1
376cdf0e10cSrcweir    Push "/POSTREMOVE="
377cdf0e10cSrcweir    Call GetOptions
378cdf0e10cSrcweir    Pop $2
379cdf0e10cSrcweir    ;MessageBox MB_OK "POSTREMOVE: $2"
380cdf0e10cSrcweir
381cdf0e10cSrcweir    StrCmp $2 "ON" postremovesilent nopostremovesilent
382cdf0e10cSrcweir    nopostremovesilent:
3834df3a119Smseidel      StrCmp $R9 "true" installjava1 dontinstalljava1
384cdf0e10cSrcweir      installjava1:
385cdf0e10cSrcweir        ExecWait '$INSTDIR\java\WINDOWSJAVAFILENAMEPLACEHOLDER /s /v"/qn REBOOT=Suppress"'
386cdf0e10cSrcweir      dontinstalljava1:
387cdf0e10cSrcweir      ExecWait "$INSTDIR\setup.exe -lang $LANGUAGE $3 $4 $5 $6 $7 -ignore_running" $0
388cdf0e10cSrcweir      SetErrorLevel $0
389cdf0e10cSrcweir      Quit
390cdf0e10cSrcweir      GoTo onPostDone
391cdf0e10cSrcweir    postremovesilent:
3924df3a119Smseidel      StrCmp $R9 "true" installjava2 dontinstalljava2
393cdf0e10cSrcweir      installjava2:
394cdf0e10cSrcweir        ExecWait '$INSTDIR\java\WINDOWSJAVAFILENAMEPLACEHOLDER /s /v"/qn REBOOT=Suppress"'
395cdf0e10cSrcweir      dontinstalljava2:
396cdf0e10cSrcweir      ExecWait "$INSTDIR\setup.exe -lang $LANGUAGE $3 $4 $5 $6 $7 -ignore_running" $0
397cdf0e10cSrcweir      RMDir /r $INSTDIR
398cdf0e10cSrcweir      RMDir $INSTDIR
399cdf0e10cSrcweir      SetErrorLevel $0
400cdf0e10cSrcweir      Quit
401cdf0e10cSrcweir      GoTo onPostDone
402cdf0e10cSrcweir
403cdf0e10cSrcweir  onPostNoSilent:
404cdf0e10cSrcweir    Push $1
405cdf0e10cSrcweir    Push "/POSTREMOVE="
406cdf0e10cSrcweir    Call GetOptions
407cdf0e10cSrcweir    Pop $2
408cdf0e10cSrcweir    ;MessageBox MB_OK "POSTREMOVE: $2"
409cdf0e10cSrcweir
410cdf0e10cSrcweir    StrCmp $2 "ON" postremove nopostremove
411cdf0e10cSrcweir    nopostremove:
412cdf0e10cSrcweir      Exec "$INSTDIR\setup.exe -lang $LANGUAGE $3 $4 $5 $6"
413cdf0e10cSrcweir      Quit
414cdf0e10cSrcweir      GoTo onPostDone
415cdf0e10cSrcweir    postremove:
4164df3a119Smseidel      StrCmp $R9 "true" installjava3 dontinstalljava3
417cdf0e10cSrcweir      installjava3:
418cdf0e10cSrcweir        ExecWait '$INSTDIR\java\WINDOWSJAVAFILENAMEPLACEHOLDER /s /v"/qr REBOOT=Suppress"'
419cdf0e10cSrcweir      dontinstalljava3:
420cdf0e10cSrcweir      ExecWait "$INSTDIR\setup.exe -lang $LANGUAGE $3 $4 $5 $6" $0
421cdf0e10cSrcweir      RMDir /r $INSTDIR
422cdf0e10cSrcweir      RMDir $INSTDIR
423cdf0e10cSrcweir      SetErrorLevel $0
424cdf0e10cSrcweir      Quit
425cdf0e10cSrcweir      GoTo onPostDone
426cdf0e10cSrcweir
427cdf0e10cSrcweir  onPostDone:
428cdf0e10cSrcweir
429cdf0e10cSrcweirSectionEnd
430