/[ascend]/branches/adrian/nsis/dependencies.nsi
ViewVC logotype

Diff of /branches/adrian/nsis/dependencies.nsi

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

revision 2938 by adrian, Wed Apr 1 10:57:31 2015 UTC revision 2939 by adrian, Wed Jun 3 22:05:25 2015 UTC
# Line 2  Line 2 
2  ; CUSTOM PAGE to DOWNLOAD REQUIRED DEPENDENCIES  ; CUSTOM PAGE to DOWNLOAD REQUIRED DEPENDENCIES
3    
4  Var CHECKPY  Var CHECKPY
 Var CHECKGTK  
 Var CHECKPYGTK  
 Var CHECKPYCAIRO  
 Var CHECKPYGOBJECT  
5    
6  !macro setCheckboxChecked CB  !macro setCheckboxChecked CB
7      SendMessage ${CB} ${BM_SETCHECK} 0x0001 0      SendMessage ${CB} ${BM_SETCHECK} 0x0001 0
8      Pop $0      Pop $0
9  !macroend  !macroend
10    
11    Function onManualInstallClick
12        pop $0
13        ExecShell "open" "http://sourceforge.net/projects/pygobjectwin32/files/"
14    FunctionEnd
15    
16  Function dependenciesCreate  Function dependenciesCreate
17            
18      ${If} $HAVE_PYTHON == 'OK'      ${If} $HAVE_PYTHON == 'OK'
19      ${AndIf} $HAVE_GTK == 'OK'      ${AndIf} $HAVE_GTK == 'OK'
     ${AndIf} $HAVE_PYGTK == 'OK'  
20      ${AndIf} $HAVE_PYGOBJECT == 'OK'      ${AndIf} $HAVE_PYGOBJECT == 'OK'
21      ${AndIf} $HAVE_PYCAIRO == 'OK'      ${AndIf} $HAVE_PYCAIRO == 'OK'
22      ;${AndIf} $TCLOK == 'OK'      ;${AndIf} $TCLOK == 'OK'
# Line 25  Function dependenciesCreate Line 25  Function dependenciesCreate
25          nsDialogs::Create /NOUNLOAD 1018          nsDialogs::Create /NOUNLOAD 1018
26          Pop $0          Pop $0
27    
28          ${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."          ${NSD_CreateLabel} 0% 0 100% 25% "The following additional packages are required for ASCEND to function correctly. You can check python to download and install automatically (the installer may require you to click 'next' a few times). Unfortunately you need to install other dependencies manually. Please download PyGI/PyGObject for Windows from http://sourceforge.net/projects/pygobjectwin32/files/"
29          Pop $0          Pop $0
30            ${NSD_CreateLink} 0% 25% 100% 7% "http://sourceforge.net/projects/pygobjectwin32/files/"
31            Pop $0
32            ${NSD_OnClick} $0 onManualInstallClick
33            ${NSD_CreateLabel} 0% 32% 100% 15% "and install required packages. This installer will then install only the parts for which the prerequisites are already satisfied."
34            
35          ${If} $HAVE_PYTHON == 'NOK'          ${If} $HAVE_PYTHON == 'NOK'
36              ${NSD_CreateCheckbox} 10% 50% 100% 8u "Python ${PYVERSION} (${NNBIT})"              ${NSD_CreateCheckbox} 10% 50% 100% 8u "Python ${PYVERSION} (${NNBIT})"
37              Pop $CHECKPY              Pop $CHECKPY
38              !insertmacro setCheckboxChecked $CHECKPY              !insertmacro setCheckboxChecked $CHECKPY
39          ${EndIf}          ${Else}
40                ${NSD_CreateLabel} 10% 50% 100% 10% "Python:$\t$\t OK"
41                Pop $0
42            ${EndIf}    
43    
44          ${If} $HAVE_GTK == 'NOK'          ${If} $HAVE_GTK == 'NOK'
45              ${NSD_CreateCheckbox} 10% 58% 100% 8u "GTK+ bundle ${GTK_VER} (${NNBIT})"              ${NSD_CreateLabel} 10% 60% 100% 10% "GTK3:$\t$\t not found"
46              Pop $CHECKGTK              Pop $0
47              !insertmacro setCheckboxChecked $CHECKGTK          ${Else}
48          ${EndIf}              ${NSD_CreateLabel} 10% 60% 100% 10% "GTK3:$\t$\t OK"
49                Pop $0
   
         ${If} $HAVE_PYGTK == 'NOK'  
             ${NSD_CreateCheckbox} 10% 64% 100% 8u "PyGTK"  
             Pop $CHECKPYGTK  
             !insertmacro setCheckboxChecked $CHECKPYGTK  
50          ${EndIf}          ${EndIf}
51                    
52          ${If} $HAVE_PYCAIRO == 'NOK'          ${If} $HAVE_PYCAIRO == 'NOK'
53              ${NSD_CreateCheckbox} 10% 72% 100% 8u "PyCairo"              ${NSD_CreateLabel} 10% 70% 100% 10% "PyCairo:$\t not found"
54              Pop $CHECKPYCAIRO              Pop $0
55              !insertmacro setCheckboxChecked $CHECKPYCAIRO          ${Else}
56                ${NSD_CreateLabel} 10% 70% 100% 10% "PyCairo:$\t OK"
57                Pop $0
58          ${EndIf}          ${EndIf}
59    
60          ${If} $HAVE_PYGOBJECT == 'NOK'          ${If} $HAVE_PYGOBJECT == 'NOK'
61              ${NSD_CreateCheckbox} 10% 80% 100% 8u "PyGObject"              ${NSD_CreateLabel} 10% 80% 100% 10% "PyGObject:$\t not found"
62              Pop $CHECKPYGOBJECT              Pop $0
63              !insertmacro setCheckboxChecked $CHECKPYGOBJECT          ${Else}
64                ${NSD_CreateLabel} 10% 80% 100% 10% "PyGObject:$\t OK"
65                Pop $0
66          ${EndIf}          ${EndIf}
67    
68          nsDialogs::Show          nsDialogs::Show
# Line 66  FunctionEnd Line 72  FunctionEnd
72    
73  Function DependenciesLeave  Function DependenciesLeave
74      SendMessage $CHECKPY        ${BM_GETCHECK} 0 0 $NEED_PYTHON      SendMessage $CHECKPY        ${BM_GETCHECK} 0 0 $NEED_PYTHON
     SendMessage $CHECKGTK       ${BM_GETCHECK} 0 0 $NEED_GTK  
     SendMessage $CHECKPYGTK     ${BM_GETCHECK} 0 0 $NEED_PYGTK  
     SendMessage $CHECKPYCAIRO   ${BM_GETCHECK} 0 0 $NEED_PYCAIRO  
     SendMessage $CHECKPYGOBJECT ${BM_GETCHECK} 0 0 $NEED_PYGOBJECT  
75  FunctionEnd  FunctionEnd
76            

Legend:
Removed from v.2938  
changed lines
  Added in v.2939

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