Skip to content
⌘ NSIS Forum Archive

just 1 question

5 posts

zorro1#

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#edited
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.
zorro1#
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#
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