/[ascend]/trunk/pygtk/create.nsi
ViewVC logotype

Diff of /trunk/pygtk/create.nsi

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

revision 1463 by jpye, Sun Jun 3 02:48:17 2007 UTC revision 1464 by jpye, Sun Jun 3 04:09:36 2007 UTC
# Line 96  Section "ASCEND (required)" Line 96  Section "ASCEND (required)"
96      SetOutPath $INSTDIR      SetOutPath $INSTDIR
97      File "..\ascend.dll"      File "..\ascend.dll"
98      File "..\ascend-config"      File "..\ascend-config"
99        File "glade\ascend.ico"
100    
101    
102      ; Model Library      ; Model Library
103      SetOutPath $INSTDIR\models      SetOutPath $INSTDIR\models
# Line 180  Section "PyGTK GUI" Line 182  Section "PyGTK GUI"
182                  File "_ascpy.dll"                  File "_ascpy.dll"
183                  File "*.py"                  File "*.py"
184                  File "ascend"                  File "ascend"
                   
                 File "glade\ascend.ico"  
185                  File "glade\ascend-doc.ico"                  File "glade\ascend-doc.ico"
186                                    
187                  SetOutPath $INSTDIR\glade                  SetOutPath $INSTDIR\glade
# Line 240  a4cskip: Line 240  a4cskip:
240          MessageBox MB_OK "PyGTK GUI can not be installed, because Python was not found on this system. If you do want to use the PyGTK GUI, please check the installation instructions ($PYPATH)"          MessageBox MB_OK "PyGTK GUI can not be installed, because Python was not found on this system. If you do want to use the PyGTK GUI, please check the installation instructions ($PYPATH)"
241      ${EndIf}      ${EndIf}
242      Return      Return
243        
 pydone:  
     MessageBox MB_OK "PyGTK GUI was not installed properly -- problems with creating ascend.bar"      
244  SectionEnd  SectionEnd
245    
246  ;---------------------------------  ;---------------------------------
# Line 272  SectionEnd Line 270  SectionEnd
270  Section "Start Menu Shortcuts"  Section "Start Menu Shortcuts"
271        
272    WriteRegDWORD HKLM "SOFTWARE\ASCEND" "StartMenu" 1    WriteRegDWORD HKLM "SOFTWARE\ASCEND" "StartMenu" 1
273      
274      CreateDirectory "$SMPROGRAMS\ASCEND"  
275    
276    CreateDirectory "$SMPROGRAMS\ASCEND"    ; Link to PyGTK GUI
277    CreateShortCut "$SMPROGRAMS\ASCEND\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0    StrCmp $PYINSTALLED "" smdone 0
278      CreateShortCut "$SMPROGRAMS\ASCEND\ASCEND.lnk" "$PYPATH\pythonw.exe" '"$INSTDIR\ascend"' "$INSTDIR\ascend.ico" 0
279    smdone:
280    
281      ; Model library shortcut
282      CreateShortCut "$SMPROGRAMS\ASCEND\Model Library.lnk" "$INSTDIR\models" "" "$INSTDIR\models" 0
283    
284    
285    ; Link to Tcl/Tk GUI      ; Link to Tcl/Tk GUI  
286    StrCmp $TCLINSTALLED "" smnotcl 0      StrCmp $TCLINSTALLED "" smnotcl 0  
287    CreateShortCut "$SMPROGRAMS\ASCEND\ASCEND Tcl/Tk.lnk" "$INSTDIR\ascend4.exe" "" "$INSTDIR\ascend4.exe" 0    CreateShortCut "$SMPROGRAMS\ASCEND\ASCEND Tcl/Tk.lnk" "$INSTDIR\ascend4.exe" "" "$INSTDIR\ascend4.exe" 0
288  smnotcl:  smnotcl:
289    
290    ; Link to PyGTK GUI    CreateShortCut "$SMPROGRAMS\ASCEND\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
   StrCmp $PYINSTALLED "" smdone 0  
   CreateShortCut "$SMPROGRAMS\ASCEND\ASCEND.lnk" "$PYPATH\pythonw.exe" '"$INSTDIR\ascend"' "$INSTDIR\ascend.ico" 0  
 smdone:  
291        
292  SectionEnd  SectionEnd
293    
# Line 308  unpython: Line 311  unpython:
311      Delete $INSTDIR\glade\*.png      Delete $INSTDIR\glade\*.png
312      Delete $INSTDIR\glade\*.svg      Delete $INSTDIR\glade\*.svg
313      RmDir $INSTDIR\glade      RmDir $INSTDIR\glade
     Delete $INSTDIR\ascend.ico  
314      Delete $INSTDIR\ascend-doc.ico      Delete $INSTDIR\ascend-doc.ico
315    
316  ;--- file association (for Python GUI) ---  ;--- file association (for Python GUI) ---
# Line 380  unnostart: Line 382  unnostart:
382      Delete $INSTDIR\ascend-config      Delete $INSTDIR\ascend-config
383      Delete $INSTDIR\ascend-config.bat      Delete $INSTDIR\ascend-config.bat
384      Delete $INSTDIR\ascend.dll      Delete $INSTDIR\ascend.dll
385        Delete $INSTDIR\ascend.ico
386      Delete $INSTDIR\Makefile.bt      Delete $INSTDIR\Makefile.bt
387      Delete $INSTDIR\ascend.syn      Delete $INSTDIR\ascend.syn
388      RMDir /r $INSTDIR\models      RMDir /r $INSTDIR\models

Legend:
Removed from v.1463  
changed lines
  Added in v.1464

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