title: How do I install a font using NSIS?
body: <p>I have been trying to build an installer in NSIS that installs a font file. Here's my main installer script:</p>
  
  <pre><code>!include FontName.nsh
  !include FontReg.nsh
  !include WinMessages.nsh
  
  RequestExecutionLevel admin
  InstallDir $DESKTOP
  
  Name "Orange Juice"
  OutFile fonttest.exe
  
  Section "install"
  
      StrCpy $FONT_DIR $FONTS
      !insertmacro InstallTTFFont "orangejuice.ttf"
      DetailPrint "Installing Orange Juice Font..."
      SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
  
  SectionEnd
  </code></pre>
  
  <p>I got the file FontReg.nsh <a href="http://nsis.sourceforge.net/Register_Fonts" rel="nofollow">from here</a> and copied it verbatim into my <code>Program Files\NSIS\Include</code> folder. I got the file FontName.nsh (along with the corresponding DLL file) <a href="http://nsis.sourceforge.net/FontName_plug-in" rel="nofollow">from here</a> and copied those verbatim. Yet... when I run this script, the font doesn't get installed. What am I missing?</p>