Archive: Instaling and registering fonts - erros


Instaling and registering fonts - erros
  Hi!

I need to install and register fonts while installing other app. Following WIKI howto etc I've created this:




>!include FontRegAdv.nsh
>!include FontName.nsh

Section "Fonts"

SectionIn RO

StrCpy $FONT_DIR $FONTS

!insertmacro RemoveTTF 'LINEDRAW.TTF'
!insertmacro InstallTTF 'LINEDRAW.TTF'

SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000

SectionEnd
>


Fonts still seems to be uninstalled and installed correctly, registerd etc (on XP) but what I'm getting is:



2 warnings:

unknown variable/constant "{HWND_BROADCAST}" detected, ignoring (Installtest_font.nsi:564)
unknown variable/constant "{WM_FONTCHANGE}" detected, ignoring (Installtest_font.nsi:564)


I've been looking on google, on MSDN etc without any joy.
Could someone point me to the right direction? What I'm doing wrong or what is wrong with NSIS? Has anything changed in this matter in latest build? (I mean SENDMESSAGE).

I'm using the newest version of NSIS 2.34(and I'm not too sure but probably version 2.31 was working fine! Can't really test it now)

Many thanks in advance!

Cheers
Chris

!include WinMessages.nsh to resolve the ${WM_FONTCHANGE} definition.

${HWND_BROADCAST} seems not defined within your script.


Thank you very much!

That was the solution...

How could I miss that I don't really know :(
Sorry for wasting your time.

Cheers
Chris