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

Annotation of /trunk/nsis/dependencies.nsi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1571 - (hide annotations) (download)
Fri Aug 3 15:50:59 2007 UTC (15 years, 6 months ago) by jpye
File size: 2161 byte(s)
Fixed problems with Python installation.
Message about .ascend.ini file is now in an NSIS 'Page'.
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 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 1570 ${If} $PYOK == 'OK'
18     ${AndIf} $GTKOK == 'OK'
19     ${AndIf} $PYGTKOK == 'OK'
20     ${AndIf} $PYGOBJECTOK == 'OK'
21     ${AndIf} $PYCAIROOK == 'OK'
22     ; do nothing in this page
23     ${Else}
24 jpye 1571 nsDialogs::Create /NOUNLOAD 1018
25     Pop $0
26 jpye 1570
27 jpye 1571 ${NSD_CreateLabel} 0 0 75% 40u "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."
28     Pop $0
29    
30     ${If} $PYOK == 'NOK'
31     ${NSD_CreateCheckbox} 0 50% 100% 8u Python
32     Pop $CHECKPY
33     !insertmacro setCheckboxChecked $CHECKPY
34     ${EndIf}
35    
36     ${If} $GTKOK == 'NOK'
37     ${NSD_CreateCheckbox} 0 58% 100% 8u GTK+
38     Pop $CHECKGTK
39     !insertmacro setCheckboxChecked $CHECKGTK
40     ${EndIf}
41    
42     ${If} $PYGOBJECTOK == 'NOK'
43     ${NSD_CreateCheckbox} 0 66% 100% 8u PyGObject
44     Pop $CHECKPYGOBJECT
45     !insertmacro setCheckboxChecked $CHECKPYGOBJECT
46     ${EndIf}
47    
48     ${If} $PYCAIROOK == 'NOK'
49     ${NSD_CreateCheckbox} 0 74% 100% 8u PyCairo
50     Pop $CHECKPYCAIRO
51     !insertmacro setCheckboxChecked $CHECKPYCAIRO
52     ${EndIf}
53    
54     ${If} $PYGTKOK == 'NOK'
55     ${NSD_CreateCheckbox} 0 82% 100% 8u PyGTK
56     Pop $CHECKPYGTK
57     !insertmacro setCheckboxChecked $CHECKPYGTK
58     ${EndIf}
59    
60     nsDialogs::Show
61 jpye 1570 ${EndIf}
62 jpye 1571
63 jpye 1570 FunctionEnd
64    
65 jpye 1571 Function DependenciesLeave
66     SendMessage $CHECKPY ${BM_GETCHECK} 0 0 $PYDOWNLOAD
67     SendMessage $CHECKGTK ${BM_GETCHECK} 0 0 $GTKDOWNLOAD
68     SendMessage $CHECKPYGTK ${BM_GETCHECK} 0 0 $PYGTKDOWNLOAD
69     SendMessage $CHECKPYGOBJECT ${BM_GETCHECK} 0 0 $PYGOBJECTDOWNLOAD
70     SendMessage $CHECKPYCAIRO ${BM_GETCHECK} 0 0 $PYCAIRODOWNLOAD
71 jpye 1570 FunctionEnd
72 jpye 1571

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