Changeset 2344

Show
Ignore:
Timestamp:
07/21/08 03:30:02 (4 months ago)
Author:
arj..@yirdis.nl
Message:

fixed some issues in installer

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor-win32-installer/trunk/config.nsi

    r2317 r2344  
     1 
     2!define LOGFILE "$INSTDIR\install.log" 
    13 
    24!define PYTHON_VERSION "${PYVERSION}${PYPATCH}" 
    35!define PYTHON_FN "python-${PYTHON_VERSION}.msi" 
    46!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$\"" 
    68 
    79!define GTK_FN "gtk-2.12.9-win32-2.exe" 
  • gaphor-win32-installer/trunk/download.nsi

    r2317 r2344  
    2323                MessageBox MB_OK "${DAI_NAME} download cancelled." 
    2424                Push 2 
     25                Abort 
    2526        ${Else} 
    2627                MessageBox MB_OK "Download failed: $DAI_RET" 
  • gaphor-win32-installer/trunk/gaphor-setup.nsi

    r2343 r2344  
    4848 
    4949  !define MUI_ABORTWARNING 
     50  !define MUI_CUSTOMFUNCTION_ABORT "GaphorAbort" 
    5051 
    5152;-------------------------------- 
     
    7778Var /GLOBAL PYGOBJECTOK 
    7879Var /GLOBAL PYCAIROOK 
    79 ;Var /GLOBAL PYINSTALLED 
    8080 
    8181Var /GLOBAL PATH 
    8282 
    83 ;Var /GLOBAL PYDOWNLOAD 
    84 ;Var /GLOBAL PYGTKDOWNLOAD 
    85 ;Var /GLOBAL PYGOBJECTDOWNLOAD 
    86 ;Var /GLOBAL PYCAIRODOWNLOAD 
    87 ;Var /GLOBAL GTKDOWNLOAD 
    88  
     83 
     84Function 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" "" 
     91FunctionEnd 
     92 
     93 
     94Function GaphorAbort 
     95  StrCpy $R9 "X" ; Abort! 
     96  Call RelGotoPage 
     97  Abort 
     98FunctionEnd 
    8999 
    90100 
    91101!include "config.nsi" 
    92102!include "detect.nsi" 
    93 ;!include "dependencies.nsi" 
    94103!include "download.nsi" 
    95104 
     
    98107;-------------------------------- 
    99108;Installer Sections 
    100  
    101109 
    102110; download and install dependencies first 
     
    107115        Pop $PYOK 
    108116        Pop $PYPATH 
    109         ${If} $PYOK == 'NOK' 
     117        ${If} $PYOK != 'OK' 
    110118          MessageBox MB_OK "Python installation appears to have failed" 
     119           
    111120        ${EndIf} 
    112121SectionEnd 
     
    156165 
    157166        ; Check the dependencies of the PyGTK GUI before proceding... 
    158         ${If} $PYOK == 'NOK' 
     167        ${If} $PYOK != 'OK' 
    159168                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' 
    161170                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" 
    163172                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" 
    165174                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" 
    167176                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)" 
    168177        ${Else}