title: How can I delete fonts from my code, under Windows?
body: <p><a href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr08/hey0425.mspx" rel="nofollow noreferrer">This article</a> showed me how to install fonts from a script, but now I'm faced with the problem of removing them. How can I do that ? Any language is ok, I'll convert the info to what I need later.</p>
  <p>EDIT: Okay, so I now know how to uninstall fonts ( most of the part at least ). I'm issuing calls to <code>RemoveFontResource</code>. After that I use <code>SendMessage</code> with parameters: <code>0xffff,0x001D,0,0</code> ( HWND_BROACAST,WM_FONTCHANGE ... and I forgot what the other two parameters stand for ). The thing is, this deletes the font, but in the <code>Control Panel</code>'s <code>Fonts</code> entry, the font still appears there ( even though if you try to delete it from there as well, it will say it cannot read from source file or disk.</p>
  <p>So basically, I'm deleting a font in this order:</p>
  <ul>
  <li>deleting physically from the <code>C:\Windows\Fonts</code></li>
  <li>calling RemoveFontResource</li>
  <li>calling SendMessage</li>
  </ul>
  <p>What's the proper way of uninstalling?</p>