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

Contents of /trunk/nsis/dependencies.nsi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2492 - (show annotations) (download)
Sat Aug 13 04:05:13 2011 UTC (7 years, 3 months ago) by jpye
File size: 1706 byte(s)
Remove TCL GUI from Windows installer
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} $PYOK == 'OK'
16 ${AndIf} $GTKOK == 'OK'
17 ${AndIf} $PYGTKOK == 'OK'
18 ${AndIf} $PYGOBJECTOK == 'OK'
19 ${AndIf} $PYCAIROOK == '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} $PYOK == 'NOK'
30 ${NSD_CreateCheckbox} 10% 50% 100% 8u "Python"
31 Pop $CHECKPY
32 !insertmacro setCheckboxChecked $CHECKPY
33 ${EndIf}
34
35 ${If} $GTKOK == 'NOK'
36 ${NSD_CreateCheckbox} 10% 58% 100% 8u "PyGTK All-in-one"
37 Pop $CHECKGTK
38 !insertmacro setCheckboxChecked $CHECKGTK
39 ${EndIf}
40
41 ; ${If} $TCLOK == 'NOK'
42 ; ${NSD_CreateCheckbox} 10% 90% 100% 8u "Tcl/Tk"
43 ; Pop $CHECKTCL
44 ; !insertmacro setCheckboxChecked $CHECKTCL
45 ; ${EndIf}
46
47 nsDialogs::Show
48 ${EndIf}
49
50 FunctionEnd
51
52 Function DependenciesLeave
53 SendMessage $CHECKPY ${BM_GETCHECK} 0 0 $PYDOWNLOAD
54 SendMessage $CHECKGTK ${BM_GETCHECK} 0 0 $GTKDOWNLOAD
55 ; SendMessage $CHECKTCL ${BM_GETCHECK} 0 0 $TCLDOWNLOAD
56 FunctionEnd
57

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