I am using (or trying to use) the FontReg plugin.
My nsi looks like this:
When I try to compile this I get the following error:!include FontName.nsh
!include FontReg.nsh
!include WinMessages.nsh
!define Fonts_Folder "$EXEDIR\fonts"
OutFile Install_Font.exe
Function Install_GE_Fonts
FindFirst $0 $1 "${Fonts_Folder}\*.TTF"
DetailPrint "Installing ${Fonts_Folder}\$1"
!insertmacro InstallTTFFont "${Fonts_Folder}\$1"
Loop:
IfErrors Done
FindNext $0 $1
IfFileExists "${Fonts_Folder}\$1" IsFile Done
IsFile:
DetailPrint "Installing ${Fonts_Folder}\$1"
!insertmacro InstallTTFFont "${Fonts_Folder}\$1"
Goto Loop
Done:
FindClose $0
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
FunctionEnd
Section
StrCpy $FONT_DIR $FONTS
Call Install_GE_Fonts
SectionEnd
If I execute the code with the InstallTTFFont macro lines commented out, I get the full paths and file names of all the fonts I need to install.!define: "FontFileName"="$0"
SetOutPath: "$FONT_DIR"
IfFileExists: "$FONT_DIR\$0" ? Line10.6 :
File: "$EXEDIR\fonts\$1" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in macro InstallTTFFont on macroline 14
Can someone please help?
Thank you!