Windows 7 font problem
Hi all,
I'm using FontName plugin to add fonts during installation, but problems occur on Windows 7 (on XP it is ok!). After installation the font is phyically located within the correct directory, but it does not appear in the SystemControl>Font overview. If I manually move the font into the directory using Windows Explorer - overwriting the already installed one - afterwards everything works fine. To me it looks as if the registration did not work out somehow.
What I'm doing is unpacking the font to $FONTS, running InstallTTF from the plugin, and a SendMessage like this
!include FontRegAdv.nsh
!include FontName.nsh
...
RequestExecutionLevel admin
...
Section
SetShellVarContext all
SetOutPath "$FONTS"
File 'SOME PATH\FOO.TTF'
StrCpy $FONT_DIR "$FONTS"
!insertmacro InstallTTF 'SOME PATH\FOO.TTF'
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
SectionEnd
Any ideas why this does not work on Windows 7 but on XP?
Thanks,
siggel