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

Contents of /trunk/nsis/dependencies.nsi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2605 - (show annotations) (download)
Tue Apr 24 06:14:23 2012 UTC (12 years, 2 months ago) by jpye
File size: 1719 byte(s)
Working on re-adding support for dependency download in installer (incl 64-bit).
1 ;---------------------------------------------------------------------
2 ; CUSTOM PAGE to DOWNLOAD REQUIRED DEPENDENCIES
3
4 Var CHECKPY
5 Var CHECKGTK
6 ;Var CHECKTCL
7
8 !macro setCheckboxChecked CB
9 SendMessage ${CB} ${BM_SETCHECK} 0x0001 0
10 Pop $0
11 !macroend
12
13 Function dependenciesCreate
14
15 ${If} $HAVE_PYTHON == 'OK'
16 ${AndIf} $HAVE_GTK == 'OK'
17 ${AndIf} $HAVE_PYGTK == 'OK'
18 ${AndIf} $HAVE_PYGOBJECT == 'OK'
19 ${AndIf} $HAVE_PYCAIRO == 'OK'
20 ;${AndIf} $TCLOK == 'OK'
21 ; do nothing in this page
22 ${Else}
23 nsDialogs::Create /NOUNLOAD 1018
24 Pop $0
25
26 ${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."
27 Pop $0
28
29 ${If} $HAVE_PYTHON == 'NOK'
30 ${NSD_CreateCheckbox} 10% 50% 100% 8u "Python"
31 Pop $CHECKPY
32 !insertmacro setCheckboxChecked $CHECKPY
33 ${EndIf}
34
35 ${If} $HAVE_GTK == 'NOK'
36 ${NSD_CreateCheckbox} 10% 58% 100% 8u "PyGTK All-in-one"
37 Pop $CHECKGTK
38 !insertmacro setCheckboxChecked $CHECKGTK
39 ${EndIf}
40
41 nsDialogs::Show
42 ${EndIf}
43
44 FunctionEnd
45
46 Function DependenciesLeave
47 SendMessage $CHECKPY ${BM_GETCHECK} 0 0 $NEED_PYTHON
48 SendMessage $CHECKGTK ${BM_GETCHECK} 0 0 $NEED_GTK
49 SendMessage $CHECKPYGTK ${BM_GETCHECK} 0 0 $NEED_PYGTK
50 SendMessage $CHECKPYCAIRO ${BM_GETCHECK} 0 0 $NEED_PYCAIRO
51 SendMessage $CHECKPYGOBJECT ${BM_GETCHECK} 0 0 $NEED_PYGOBJECT
52 FunctionEnd
53

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