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

Contents of /trunk/nsis/dependencies.nsi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1573 - (show annotations) (download)
Sat Aug 4 09:37:03 2007 UTC (15 years, 4 months ago) by jpye
File size: 2424 byte(s)
Added support for automatic download/install of ActiveTcl.
1 ;---------------------------------------------------------------------
2 ; CUSTOM PAGE to DOWNLOAD REQUIRED DEPENDENCIES
3
4 Var CHECKPY
5 Var CHECKGTK
6 Var CHECKPYGTK
7 Var CHECKPYGOBJECT
8 Var CHECKPYCAIRO
9 Var CHECKTCL
10
11 !macro setCheckboxChecked CB
12 SendMessage ${CB} ${BM_SETCHECK} 0x0001 0
13 Pop $0
14 !macroend
15
16 Function dependenciesCreate
17
18 ${If} $PYOK == 'OK'
19 ${AndIf} $GTKOK == 'OK'
20 ${AndIf} $PYGTKOK == 'OK'
21 ${AndIf} $PYGOBJECTOK == 'OK'
22 ${AndIf} $PYCAIROOK == 'OK'
23 ${AndIf} $TCLOK == 'OK'
24 ; do nothing in this page
25 ${Else}
26 nsDialogs::Create /NOUNLOAD 1018
27 Pop $0
28
29 ${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."
30 Pop $0
31
32 ${If} $PYOK == 'NOK'
33 ${NSD_CreateCheckbox} 10% 50% 100% 8u Python
34 Pop $CHECKPY
35 !insertmacro setCheckboxChecked $CHECKPY
36 ${EndIf}
37
38 ${If} $GTKOK == 'NOK'
39 ${NSD_CreateCheckbox} 10% 58% 100% 8u GTK+
40 Pop $CHECKGTK
41 !insertmacro setCheckboxChecked $CHECKGTK
42 ${EndIf}
43
44 ${If} $PYGOBJECTOK == 'NOK'
45 ${NSD_CreateCheckbox} 10% 66% 100% 8u PyGObject
46 Pop $CHECKPYGOBJECT
47 !insertmacro setCheckboxChecked $CHECKPYGOBJECT
48 ${EndIf}
49
50 ${If} $PYCAIROOK == 'NOK'
51 ${NSD_CreateCheckbox} 10% 74% 100% 8u PyCairo
52 Pop $CHECKPYCAIRO
53 !insertmacro setCheckboxChecked $CHECKPYCAIRO
54 ${EndIf}
55
56 ${If} $PYGTKOK == 'NOK'
57 ${NSD_CreateCheckbox} 10% 82% 100% 8u PyGTK
58 Pop $CHECKPYGTK
59 !insertmacro setCheckboxChecked $CHECKPYGTK
60 ${EndIf}
61
62 ${If} $TCLOK == 'NOK'
63 ${NSD_CreateCheckbox} 10% 90% 100% 8u Tcl/Tk
64 Pop $CHECKTCL
65 !insertmacro setCheckboxChecked $CHECKTCL
66 ${EndIf}
67
68 nsDialogs::Show
69 ${EndIf}
70
71 FunctionEnd
72
73 Function DependenciesLeave
74 SendMessage $CHECKPY ${BM_GETCHECK} 0 0 $PYDOWNLOAD
75 SendMessage $CHECKGTK ${BM_GETCHECK} 0 0 $GTKDOWNLOAD
76 SendMessage $CHECKPYGTK ${BM_GETCHECK} 0 0 $PYGTKDOWNLOAD
77 SendMessage $CHECKPYGOBJECT ${BM_GETCHECK} 0 0 $PYGOBJECTDOWNLOAD
78 SendMessage $CHECKPYCAIRO ${BM_GETCHECK} 0 0 $PYCAIRODOWNLOAD
79 SendMessage $CHECKTCL ${BM_GETCHECK} 0 0 $TCLDOWNLOAD
80 FunctionEnd
81

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