Diff for /Amaya/amaya-wx_release.nsi between versions 1.10 and 1.11

version 1.10, 2004/12/22 13:42:54 version 1.11, 2004/12/27 10:02:03
Line 3 Line 3
   
   !include "MUI.nsh"    !include "MUI.nsh"
   
   
 ;--------------------------------  ;--------------------------------
 ;General  ;General
   
Line 14 Line 15
   ;Use lzma to compress (better than zip)    ;Use lzma to compress (better than zip)
   SetCompressor lzma    SetCompressor lzma
   
   
   ;Default installation folder    ;Default installation folder
   InstallDir "$PROGRAMFILES\AmayaWX"    InstallDir "$PROGRAMFILES\AmayaWX"
       
Line 220  Section "Amaya" SecAmaya Line 220  Section "Amaya" SecAmaya
   File resources\icons\*.gif    File resources\icons\*.gif
   SetOutPath "$INSTDIR\resources\xrc"    SetOutPath "$INSTDIR\resources\xrc"
   File resources\xrc\*.xrc    File resources\xrc\*.xrc
     SetOutPath "$INSTDIR\amaya\wxdialog"
     File amaya\wxdialog\appicon.ico
   
   SetDetailsPrint textonly    SetDetailsPrint textonly
   DetailPrint "Installing Amaya schemas"    DetailPrint "Installing Amaya schemas"
Line 357  Section "Amaya" SecAmaya Line 359  Section "Amaya" SecAmaya
   WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "UninstallString" '"$INSTDIR\Uninstall.exe"'    WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "UninstallString" '"$INSTDIR\Uninstall.exe"'
   WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "InstallLocation" "$INSTDIR"    WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "InstallLocation" "$INSTDIR"
   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "DisplayName" "Amaya"    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "DisplayName" "Amaya"
   ;WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "DisplayIcon" "$INSTDIR\NSIS.exe,0"    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "DisplayIcon" "$INSTDIR\WindowsWX\bin\amaya.exe"
   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "DisplayVersion" "${VERSION}"    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "DisplayVersion" "${VERSION}"
 ;  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "VersionMajor" "${VER_MAJOR}"  
 ;  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "VersionMinor" "${VER_MINOR}.${VER_REVISION}"  
   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "URLInfoAbout" "http://www.w3.org/Amaya"    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX" "URLInfoAbout" "http://www.w3.org/Amaya"
   
     ; Associate files to amaya
     WriteRegStr HKCR "Amaya" "" "Amaya Files"
     WriteRegStr HKCR "Amaya\DefaultIcon" "" "$INSTDIR\WindowsWX\bin\amaya.exe"
     ReadRegStr $R0 HKCR "Amaya\shell\open\command" ""
     StrCmp $R0 "" 0 no_amayaopen
       WriteRegStr HKCR "Amaya\shell" "" "open"
       WriteRegStr HKCR "Amaya\shell\open\command" "" '"$INSTDIR\WindowsWX\bin\amaya.exe" "%1"'
     no_amayaopen:
       
   ;Create uninstaller    ;Create uninstaller
   WriteUninstaller "$INSTDIR\Uninstall.exe"    WriteUninstaller "$INSTDIR\Uninstall.exe"
Line 378  Section "Amaya" SecAmaya Line 387  Section "Amaya" SecAmaya
   CreateShortCut "$DESKTOP\AmayaWX.lnk" "$INSTDIR\WindowsWX\bin\amaya.exe"    CreateShortCut "$DESKTOP\AmayaWX.lnk" "$INSTDIR\WindowsWX\bin\amaya.exe"
 SectionEnd  SectionEnd
   
   
   SubSection "File association" SecFileAss
   
   Section ".html (HyperText Markup Language)" SecAssHTML
     WriteRegStr HKCR ".html" "" "Amaya"
   SectionEnd
   
   Section ".xml (eXtensible Markup Language)" SecAssXML
     WriteRegStr HKCR ".xml" "" "Amaya"
   SectionEnd
   
   Section ".svg (Scalable Vector Graphics)" SecAssSVG
     WriteRegStr HKCR ".svg" "" "Amaya"
   SectionEnd
   
   Section ".mml (MathML)" SecAssMML
     WriteRegStr HKCR ".mml" "" "Amaya"
   SectionEnd
   
   Section ".css (Cascading Style Sheets)" SecAssCSS
     WriteRegStr HKCR ".css" "" "Amaya"
   SectionEnd
   
   SubSectionEnd
   
 ;--------------------------------  ;--------------------------------
 ;Installer Functions  ;Installer Functions
   
Line 395  FunctionEnd Line 429  FunctionEnd
   ;Assign descriptions to sections    ;Assign descriptions to sections
   !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN    !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
     !insertmacro MUI_DESCRIPTION_TEXT ${SecAmaya} "Amaya."      !insertmacro MUI_DESCRIPTION_TEXT ${SecAmaya} "Amaya."
       !insertmacro MUI_DESCRIPTION_TEXT ${SecFileAss} "Amaya files associations."
   !insertmacro MUI_FUNCTION_DESCRIPTION_END    !insertmacro MUI_FUNCTION_DESCRIPTION_END
   
    
 ;--------------------------------  ;--------------------------------
 ;Uninstaller Section  ;Uninstaller Section
   
Line 435  Section "Uninstall" Line 469  Section "Uninstall"
   
   DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX"    DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX"
   DeleteRegKey HKLM "Software\AmayaWX"    DeleteRegKey HKLM "Software\AmayaWX"
     DeleteRegKey HKCR "Amaya"
   
 SectionEnd  SectionEnd
   

Removed from v.1.10  
changed lines
  Added in v.1.11


Webmaster