/[ascend]/trunk/nsis/installer.nsi
ViewVC logotype

Diff of /trunk/nsis/installer.nsi

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

revision 1592 by jpye, Sat Aug 4 09:37:03 2007 UTC revision 1593 by jpye, Thu Aug 16 03:40:45 2007 UTC
# Line 248  Section "ASCEND (required)" Line 248  Section "ASCEND (required)"
248      File "..\solvers\cmslv\cmslv.dll"      File "..\solvers\cmslv\cmslv.dll"
249      File "..\solvers\lsode\lsode.dll"      File "..\solvers\lsode\lsode.dll"
250      File "..\solvers\ida\ida.dll"      File "..\solvers\ida\ida.dll"
251        
252      SetOutPath $INSTDIR      SetOutPath $INSTDIR
253      ;File "Makefile.bt"      ;File "Makefile.bt"
254      File "..\tools\textpad\ascend.syn"      File "..\tools\textpad\ascend.syn"
# Line 455  Section "Start Menu Shortcuts" Line 455  Section "Start Menu Shortcuts"
455  SectionEnd  SectionEnd
456    
457  ;------------------------------------------------------------------  ;------------------------------------------------------------------
458    ; HEADER FILES for DEVELOPERS
459    
460    Section /o "Header files (for developers)"
461        WriteRegDWORD HKLM "SOFTWARE\ASCEND" "HeaderFiles" 1
462    
463        SetOutPath $INSTDIR\include
464        File /r /x .svn "..\base\generic\*.h"
465    
466        SetOutPath $INSTDIR
467    SectionEnd
468    
469    ;------------------------------------------------------------------
470  ; UNINSTALLER  ; UNINSTALLER
471    
472  Section "Uninstall"  Section "Uninstall"
# Line 529  unnopython: Line 541  unnopython:
541          Delete $INSTDIR\book.pdf          Delete $INSTDIR\book.pdf
542      ${EndIf}      ${EndIf}
543    
544  ;--- start menu ---  ;--- header files ---
545    
546      ReadRegDWORD $1 HKLM "SOFTWARE\ASCEND" "StartMenu"      ReadRegDWORD $0 HKLM "SOFTWARE\ASCEND" "HeaderFiles"
547      IntCmp $1 0 unnostart unstart      ${If} $0 != 0
548  unstart:          DetailPrint "--- REMOVING HEADER FILES ---"
549      ; Remove shortcuts, if any          RMDir /r $INSTDIR\include
550      DetailPrint "--- REMOVING START MENU SHORTCUTS ---"      ${EndIf}
551      RmDir /r "$SMPROGRAMS\ASCEND"      
552    ;--- start menu ---
553    
554  unnostart:      ReadRegDWORD $0 HKLM "SOFTWARE\ASCEND" "StartMenu"
555        ${If} $0 != 0
556            ; Remove shortcuts, if any
557            DetailPrint "--- REMOVING START MENU SHORTCUTS ---"
558            RmDir /r "$SMPROGRAMS\ASCEND"
559        ${EndIf}
560    
561  ;--- common components ---  ;--- common components ---
562    
# Line 566  unnostart: Line 584  unnostart:
584      Delete $INSTDIR\solvers\cmslv.dll      Delete $INSTDIR\solvers\cmslv.dll
585      Delete $INSTDIR\solvers\lsode.dll      Delete $INSTDIR\solvers\lsode.dll
586      Delete $INSTDIR\solvers\ida.dll      Delete $INSTDIR\solvers\ida.dll
587        RMDir $INSTDIR\solvers
588    
589      ; Remove directories used      ; Remove directories used
590    

Legend:
Removed from v.1592  
changed lines
  Added in v.1593

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