Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th January 2004, 20:13   #1
zorro1
Junior Member
 
Join Date: Jan 2004
Posts: 5
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
zorro1 is offline   Reply With Quote
Old 17th January 2004, 21:40   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
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.

Last edited by Joost Verburg; 17th January 2004 at 21:57.
Joost Verburg is offline   Reply With Quote
Old 18th January 2004, 01:21   #3
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,166
Send a message via ICQ to Yathosho
maybe this helps?
Yathosho is online now   Reply With Quote
Old 18th January 2004, 07:57   #4
zorro1
Junior Member
 
Join Date: Jan 2004
Posts: 5
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
zorro1 is offline   Reply With Quote
Old 18th January 2004, 10:55   #5
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to 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
Vytautas is offline   Reply With Quote
Reply
Go Back   Winamp 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