/[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 602 by johnpye, Tue May 9 04:59:03 2006 UTC revision 603 by johnpye, Mon May 15 14:38:01 2006 UTC
# Line 48  Section "ASCEND (required)" Line 48  Section "ASCEND (required)"
48    ; Set output path to the installation directory.    ; Set output path to the installation directory.
49    SetOutPath $INSTDIR    SetOutPath $INSTDIR
50        
51    ; Put file there    ; Python interface
52    File "_ascpy.dll"    File "_ascpy.dll"
53    File "..\ascend.dll"    File "..\ascend.dll"
54    File "config.py"    File "config.py"
# Line 56  Section "ASCEND (required)" Line 56  Section "ASCEND (required)"
56    SetOutPath $INSTDIR\glade    SetOutPath $INSTDIR\glade
57    File "glade\*.glade"    File "glade\*.glade"
58    File "glade\*.png"    File "glade\*.png"
59    
60      ; Model Library
61    SetOutPath $INSTDIR\models    SetOutPath $INSTDIR\models
62    File "..\models\*.a4c"    File /r "..\models\*.a4*"
63    File "..\models\*.a4l"    File /r "..\models\*.bz2"
64    SetOutPath $INSTDIR\models\johnpye  
65    File "..\models\johnpye\*.a4c"    ; Tcl/Tk interface
66      SetOutPath $INSTDIR\tcltk
67      File /r "..\tcltk\TK\*"
68      SetOutPath $INSTDIR
69      File "..\tcltk\generic\interface\ascendtcl.dll"
70      File "..\tcltk\generic\interface\ascend4.exe"
71    
72    SetOutPath $INSTDIR    SetOutPath $INSTDIR
73    File "Makefile.bt"    File "Makefile.bt"
74    File "ascend.syn"    File "ascend.syn"
75    
76      ; Set 'librarypath' in .ascend.ini
77    WriteINIstr $APPDATA\.ascend.ini Directories librarypath "$DOCUMENTS\ascdata;$INSTDIR\models"    WriteINIstr $APPDATA\.ascend.ini Directories librarypath "$DOCUMENTS\ascdata;$INSTDIR\models"
78    
79      ; Create 'ascend.bat' launcher for PyGTK interface
80    ClearErrors    ClearErrors
81    FileOpen $0 $INSTDIR\ascend.bat w    FileOpen $0 $INSTDIR\ascend.bat w
82    IfErrors done    IfErrors done
# Line 86  Section "ASCEND (required)" Line 96  Section "ASCEND (required)"
96    
97    FileClose $0    FileClose $0
98    done:    done:
   
99        
100    ; Write the installation path into the registry    ; Write the installation path into the registry
101    WriteRegStr HKLM SOFTWARE\ASCEND "Install_Dir" "$INSTDIR"    WriteRegStr HKLM SOFTWARE\ASCEND "Install_Dir" "$INSTDIR"
# Line 106  Section "Start Menu Shortcuts" Line 115  Section "Start Menu Shortcuts"
115    CreateDirectory "$SMPROGRAMS\ASCEND"    CreateDirectory "$SMPROGRAMS\ASCEND"
116    CreateShortCut "$SMPROGRAMS\ASCEND\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0    CreateShortCut "$SMPROGRAMS\ASCEND\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
117    CreateShortCut "$SMPROGRAMS\ASCEND\ASCEND.lnk" "$INSTDIR\ascend.bat" "" "$INSTDIR\ascend.bat" 0    CreateShortCut "$SMPROGRAMS\ASCEND\ASCEND.lnk" "$INSTDIR\ascend.bat" "" "$INSTDIR\ascend.bat" 0
118      CreateShortCut "$SMPROGRAMS\ASCEND\ASCEND Tcl/Tk.lnk" "$INSTDIR\ascend4.exe" "" "$INSTDIR\ascend4.exe" 0
119        
120  SectionEnd  SectionEnd
121    
# Line 120  Section "Uninstall" Line 130  Section "Uninstall"
130    DeleteRegKey HKLM SOFTWARE\ASCEND    DeleteRegKey HKLM SOFTWARE\ASCEND
131    
132    ; Remove files and uninstaller    ; Remove files and uninstaller
133    Delete $INSTDIR\_ascend.dll    Delete $INSTDIR\_ascpy.dll
134      Delete $INSTDIR\ascendtcl.dll
135      Delete $INSTDIR\ascend.dll
136    Delete $INSTDIR\ascend.bat    Delete $INSTDIR\ascend.bat
137    Delete $INSTDIR\*.py    Delete $INSTDIR\*.py
138    Delete $INSTDIR\glade\*    Delete $INSTDIR\glade\*
139    Delete $INSTDIR\Makefile.bt    Delete $INSTDIR\Makefile.bt
140    Delete $INSTDIR\ascend.syn    Delete $INSTDIR\ascend.syn
141    Delete $INSTDIR\models\*    Delete $INSTDIR\models\*
142    Delete $INSTDIR\models\johnpye\*    Delete $INSTDIR\models\johnpye\*
143      RMDir /r $INSTDIR\tcltk
144    RMDir $INSTDIR\models\johnpye    RMDir $INSTDIR\models\johnpye
145    RMDIR $INSTDIR\models    RMDIR $INSTDIR\models
146    

Legend:
Removed from v.602  
changed lines
  Added in v.603

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