/[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 1462 by jpye, Sat Jun 2 13:54:06 2007 UTC revision 1463 by jpye, Sun Jun 3 02:48:17 2007 UTC
# Line 23  OutFile ascend-setup.exe Line 23  OutFile ascend-setup.exe
23  !endif  !endif
24    
25    
26  ;SetCompressor /FINAL zlib  SetCompressor /FINAL zlib
27  SetCompressor /SOLID lzma  ;SetCompressor /SOLID lzma
28    
29  ; The default installation directory  ; The default installation directory
30  InstallDir $PROGRAMFILES\ASCEND  InstallDir $PROGRAMFILES\ASCEND
# Line 131  Section "ASCEND (required)" Line 131  Section "ASCEND (required)"
131      WriteRegStr HKLM SOFTWARE\ASCEND "INSTALL_INCLUDE" "$INSTDIR\include"      WriteRegStr HKLM SOFTWARE\ASCEND "INSTALL_INCLUDE" "$INSTDIR\include"
132      WriteRegStr HKLM SOFTWARE\ASCEND "INSTALL_ASCDATA" "$INSTDIR"      WriteRegStr HKLM SOFTWARE\ASCEND "INSTALL_ASCDATA" "$INSTDIR"
133      WriteRegStr HKLM SOFTWARE\ASCEND "INSTALL_MODELS" "$INSTDIR\models"      WriteRegStr HKLM SOFTWARE\ASCEND "INSTALL_MODELS" "$INSTDIR\models"
134        WriteRegStr HKLM SOFTWARE\ASCEND "GTKLIBS" "$GTKPATH"
135    
136      ; Create 'ascend-config.bat' batch file for launching the python script 'ascend-config'.      ; Create 'ascend-config.bat' batch file for launching the python script 'ascend-config'.
137      ClearErrors      ClearErrors
# Line 178  Section "PyGTK GUI" Line 179  Section "PyGTK GUI"
179                  ; Python interface                  ; Python interface
180                  File "_ascpy.dll"                  File "_ascpy.dll"
181                  File "*.py"                  File "*.py"
182                    File "ascend"
183                    
184                  File "glade\ascend.ico"                  File "glade\ascend.ico"
185                  File "glade\ascend-doc.ico"                  File "glade\ascend-doc.ico"
186                                    
# Line 186  Section "PyGTK GUI" Line 189  Section "PyGTK GUI"
189                  File "glade\*.png"                  File "glade\*.png"
190                  File "glade\*.svg"                  File "glade\*.svg"
191    
                 ; Create 'ascend.bat' launcher for PyGTK interface  
                 ClearErrors  
                 FileOpen $0 $INSTDIR\ascend.bat w  
                 IfErrors pydone  
                 FileWrite $0 "@echo off"  
                 FileWriteByte $0 "13"  
                 FileWriteByte $0 "10"  
                 FileWrite $0 "set PATH=$PATH"  
                 FileWriteByte $0 "13"  
                 FileWriteByte $0 "10"  
                 FileWrite $0 "cd "  
                 FileWrite $0 $INSTDIR  
                 FileWriteByte $0 "13"  
                 FileWriteByte $0 "10"  
                 FileWrite $0 "$PYPATH\python gtkbrowser.py --pygtk-assets="  
                 FileWriteByte $0 "34"  
                 FileWrite $0 "$INSTDIR\glade"  
                 FileWriteByte $0 "34"  
                 FileWrite $0 " %1 %2 %3 %4 %5 %6 %7 %8"  
                 FileWriteByte $0 "13"  
                 FileWriteByte $0 "10"  
   
                 FileClose $0  
   
192                  StrCpy $PYINSTALLED "1"                  StrCpy $PYINSTALLED "1"
193                  WriteRegDWORD HKLM "SOFTWARE\ASCEND" "Python" 1                  WriteRegDWORD HKLM "SOFTWARE\ASCEND" "Python" 1
194    
# Line 247  a4lnobkp: Line 226  a4lnobkp:
226                  WriteRegStr HKCR "ASCEND.model\DefaultIcon" "" "$INSTDIR\ascend-doc.ico"                  WriteRegStr HKCR "ASCEND.model\DefaultIcon" "" "$INSTDIR\ascend-doc.ico"
227    
228  a4cskip:  a4cskip:
229                  WriteRegStr HKCR "ASCEND.model\shell\open\command" "" '$INSTDIR\ascend.bat "%1"'                  WriteRegStr HKCR "ASCEND.model\shell\open\command" "" '$PYPATH\pythonw "$INSTDIR\ascend" "%1"'
230    
231                  System::Call 'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)'                  System::Call 'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)'
232    
# Line 304  smnotcl: Line 283  smnotcl:
283    
284    ; Link to PyGTK GUI    ; Link to PyGTK GUI
285    StrCmp $PYINSTALLED "" smdone 0    StrCmp $PYINSTALLED "" smdone 0
286    CreateShortCut "$SMPROGRAMS\ASCEND\ASCEND.lnk" "$INSTDIR\ascend.bat" "" "$INSTDIR\ascend.ico" 0 "SW_SHOWMINIMIZED"    CreateShortCut "$SMPROGRAMS\ASCEND\ASCEND.lnk" "$PYPATH\pythonw.exe" '"$INSTDIR\ascend"' "$INSTDIR\ascend.ico" 0
287  smdone:  smdone:
288        
289  SectionEnd  SectionEnd
# Line 322  Section "Uninstall" Line 301  Section "Uninstall"
301  unpython:  unpython:
302      DetailPrint "--- REMOVING PYTHON COMPONENTS ---"      DetailPrint "--- REMOVING PYTHON COMPONENTS ---"
303      Delete $INSTDIR\_ascpy.dll      Delete $INSTDIR\_ascpy.dll
304      Delete $INSTDIR\ascend.bat      Delete $INSTDIR\ascend
305      Delete $INSTDIR\*.py      Delete $INSTDIR\*.py
306      Delete $INSTDIR\*.pyc      Delete $INSTDIR\*.pyc
307      Delete $INSTDIR\glade\*.glade      Delete $INSTDIR\glade\*.glade

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

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