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