version 1.10, 2004/12/22 13:42:54
|
version 1.11, 2004/12/27 10:02:03
|
Line 221 Section "Amaya" SecAmaya
|
Line 221 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 358 Section "Amaya" SecAmaya
|
Line 360 Section "Amaya" SecAmaya
|
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "UninstallString" '"$INSTDIR\Uninstall.exe"' |
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "UninstallString" '"$INSTDIR\Uninstall.exe"' |
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "InstallLocation" "$INSTDIR" |
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "InstallLocation" "$INSTDIR" |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "DisplayName" "Amaya" |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "DisplayName" "Amaya" |
; WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "DisplayIcon" "$INSTDIR\NSIS.exe,0" |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "DisplayIcon" "$INSTDIR\WindowsWX\bin\amaya.exe" |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "DisplayVersion" "${VERSION}" |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "DisplayVersion" "${VERSION}" |
; WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "VersionMajor" "${VER_MAJOR}" |
|
; WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "VersionMinor" "${VER_MINOR}.${VER_REVISION}" |
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "URLInfoAbout" "http://www.w3.org/Amaya" |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" "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 379 Section "Amaya" SecAmaya
|
Line 388 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 396 FunctionEnd
|
Line 430 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 436 Section "Uninstall"
|
Line 470 Section "Uninstall"
|
|
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" |
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AmayaWX-debug" |
DeleteRegKey HKLM "Software\AmayaWX-debug" |
DeleteRegKey HKLM "Software\AmayaWX-debug" |
|
DeleteRegKey HKCR "Amaya" |
|
|
SectionEnd |
SectionEnd |
|
|