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

Diff of /trunk/nsis/dependencies.nsi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1572 by jpye, Fri Aug 3 15:50:59 2007 UTC revision 1573 by jpye, Sat Aug 4 09:37:03 2007 UTC
# Line 6  Var CHECKGTK Line 6  Var CHECKGTK
6  Var CHECKPYGTK  Var CHECKPYGTK
7  Var CHECKPYGOBJECT  Var CHECKPYGOBJECT
8  Var CHECKPYCAIRO  Var CHECKPYCAIRO
9    Var CHECKTCL
10    
11  !macro setCheckboxChecked CB  !macro setCheckboxChecked CB
12      SendMessage ${CB} ${BM_SETCHECK} 0x0001 0      SendMessage ${CB} ${BM_SETCHECK} 0x0001 0
# Line 19  Function dependenciesCreate Line 20  Function dependenciesCreate
20      ${AndIf} $PYGTKOK == 'OK'      ${AndIf} $PYGTKOK == 'OK'
21      ${AndIf} $PYGOBJECTOK == 'OK'      ${AndIf} $PYGOBJECTOK == 'OK'
22      ${AndIf} $PYCAIROOK == 'OK'      ${AndIf} $PYCAIROOK == 'OK'
23        ${AndIf} $TCLOK == 'OK'
24          ; do nothing in this page          ; do nothing in this page
25      ${Else}      ${Else}
26          nsDialogs::Create /NOUNLOAD 1018          nsDialogs::Create /NOUNLOAD 1018
27          Pop $0          Pop $0
28    
29          ${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."          ${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          Pop $0
31    
32          ${If} $PYOK == 'NOK'          ${If} $PYOK == 'NOK'
33              ${NSD_CreateCheckbox} 0 50% 100% 8u Python              ${NSD_CreateCheckbox} 10% 50% 100% 8u Python
34              Pop $CHECKPY              Pop $CHECKPY
35              !insertmacro setCheckboxChecked $CHECKPY              !insertmacro setCheckboxChecked $CHECKPY
36          ${EndIf}          ${EndIf}
37    
38          ${If} $GTKOK == 'NOK'          ${If} $GTKOK == 'NOK'
39              ${NSD_CreateCheckbox} 0 58% 100% 8u GTK+              ${NSD_CreateCheckbox} 10% 58% 100% 8u GTK+
40              Pop $CHECKGTK              Pop $CHECKGTK
41              !insertmacro setCheckboxChecked $CHECKGTK              !insertmacro setCheckboxChecked $CHECKGTK
42          ${EndIf}          ${EndIf}
43    
44          ${If} $PYGOBJECTOK == 'NOK'          ${If} $PYGOBJECTOK == 'NOK'
45              ${NSD_CreateCheckbox} 0 66% 100% 8u PyGObject              ${NSD_CreateCheckbox} 10% 66% 100% 8u PyGObject
46              Pop $CHECKPYGOBJECT              Pop $CHECKPYGOBJECT
47              !insertmacro setCheckboxChecked $CHECKPYGOBJECT              !insertmacro setCheckboxChecked $CHECKPYGOBJECT
48          ${EndIf}          ${EndIf}
49    
50          ${If} $PYCAIROOK == 'NOK'          ${If} $PYCAIROOK == 'NOK'
51              ${NSD_CreateCheckbox} 0 74% 100% 8u PyCairo              ${NSD_CreateCheckbox} 10% 74% 100% 8u PyCairo
52              Pop $CHECKPYCAIRO              Pop $CHECKPYCAIRO
53              !insertmacro setCheckboxChecked $CHECKPYCAIRO              !insertmacro setCheckboxChecked $CHECKPYCAIRO
54          ${EndIf}          ${EndIf}
55    
56          ${If} $PYGTKOK == 'NOK'          ${If} $PYGTKOK == 'NOK'
57              ${NSD_CreateCheckbox} 0 82% 100% 8u PyGTK              ${NSD_CreateCheckbox} 10% 82% 100% 8u PyGTK
58              Pop $CHECKPYGTK              Pop $CHECKPYGTK
59              !insertmacro setCheckboxChecked $CHECKPYGTK                      !insertmacro setCheckboxChecked $CHECKPYGTK        
60          ${EndIf}              ${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          nsDialogs::Show
69      ${EndIf}      ${EndIf}
# Line 68  Function DependenciesLeave Line 76  Function DependenciesLeave
76      SendMessage $CHECKPYGTK ${BM_GETCHECK} 0 0 $PYGTKDOWNLOAD      SendMessage $CHECKPYGTK ${BM_GETCHECK} 0 0 $PYGTKDOWNLOAD
77      SendMessage $CHECKPYGOBJECT ${BM_GETCHECK} 0 0 $PYGOBJECTDOWNLOAD      SendMessage $CHECKPYGOBJECT ${BM_GETCHECK} 0 0 $PYGOBJECTDOWNLOAD
78      SendMessage $CHECKPYCAIRO ${BM_GETCHECK} 0 0 $PYCAIRODOWNLOAD      SendMessage $CHECKPYCAIRO ${BM_GETCHECK} 0 0 $PYCAIRODOWNLOAD
79        SendMessage $CHECKTCL ${BM_GETCHECK} 0 0 $TCLDOWNLOAD
80  FunctionEnd  FunctionEnd
81            

Legend:
Removed from v.1572  
changed lines
  Added in v.1573

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