Skip to content
⌘ NSIS Forum Archive

Error With Font instalation FontName plugIn

3 posts

mazdakam#

Error With Font instalation FontName plugIn

Hi
i want to install some fonts in windows so
i found this:


i try the sample but got error during compiling (using latest NSIS)
error in macro
aborting
and ....

please take a look at this code...

which part is incorrect!!?




!include FontRegAdv.nsh
!include FontName.nsh
Section "Fonts"
  StrCpy $FONT_DIR $FONTS
  !insertmacro InstallTTF 'BDavat.ttf'
  SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
SectionEnd
Section "un.Fonts"
  StrCpy $FONT_DIR $FONTS
  !insertmacro RemoveTTF 'BDavat.ttf'
  SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
SectionEnd 
i attached my instalation some one please help me and note me
mazdakam#
i must add i can install font correct but when i use Section "un.Fonts"

i cant compile the script!
i think all of error is about uninstall section g any ideas?
mazdakam#
off finally i found the problem:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


this is exactly i got in un istalation section
but there is no update and fix for it ...

can some one improve this?!