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