i am trying to write an installer that installs some fonts I use in my application. I use the following code to do this
I have two questions.
!include FontName.nsh
!include FontRegAdv.nsh
... ;more code in here
Section "Fonts"
!define KORIGANFONT "..\Fonts\KoriganITC TT Bold.ttf"
StrCpy $FONT_DIR $FONTS
!insertmacro FontName "JOKERMAN.TFF"
!insertmacro FontName ${KORIGANFONT}
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
SectionEnd
1) The installmacro FontName ${KORIGANFONT] line won't even compile. It says there are 4 parameters getting passed instead of 2. It must have something to do with the spaces in the name but I thought I handled that with the !define. I guess I don't know how to define a file name with spaces.
2) This code doesn't work. I'm using it straight from the examples but nothing gets installed. Has anyone created an install with a successfully working font install? Is this code no longer working for some reason? Have I messed up something I cannot see right now?
Thanks!