Old 7th November 2011, 23:06   #1
agesoftware2
Junior Member
 
Join Date: Nov 2011
Posts: 1
Error with Font

Hello,
I am trying to write a script where a font will be installed, but am getting an error. My error report is:
!insertmacro: InstallTTFFont
Push: $R0
Push: $R1
Push: $R2
!define: "Index"="Line66.5"
SetOutPath: "$FONT_DIR"
IfFileExists: "$FONT_DIR\v2dlx.ttf" ? Line66.5 :
File: "v2dlx.ttf" [compress] 0/69020 bytes
ReadRegStr $R0 HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion
IfErrors ?Line66.5-9x:Line66.5-NT
StrCpy $R1 "Software\Microsoft\Windows NT\CurrentVersion\Fonts" () ()
Goto: Line66.5-GO
StrCpy $R1 "Software\Microsoft\Windows\CurrentVersion\Fonts" () ()
Goto: Line66.5-GO
ClearErrors
!insertmacro: FontName
Push: $FONT_DIR\v2dlx.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:\Gameguis\drbgame\Diploware.nsi" on line 66 -- aborting creation process

Are there any suggestions as to what might be the trouble? I have uploaded my scripts. I very much appreciate any assistance.

Andrew
Attached Files
File Type: nsi Diploware.nsi (3.8 KB, 124 views)
File Type: nsi FontReg.nsi (3.9 KB, 112 views)
File Type: nsh FontReg.nsh (3.9 KB, 114 views)
File Type: nsh FontName.nsh (4.6 KB, 117 views)
agesoftware2 is offline   Reply With Quote
Old 7th November 2011, 23:51   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
NSIS cannot find the fontname plugin

IntOp $PostCount $PostCount + 1
Anders 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