InstallTTFFont succeeded but Display an error messagebox!
i use the following codes to install a font,it seemed to have worked,for i found the font in the control pannel and register.
-----------------------------------
Section -Fonts
StrCpy $FONT_DIR "$WINDIR\Fonts"
SetOutPath "$FONT_DIR"
File "src\MSYH.TTF"
;!insertmacro InstallTTF "src\MSYH.TTF"
!insertmacro InstallTTFFont "src\MSYH.TTF"
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
SectionEnd
-----------------------------------
but there was an error during the installing:
it gave an information box:
"用于NSISçš„å_—体å称 %s æ’件" (in Chinese)
and there was also a line of text displaying on the progress bar:
"cann't load c:\document..\FontName.dll"
but i can find the dll in the right directory!
Why?
Anybody has encountered this problem?
Thanks!