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

Contents of /trunk/nsis/dependencies.nsi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2607 - (show annotations) (download)
Tue Apr 24 23:16:19 2012 UTC (8 years, 2 months ago) by jpye
File size: 2311 byte(s)
Working installer for 0.9.8 32-bit.
1 ;---------------------------------------------------------------------
2 ; CUSTOM PAGE to DOWNLOAD REQUIRED DEPENDENCIES
3
4 Var CHECKPY
5 Var CHECKGTK
6 Var CHECKPYGTK
7 Var CHECKPYCAIRO
8 Var CHECKPYGOBJECT
9
10 !macro setCheckboxChecked CB
11 SendMessage ${CB} ${BM_SETCHECK} 0x0001 0
12 Pop $0
13 !macroend
14
15 Function dependenciesCreate
16
17 ${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 ;${AndIf} $TCLOK == 'OK'
23 ; do nothing in this page
24 ${Else}
25 nsDialogs::Create /NOUNLOAD 1018
26 Pop $0
27
28 ${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 Pop $0
30
31 ${If} $HAVE_PYTHON == 'NOK'
32 ${NSD_CreateCheckbox} 10% 50% 100% 8u "Python ${PYVERSION} (${NNBIT})"
33 Pop $CHECKPY
34 !insertmacro setCheckboxChecked $CHECKPY
35 ${EndIf}
36
37 ${If} $HAVE_GTK == 'NOK'
38 ${NSD_CreateCheckbox} 10% 58% 100% 8u "GTK+ bundle ${GTK_VER} (${NNBIT})"
39 Pop $CHECKGTK
40 !insertmacro setCheckboxChecked $CHECKGTK
41 ${EndIf}
42
43
44 ${If} $HAVE_PYGTK == 'NOK'
45 ${NSD_CreateCheckbox} 10% 64% 100% 8u "PyGTK"
46 Pop $CHECKPYGTK
47 !insertmacro setCheckboxChecked $CHECKPYGTK
48 ${EndIf}
49
50 ${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 nsDialogs::Show
63 ${EndIf}
64
65 FunctionEnd
66
67 Function DependenciesLeave
68 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 FunctionEnd
74

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