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

Annotation of /trunk/nsis/dependencies.nsi

Parent Directory Parent Directory | Revision Log Revision Log


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

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