Mercurial > gub
comparison nsis/schikkers-list.nsi @ 6492:5bab80dd593a
mingw::schikkers-list: --no-autocompile and install Emmentaler font.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Tue, 08 Feb 2011 12:33:54 +0100 |
parents | c79ddba57147 |
children | 1ee835259b55 |
comparison
equal
deleted
inserted
replaced
6491:371a49e82001 | 6492:5bab80dd593a |
---|---|
1 ;;;; schikkers-list.nsi -- Schikkers-List installer script for Microsoft Windows | 1 ;;;; schikkers-list.nsi -- Schikkers-List installer script for Microsoft Windows |
2 ;;;; (c) 2005--2010 | 2 ;;;; (c) 2005--2011 |
3 ;;;; Jan Nieuwenhuizen <janneke@gnu.org> | 3 ;;;; Jan Nieuwenhuizen <janneke@gnu.org> |
4 ;;;; Han-Wen Nienhuys <janneke@gnu.org> | 4 ;;;; Han-Wen Nienhuys <janneke@gnu.org> |
5 ;;;; licence: GNU GPL | 5 ;;;; licence: GNU GPL |
6 | 6 |
7 ;; For quick [wine] test runs | 7 ;; For quick [wine] test runs |
93 WriteUninstaller "uninstall.exe" | 93 WriteUninstaller "uninstall.exe" |
94 CreateDirectory "$INSTDIR\usr\bin" | 94 CreateDirectory "$INSTDIR\usr\bin" |
95 | 95 |
96 Call registry_installer | 96 Call registry_installer |
97 Call registry_path | 97 Call registry_path |
98 Call postinstall_schikkers_list | |
98 SectionEnd | 99 SectionEnd |
99 | 100 |
100 Function registry_path | 101 Function registry_path |
101 ReadRegStr $R0 HKLM "${ENVIRON}" "PATH" | 102 ReadRegStr $R0 HKLM "${ENVIRON}" "PATH" |
102 WriteRegExpandStr HKLM "${ENVIRON}" "PATH" "$R0;$INSTDIR\usr\bin" | 103 WriteRegExpandStr HKLM "${ENVIRON}" "PATH" "$R0;$INSTDIR\usr\bin" |
346 # %1 is the GUILE command, so must be quoted bo the space | 347 # %1 is the GUILE command, so must be quoted bo the space |
347 ;; WriteRegExpandStr HKCR "scm_auto_file\shell\open\command" "" '"$INSTDIR\usr\bin\guile-windows.exe" "%1" %2 %3 %4 %5 %6 %7 %8 %9' | 348 ;; WriteRegExpandStr HKCR "scm_auto_file\shell\open\command" "" '"$INSTDIR\usr\bin\guile-windows.exe" "%1" %2 %3 %4 %5 %6 %7 %8 %9' |
348 WriteRegExpandStr HKCR "scm_auto_file\shell\open\command" "" '"$INSTDIR\usr\bin\guile-windows.exe" "%1" %2 %3 %4 %5 %6 %7 %8 %9' | 349 WriteRegExpandStr HKCR "scm_auto_file\shell\open\command" "" '"$INSTDIR\usr\bin\guile-windows.exe" "%1" %2 %3 %4 %5 %6 %7 %8 %9' |
349 ;;scm_end: | 350 ;;scm_end: |
350 FunctionEnd | 351 FunctionEnd |
352 | |
353 !include "FontName.nsh" | |
354 !include "FontReg.nsh" | |
355 | |
356 Function postinstall_schikkers_list | |
357 CopyFiles /silent "$INSTDIR\usr\share\lilypond\current\fonts\otf\Emmentaler-20.otf" "$WINDIR\Fonts\Emmentaler-20.otf" | |
358 StrCpy $FONT_DIR "$WINDIR\Fonts" | |
359 !insertmacro InstallTTFFont "${ROOT}\usr\share\lilypond\current\fonts\otf\Emmentaler-20.otf" | |
360 ClearErrors | |
361 FunctionEnd | |
362 | |
363 Function un.install_schikkers_list_ttf | |
364 Delete "$WINDIR\Fonts\Emmentaler-20.otf" | |
365 ClearErrors | |
366 FunctionEnd |