/[ascend]/trunk/nsis/dependencies.nsi
ViewVC logotype

Annotation of /trunk/nsis/dependencies.nsi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2607 - (hide annotations) (download)
Tue Apr 24 23:16:19 2012 UTC (11 years, 1 month ago) by jpye
File size: 2311 byte(s)
Working installer for 0.9.8 32-bit.
1 jpye 1570 ;---------------------------------------------------------------------
2     ; CUSTOM PAGE to DOWNLOAD REQUIRED DEPENDENCIES
3    
4 jpye 1571 Var CHECKPY
5     Var CHECKGTK
6 jpye 2607 Var CHECKPYGTK
7     Var CHECKPYCAIRO
8     Var CHECKPYGOBJECT
9 jpye 1570
10 jpye 1571 !macro setCheckboxChecked CB
11     SendMessage ${CB} ${BM_SETCHECK} 0x0001 0
12     Pop $0
13     !macroend
14    
15 jpye 1570 Function dependenciesCreate
16 jpye 1571
17 jpye 2605 ${If} $HAVE_PYTHON == 'OK'
18     ${AndIf} $HAVE_GTK == 'OK'
19     ${AndIf} $HAVE_PYGTK == 'OK'
20     ${AndIf} $HAVE_PYGOBJECT == 'OK'
21     ${AndIf} $HAVE_PYCAIRO == 'OK'
22 jpye 2492 ;${AndIf} $TCLOK == 'OK'
23 jpye 1570 ; do nothing in this page
24     ${Else}
25 jpye 1571 nsDialogs::Create /NOUNLOAD 1018
26     Pop $0
27 jpye 1570
28 jpye 1573 ${NSD_CreateLabel} 0% 0 100% 48% "The following additional packages are required for ASCEND to function correctly. Checked items will be downloaded and installed (some of the installers may require you to click 'next' a few times). If you don't want additional components to be downloaded you can unckeck them. This installer will then install only the parts for which the prerequisites are already satisfied."
29 jpye 1571 Pop $0
30    
31 jpye 2605 ${If} $HAVE_PYTHON == 'NOK'
32 jpye 2607 ${NSD_CreateCheckbox} 10% 50% 100% 8u "Python ${PYVERSION} (${NNBIT})"
33 jpye 1571 Pop $CHECKPY
34     !insertmacro setCheckboxChecked $CHECKPY
35     ${EndIf}
36    
37 jpye 2605 ${If} $HAVE_GTK == 'NOK'
38 jpye 2607 ${NSD_CreateCheckbox} 10% 58% 100% 8u "GTK+ bundle ${GTK_VER} (${NNBIT})"
39 jpye 1571 Pop $CHECKGTK
40     !insertmacro setCheckboxChecked $CHECKGTK
41     ${EndIf}
42 jpye 2607
43    
44     ${If} $HAVE_PYGTK == 'NOK'
45     ${NSD_CreateCheckbox} 10% 64% 100% 8u "PyGTK"
46     Pop $CHECKPYGTK
47     !insertmacro setCheckboxChecked $CHECKPYGTK
48     ${EndIf}
49 jpye 1573
50 jpye 2607 ${If} $HAVE_PYCAIRO == 'NOK'
51     ${NSD_CreateCheckbox} 10% 72% 100% 8u "PyCairo"
52     Pop $CHECKPYCAIRO
53     !insertmacro setCheckboxChecked $CHECKPYCAIRO
54     ${EndIf}
55    
56     ${If} $HAVE_PYGOBJECT == 'NOK'
57     ${NSD_CreateCheckbox} 10% 80% 100% 8u "PyGObject"
58     Pop $CHECKPYGOBJECT
59     !insertmacro setCheckboxChecked $CHECKPYGOBJECT
60     ${EndIf}
61    
62 jpye 1571 nsDialogs::Show
63 jpye 1570 ${EndIf}
64 jpye 1571
65 jpye 1570 FunctionEnd
66    
67 jpye 1571 Function DependenciesLeave
68 jpye 2605 SendMessage $CHECKPY ${BM_GETCHECK} 0 0 $NEED_PYTHON
69     SendMessage $CHECKGTK ${BM_GETCHECK} 0 0 $NEED_GTK
70     SendMessage $CHECKPYGTK ${BM_GETCHECK} 0 0 $NEED_PYGTK
71     SendMessage $CHECKPYCAIRO ${BM_GETCHECK} 0 0 $NEED_PYCAIRO
72     SendMessage $CHECKPYGOBJECT ${BM_GETCHECK} 0 0 $NEED_PYGOBJECT
73 jpye 1570 FunctionEnd
74 jpye 1571

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22