Yes, thank you. I did checked both pages. In fact I took the macros from there. But I am having problems using them and I do not know how to continue.
My problem is that in compilation, I get the following messages:
[SMALL]!insertmacro: InstallTTFFont
Push: $R0
Push: $R1
Push: $R2
!define: "Index"="Line215.5"
SetOutPath: "$FONT_DIR"
IfFileExists: "$FONT_DIR\..\Fonts\LeMusNot.ttf" ? Line215.5 :
File: "LeMusNot.ttf" 17192 bytes
ReadRegStr $R0 HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion
IfErrors ?Line215.5-9x:Line215.5-NT
StrCpy $R1 "Software\Microsoft\Windows NT\CurrentVersion\Fonts" () ()
Goto: Line215.5-GO
StrCpy $R1 "Software\Microsoft\Windows\CurrentVersion\Fonts" () ()
Goto: Line215.5-GO
ClearErrors
!insertmacro: FontName
Push: $FONT_DIR\..\Fonts\LeMusNot.ttf
Call "TranslateFontName"
Invalid command: FontName::Name
Error in macro FontName on macroline 3
Error in macro InstallTTFFont on macroline 25
Error in script "C:\LenMus\LenMus\Instalacion\Instalar.nsi" on line 215 -- aborting creation process
[/SMALL]
And I don't know how to debug this. Line 3 of macro FontName is this:
Fontname::Name
I supose it is a call to the Name function in FontName.dll plugin but I do not know either how to continue nor what to do. Thas's why I was trying to find a full example, to try to find differences from my code.
Thank you anyway.