zorro1
17th January 2004 21:13 UTC
just 1 question
sorry for my english.
i want unregistred 2 fonts and i use this in my script
Section Uninstall
DeleteRegValue HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "Maize Regular (TrueType)"
DeleteRegValue HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "Matrix (TrueType)"
fonts::unregisterFont "$WINDIR\FONTS\Matrix.ttf"
fonts::unregisterFont "$WINDIR\FONTS\Maize.ttf"
Delete "$WINDIR\FONTS\Maize.ttf"
Delete "$WINDIR\FONTS\Matrix.ttf"
SectionEnd
but the font is always registerd. where is my error ?
thank you for your
Joost Verburg
17th January 2004 22:40 UTC
What is exactly the problem? Does the font still appear in the list?
If you are using the latest NSIS 2 version, you can use $FONTS for the Fonts directory.
Yathosho
18th January 2004 02:21 UTC
maybe this helps?
zorro1
18th January 2004 08:57 UTC
The problem is that the fonts forces seem always registrered, when I
launch Word, it are in the list of the fonts then
which are removed in registry and directory fonts
Vytautas
18th January 2004 11:55 UTC
During my research for FontName plugin and the font registration pages in the archive I found that fonts will remain in the application lists while
1: GDI32::RemoveFontResourceA funtion is not called.
2: Any application still has a loaded font list.
Thus if any background program uses a font list your PC or those programs will need to be restarted before the font is removed from these lists.
As a note I noticed that even though the fonts are displayed in the lists they are no longer available for use and other fonts are substituted if the user selects that font.
Vytautas