View Single Post
Old 30th November 2007, 16:09   #1
mazdakam
Junior Member
 
mazdakam's Avatar
 
Join Date: Nov 2007
Posts: 35
Thumbs down Error With Font instalation FontName plugIn

Hi
i want to install some fonts in windows so
i found this:
http://nsis.sourceforge.net/FontName_plug-in

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!!?




PHP Code:
!include FontRegAdv.nsh
!include FontName.nsh

Section 
"Fonts"

  
StrCpy $FONT_DIR $FONTS

  
!insertmacro InstallTTF 'BDavat.ttf'

  
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE0 0 /TIMEOUT=5000
SectionEnd

Section 
"un.Fonts"

  
StrCpy $FONT_DIR $FONTS

  
!insertmacro RemoveTTF 'BDavat.ttf'

  
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE0 0 /TIMEOUT=5000
SectionEnd 
i attached my instalation some one please help me and note me
Attached Files
File Type: nsi font.nsi (2.5 KB, 201 views)
mazdakam is offline   Reply With Quote