Changeset 2344
- Timestamp:
- 07/21/08 03:30:02 (4 months ago)
- Files:
-
- gaphor-win32-installer/trunk/config.nsi (modified) (1 diff)
- gaphor-win32-installer/trunk/download.nsi (modified) (1 diff)
- gaphor-win32-installer/trunk/gaphor-setup.nsi (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor-win32-installer/trunk/config.nsi
r2317 r2344 1 2 !define LOGFILE "$INSTDIR\install.log" 1 3 2 4 !define PYTHON_VERSION "${PYVERSION}${PYPATCH}" 3 5 !define PYTHON_FN "python-${PYTHON_VERSION}.msi" 4 6 !define PYTHON_URL "http://www.python.org/ftp/python/${PYTHON_VERSION}/${PYTHON_FN}" 5 !define PYTHON_CMD "msiexec /i $DAI_TMPFILE /passive TARGETDIR=$\"$INSTDIR\Python$\""7 !define PYTHON_CMD "msiexec /i $DAI_TMPFILE /passive /l*+ $\"${LOGFILE}$\" TARGETDIR=$\"$INSTDIR\Python$\"" 6 8 7 9 !define GTK_FN "gtk-2.12.9-win32-2.exe" gaphor-win32-installer/trunk/download.nsi
r2317 r2344 23 23 MessageBox MB_OK "${DAI_NAME} download cancelled." 24 24 Push 2 25 Abort 25 26 ${Else} 26 27 MessageBox MB_OK "Download failed: $DAI_RET" gaphor-win32-installer/trunk/gaphor-setup.nsi
r2343 r2344 48 48 49 49 !define MUI_ABORTWARNING 50 !define MUI_CUSTOMFUNCTION_ABORT "GaphorAbort" 50 51 51 52 ;-------------------------------- … … 77 78 Var /GLOBAL PYGOBJECTOK 78 79 Var /GLOBAL PYCAIROOK 79 ;Var /GLOBAL PYINSTALLED80 80 81 81 Var /GLOBAL PATH 82 82 83 ;Var /GLOBAL PYDOWNLOAD 84 ;Var /GLOBAL PYGTKDOWNLOAD 85 ;Var /GLOBAL PYGOBJECTDOWNLOAD 86 ;Var /GLOBAL PYCAIRODOWNLOAD 87 ;Var /GLOBAL GTKDOWNLOAD 88 83 84 Function RelGotoPage 85 IntCmp $R9 0 0 Move Move 86 StrCmp $R9 "X" 0 Move 87 StrCpy $R9 "120" 88 89 Move: 90 SendMessage $HWNDPARENT "0x408" "$R9" "" 91 FunctionEnd 92 93 94 Function GaphorAbort 95 StrCpy $R9 "X" ; Abort! 96 Call RelGotoPage 97 Abort 98 FunctionEnd 89 99 90 100 91 101 !include "config.nsi" 92 102 !include "detect.nsi" 93 ;!include "dependencies.nsi"94 103 !include "download.nsi" 95 104 … … 98 107 ;-------------------------------- 99 108 ;Installer Sections 100 101 109 102 110 ; download and install dependencies first … … 107 115 Pop $PYOK 108 116 Pop $PYPATH 109 ${If} $PYOK == 'NOK'117 ${If} $PYOK != 'OK' 110 118 MessageBox MB_OK "Python installation appears to have failed" 119 111 120 ${EndIf} 112 121 SectionEnd … … 156 165 157 166 ; Check the dependencies of the PyGTK GUI before proceding... 158 ${If} $PYOK == 'NOK'167 ${If} $PYOK != 'OK' 159 168 MessageBox MB_OK "PyGTK GUI can not be installed, because Python was not found on this system.$\nIf you do want to use the PyGTK GUI, please check the installation instructions$\n$\n(PYPATH=$PYPATH)" 160 ${ElseIf} $GTKOK == 'NOK'169 ${ElseIf} $GTKOK != 'OK' 161 170 MessageBox MB_OK "PyGTK GUI cannot be installed, because GTK+ 2.x was not found on this system.$\nIf you do want to use the PyGTK GUI, please check the installation instructions$\n$\n(GTKPATH=$GTKPATH)" 162 ${ElseIf} $PYGTKOK == "NOK"171 ${ElseIf} $PYGTKOK != "OK" 163 172 MessageBox MB_OK "PyGTK GUI cannot be installed, because PyGTK was not found on this system.$\nPlease check the installation instructions.$\n$\n(PYPATH=$PYPATH)" 164 ${ElseIf} $PYCAIROOK == "NOK"173 ${ElseIf} $PYCAIROOK != "OK" 165 174 MessageBox MB_OK "PyGTK GUI cannot be installed, because PyCairo was not found on this system.$\nPlease check the installation instructions.$\n$\n(PYPATH=$PYPATH)" 166 ${ElseIf} $PYGOBJECTOK == "NOK"175 ${ElseIf} $PYGOBJECTOK != "OK" 167 176 MessageBox MB_OK "PyGTK GUI cannot be installed, because PyGObject was not found on this system.$\nPlease check the installation instructions.$\n$\n(PYPATH=$PYPATH)" 168 177 ${Else}
