323
Section "-GTK+ Installer" SecGTK
324
${If} $GTK_STATUS == ""
325
IfFileExists "$EXEDIR\redist\${GTK_FILENAME}" 0 +13
326
${StrRep} $R1 "$(DOWN_LOCAL)" "%s" "${GTK_FILENAME}"
328
md5dll::GetMD5File "$EXEDIR\redist\${GTK_FILENAME}"
330
${If} $R0 == ${MD5_${GTK_FILENAME}}
331
DetailPrint "$(DOWN_CHKSUM)"
332
ExecWait '"$EXEDIR\redist\${GTK_FILENAME}" /S /sideeffects=no /dllpath=root /D=$INSTDIR'
333
Goto +30 ; Jump to setting version
335
DetailPrint "$(DOWN_CHKSUM_ERROR)"
336
Goto +2 ; Jump to '${EndIf}+1
341
DetailPrint "Download Retry $R1 of 5..."
342
DetailPrint "$(GTK_DOWNLOAD) (${GTK_URL}/${GTK_FILENAME})"
343
Delete "$TEMP\${GTK_FILENAME}" ; Should never happen but just in case
344
inetc::get /TRANSLATE "$(INETC_DOWN)" "$(INETC_CONN)" "$(INETC_TSEC)" "$(INETC_TMIN)" "$(INETC_THOUR)" "$(INETC_TPLUR)" "$(INETC_PROGRESS)" "$(INETC_REMAIN)" "${GTK_URL}/${GTK_FILENAME}" "$TEMP\${GTK_FILENAME}"
347
StrCmp $R0 "Terminated" +11
348
StrCmp $R0 "Cancelled" +10
349
StrCmp $R0 "Transfer Error" +6
350
StrCmp $R0 "Connection Error" +5
351
StrCmp $R0 "SendRequest Error" +4
352
StrCmp $R0 "File Not Found (404)" +3
353
StrCmp $R0 "Request Error" +2
354
StrCmp $R0 "Server Error" +1
358
MessageBox MB_OK|MB_ICONEXCLAMATION "$(GTK_FAILED) $R0$\n$\n$(GTK_REQUIRED)"
360
DetailPrint "$(GTK_INSTALL) (${GTK_FILENAME})"
361
ExecWait '"$TEMP\${GTK_FILENAME}" /S /sideeffects=no /dllpath=root /D=$INSTDIR'
362
Delete "$TEMP\${GTK_FILENAME}"
364
IfFileExists "$INSTDIR\${UNINSTALL_GTK}" 0 -6 ; If the uninstaller exists install completed successfully, otherwise display an error
365
${If} $HKEY == "Classic"
366
WriteRegStr HKCU "${REG_USER_SET}" "GTK" "${GTK_VERSION}"
368
WriteRegStr HKLM "${REG_USER_SET}" "GTK" "${GTK_VERSION}"
330
SectionGroup "$(SECT_DEPENDS)" SecDepends
331
Section "GTK+ 2.24.8" SecGTK
333
${If} $GTK_STATUS == ""
334
IfFileExists "$INSTDIR\${UNINSTALL_GTK}" +3 0 ; Uninstall previous version
335
DetailPrint "$(GTK_UNINSTALL)"
336
ExecWait '"$INSTDIR\${UNINSTALL_GTK}" /S /sideeffects=no /dllpath=root /remove_config=yes'
338
IfFileExists "$EXEDIR\redist\${GTK_FILENAME}" 0 GtkInstDown
339
${StrRep} $R1 "$(DOWN_LOCAL)" "%s" "${GTK_FILENAME}"
341
md5dll::GetMD5File "$EXEDIR\redist\${GTK_FILENAME}"
343
${If} $R0 == ${MD5_${GTK_FILENAME}}
344
DetailPrint "$(DOWN_CHKSUM)"
345
ExecWait '"$EXEDIR\redist\${GTK_FILENAME}" /S /sideeffects=no /dllpath=root /D=$INSTDIR'
346
Goto GtkInstSetVer ; Jump to setting version
348
DetailPrint "$(DOWN_CHKSUM_ERROR)"
349
Goto GtkInstDown ; Jump to '${EndIf}+1
356
DetailPrint "Download Retry $R1 of 5..."
357
DetailPrint "$(GTK_DOWNLOAD) (${GTK_URL}/${GTK_FILENAME})"
358
Delete "$TEMP\${GTK_FILENAME}" ; Should never happen but just in case
359
inetc::get /TRANSLATE "$(INETC_DOWN)" "$(INETC_CONN)" "$(INETC_TSEC)" "$(INETC_TMIN)" "$(INETC_THOUR)" "$(INETC_TPLUR)" "$(INETC_PROGRESS)" "$(INETC_REMAIN)" "${GTK_URL}/${GTK_FILENAME}" "$TEMP\${GTK_FILENAME}"
362
StrCmp $R0 "Terminated" +11
363
StrCmp $R0 "Cancelled" +10
364
StrCmp $R0 "Transfer Error" +6
365
StrCmp $R0 "Connection Error" +5
366
StrCmp $R0 "SendRequest Error" +4
367
StrCmp $R0 "File Not Found (404)" +3
368
StrCmp $R0 "Request Error" +2
369
StrCmp $R0 "Server Error" +1
372
Goto GtkInstDownRetry
373
MessageBox MB_OK|MB_ICONEXCLAMATION "$(GTK_FAILED) $R0$\n$\n$(GTK_REQUIRED)"
375
DetailPrint "$(GTK_INSTALL) (${GTK_FILENAME})"
376
ExecWait '"$TEMP\${GTK_FILENAME}" /S /sideeffects=no /dllpath=root /D=$INSTDIR'
377
Delete "$TEMP\${GTK_FILENAME}"
380
IfFileExists "$INSTDIR\${UNINSTALL_GTK}" 0 -6 ; If the uninstaller exists install completed successfully, otherwise display an error
381
${If} $HKEY == "Classic"
382
WriteRegStr HKCU "${REG_USER_SET}" "GTK" "${GTK_VERSION}"
384
WriteRegStr HKLM "${REG_USER_SET}" "GTK" "${GTK_VERSION}"
388
Section /o "Python 2.7" SecPython
389
${If} $PYTHON_STATUS == ""
390
IfFileExists "$EXEDIR\redist\${PYTHON_FILENAME}" 0 PythonInstDown
391
${StrRep} $R1 "$(DOWN_LOCAL)" "%s" "${PYTHON_FILENAME}"
393
md5dll::GetMD5File "$EXEDIR\redist\${PYTHON_FILENAME}"
395
${If} $R0 == ${MD5_${PYTHON_FILENAME}}
396
DetailPrint "$(DOWN_CHKSUM)"
397
ExecWait 'msiexec /i "$EXEDIR\redist\${PYTHON_FILENAME}"'
399
DetailPrint "$(DOWN_CHKSUM_ERROR)"
400
Goto PythonInstDown ; Jump to '${EndIf}+1
407
DetailPrint "Download Retry $R1 of 5..."
408
DetailPrint "$(PYTHON_DOWNLOAD) (${PYTHON_URL}/${PYTHON_FILENAME})"
409
Delete "$TEMP\${PYTHON_FILENAME}" ; Should never happen but just in case
410
inetc::get /TRANSLATE "$(INETC_DOWN)" "$(INETC_CONN)" "$(INETC_TSEC)" "$(INETC_TMIN)" "$(INETC_THOUR)" "$(INETC_TPLUR)" "$(INETC_PROGRESS)" "$(INETC_REMAIN)" "${PYTHON_URL}/${PYTHON_FILENAME}" "$TEMP\${PYTHON_FILENAME}"
413
StrCmp $R0 "Terminated" +11
414
StrCmp $R0 "Cancelled" +10
415
StrCmp $R0 "Transfer Error" +6
416
StrCmp $R0 "Connection Error" +5
417
StrCmp $R0 "SendRequest Error" +4
418
StrCmp $R0 "File Not Found (404)" +3
419
StrCmp $R0 "Request Error" +2
420
StrCmp $R0 "Server Error" +1
423
Goto PythonInstDownRetry
424
MessageBox MB_OK|MB_ICONEXCLAMATION "$(PYTHON_FAILED) $R0$\n$\n$(PYTHON_REQUIRED)"
426
DetailPrint "$(PYTHON_INSTALL) (${PYTHON_FILENAME})"
427
ExecWait 'msiexec /i "$TEMP\${PYTHON_FILENAME}"'
428
Delete "$TEMP\${PYTHON_FILENAME}"
373
433
SectionGroup "$(SECT_PLUGINS)" SecPlugins
392
452
SetOutPath "$INSTDIR\share\${PACKAGE}\plugins\htmlbar"
393
453
File /r "build\share\${PACKAGE}\plugins\htmlbar\*"
394
454
SetOutPath "$INSTDIR\share\locale"
395
File /r /x "${PACKAGE}.mo" /x "*_about.mo" /x "*_charmap.mo" /x "*_entities.mo" /x "*_infbrowser.mo" /x "*_snippets.mo" /x "*_zencoding.mo" "build\share\locale\*"
455
File /r /x "${PACKAGE}.mo" /x "*_about.mo" /x "*_charmap.mo" /x "*_entities.mo" /x "*_infbrowser.mo" /x "*_snippets.mo" /x "*_vcs.mo" /x "*_zencoding.mo" "build\share\locale\*"
397
457
Section "$(PLUG_INFBROWSER)" SecPlInfBrowser
398
458
SetOutPath "$INSTDIR\lib\${PACKAGE}"
399
459
File "build\lib\${PACKAGE}\infbrowser.dll"
400
460
SetOutPath "$INSTDIR\share\locale"
401
File /r /x "${PACKAGE}.mo" /x "*_about.mo" /x "*_charmap.mo" /x "*_entities.mo" /x "*_htmlbar.mo" /x "*_snippets.mo" /x "*_zencoding.mo" "build\share\locale\*"
461
File /r /x "${PACKAGE}.mo" /x "*_about.mo" /x "*_charmap.mo" /x "*_entities.mo" /x "*_htmlbar.mo" /x "*_snippets.mo" /x "*_vcs.mo" /x "*_zencoding.mo" "build\share\locale\*"
403
463
Section "$(PLUG_SNIPPETS)" SecPlSnippets
404
464
SetOutPath "$INSTDIR\lib\${PACKAGE}"
405
465
File "build\lib\${PACKAGE}\snippets.dll"
406
466
SetOutPath "$INSTDIR\share\locale"
407
File /r /x "${PACKAGE}.mo" /x "*_about.mo" /x "*_charmap.mo" /x "*_entities.mo" /x "*_htmlbar.mo" /x "*_infbrowser.mo" /x "*_zencoding.mo" "build\share\locale\*"
467
File /r /x "${PACKAGE}.mo" /x "*_about.mo" /x "*_charmap.mo" /x "*_entities.mo" /x "*_htmlbar.mo" /x "*_infbrowser.mo" /x "*_vcs.mo" /x "*_zencoding.mo" "build\share\locale\*"
409
; Section "$(PLUG_ZENDCODING)" SecPlZendcoding
469
; Section "$(PLUG_VCS)" SecPlVcs
410
470
; SetOutPath "$INSTDIR\lib\${PACKAGE}"
411
; File "build\lib\${PACKAGE}\zendcoding.dll"
412
; SetOutPath "$INSTDIR\share\${PACKAGE}\plugins\zendcoding"
413
; File /r "build\share\${PACKAGE}\plugins\zendcoding\*"
471
; File "build\lib\${PACKAGE}\vcs.dll"
414
472
; SetOutPath "$INSTDIR\share\locale"
415
; File /r /x "${PACKAGE}.mo" /x "*_about.mo" /x "*_charmap.mo" /x "*_entities.mo" /x "*_htmlbar.mo" /x "*_infbrowser.mo" /x "*_snippets.mo" "build\share\locale\*"
473
; File /nonfatal /r /x "${PACKAGE}.mo" /x "*_about.mo" /x "*_charmap.mo" /x "*_entities.mo" /x "*_htmlbar.mo" /x "*_infbrowser.mo" /x "*_snippets.mo" /x "*_zencoding.mo" "build\share\locale\*"
475
Section /o "$(PLUG_ZENCODING)" SecPlZencoding
476
SetOutPath "$INSTDIR\lib\${PACKAGE}"
477
File "build\lib\${PACKAGE}\zencoding.dll"
478
SetOutPath "$INSTDIR\share\${PACKAGE}\plugins\zencoding"
479
File /r "build\share\${PACKAGE}\plugins\zencoding\*"
480
SetOutPath "$INSTDIR\share\locale"
481
File /r /x "${PACKAGE}.mo" /x "*_about.mo" /x "*_charmap.mo" /x "*_entities.mo" /x "*_htmlbar.mo" /x "*_infbrowser.mo" /x "*_snippets.mo" /x "*_vcs.mo" "build\share\locale\*"