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, 199 views)
mazdakam is offline   Reply With Quote
Old 30th November 2007, 16:43   #2
mazdakam
Junior Member
 
mazdakam's Avatar
 
Join Date: Nov 2007
Posts: 35
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 is offline   Reply With Quote
Old 30th November 2007, 17:07   #3
mazdakam
Junior Member
 
mazdakam's Avatar
 
Join Date: Nov 2007
Posts: 35
off finally i found the problem:

http://forums.winamp.com/showthread....ight=RemoveTTF

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

can some one improve this?!
mazdakam is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump