1 |
;--------------------------------------------------------------------- |
2 |
; CUSTOM PAGE to DOWNLOAD REQUIRED DEPENDENCIES |
3 |
|
4 |
!define DEPINI "dependencies.ini" |
5 |
!define DEPINIPATH "$PLUGINSDIR\${DEPINI}" |
6 |
|
7 |
Function dependenciesCreate |
8 |
MessageBox MB_OK "creating dependencies dialog" |
9 |
|
10 |
${If} $PYOK == 'OK' |
11 |
${AndIf} $GTKOK == 'OK' |
12 |
${AndIf} $PYGTKOK == 'OK' |
13 |
${AndIf} $PYGOBJECTOK == 'OK' |
14 |
${AndIf} $PYCAIROOK == 'OK' |
15 |
MessageBox MB_OK "all required dependencies were found" |
16 |
; do nothing in this page |
17 |
${Else} |
18 |
MessageBox MB_OK "running dependencies dialog" |
19 |
InitPluginsDir |
20 |
File ${DEPINI} |
21 |
StrCpy $0 "${DEPINIPATH}" |
22 |
|
23 |
Call CreateDialogFromINI |
24 |
${EndIf} |
25 |
|
26 |
FunctionEnd |
27 |
|
28 |
; this function finds which inputs were selected and sets global variables accordingly |
29 |
Function dependenciesLeave |
30 |
ReadINIStr $PYDOWNLOAD ${DEPINIPATH} "Field 3" "State" |
31 |
ReadINIStr $PYGTKDOWNLOAD ${DEPINIPATH} "Field 4" "State" |
32 |
ReadINIStr $PYGOBJECTDOWNLOAD ${DEPINIPATH} "Field 5" "State" |
33 |
ReadINIStr $PYCAIRODOWNLOAD ${DEPINIPATH} "Field 6" "State" |
34 |
ReadINIStr $GTKDOWNLOAD ${DEPINIPATH} "Field 7" "State" |
35 |
FunctionEnd |