<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Installing_fonts</id>
	<title>Installing fonts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Installing_fonts"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Installing_fonts&amp;action=history"/>
	<updated>2026-08-18T12:04:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Installing_fonts&amp;diff=25853&amp;oldid=prev</id>
		<title>Anders: /* FontInstall.nsh */ Allow skipping extraction</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Installing_fonts&amp;diff=25853&amp;oldid=prev"/>
		<updated>2023-06-12T21:40:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;FontInstall.nsh: &lt;/span&gt; Allow skipping extraction&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;â† Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:40, 12 June 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!macro FontInstallHelper FontFileSrc FontFileDst FontInternalName Resource RegSuffix RegRoot&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!macro FontInstallHelper FontFileSrc FontFileDst FontInternalName Resource RegSuffix RegRoot&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ClearErrors&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ClearErrors&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;!if &quot;${FontFileSrc}&quot; != &quot;&quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;${IfNot} ${FileExists} &amp;quot;${FontFileDst}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;${IfNot} ${FileExists} &amp;quot;${FontFileDst}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	File &amp;quot;/oname=${FontFileDst}&amp;quot; &amp;quot;${FontFileSrc}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	File &amp;quot;/oname=${FontFileDst}&amp;quot; &amp;quot;${FontFileSrc}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;${EndIf}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;${EndIf}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;!endif&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;${IfNot} ${Errors}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;${IfNot} ${Errors}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	Push $0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	Push $0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-25827:rev-25853 --&gt;
&lt;/table&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Installing_fonts&amp;diff=25827&amp;oldid=prev</id>
		<title>Anders: Added category</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Installing_fonts&amp;diff=25827&amp;oldid=prev"/>
		<updated>2022-10-16T23:56:40Z</updated>

		<summary type="html">&lt;p&gt;Added category&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;â† Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:56, 16 October 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:System Related Functions]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{PageAuthor|Anders}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Basic font installation/uninstallation.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Basic font installation/uninstallation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-25826:rev-25827 --&gt;
&lt;/table&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Installing_fonts&amp;diff=25826&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;Basic font installation/uninstallation.  === FontInstall.nsh === &lt;highlight-nsis&gt; !include LogicLib.nsh !include WinMessages.nsh  !macro FontInstallHelper FontFileSrc FontFile...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Installing_fonts&amp;diff=25826&amp;oldid=prev"/>
		<updated>2022-10-16T23:55:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Basic font installation/uninstallation.  === FontInstall.nsh === &amp;lt;highlight-nsis&amp;gt; !include LogicLib.nsh !include WinMessages.nsh  !macro FontInstallHelper FontFileSrc FontFile...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Basic font installation/uninstallation.&lt;br /&gt;
&lt;br /&gt;
=== FontInstall.nsh ===&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
!include LogicLib.nsh&lt;br /&gt;
!include WinMessages.nsh&lt;br /&gt;
&lt;br /&gt;
!macro FontInstallHelper FontFileSrc FontFileDst FontInternalName Resource RegSuffix RegRoot&lt;br /&gt;
ClearErrors&lt;br /&gt;
${IfNot} ${FileExists} &amp;quot;${FontFileDst}&amp;quot;&lt;br /&gt;
	File &amp;quot;/oname=${FontFileDst}&amp;quot; &amp;quot;${FontFileSrc}&amp;quot;&lt;br /&gt;
${EndIf}&lt;br /&gt;
${IfNot} ${Errors}&lt;br /&gt;
	Push $0&lt;br /&gt;
	Push &amp;quot;${Resource}&amp;quot;&lt;br /&gt;
	Exch $1&lt;br /&gt;
	Push &amp;quot;${FontInternalName}${RegSuffix}&amp;quot;&lt;br /&gt;
	Exch $2&lt;br /&gt;
	Push $9&lt;br /&gt;
	StrCpy $9 &amp;quot;Software\Microsoft\Windows NT\CurrentVersion\Fonts&amp;quot;&lt;br /&gt;
	!if &amp;quot;${NSIS_CHAR_SIZE}&amp;quot; &amp;lt; 2&lt;br /&gt;
	ReadRegStr $0 ${RegRoot} &amp;quot;SOFTWARE\Microsoft\Windows NT\CurrentVersion&amp;quot; &amp;quot;CurrentVersion&amp;quot;&lt;br /&gt;
	${IfThen} $0 == &amp;quot;&amp;quot; ${|} StrCpy $9 &amp;quot;Software\Microsoft\Windows\CurrentVersion\Fonts&amp;quot; ${|}&lt;br /&gt;
	!endif&lt;br /&gt;
	System::Call &amp;#039;GDI32::AddFontResource(tr1)i.r0&amp;#039;&lt;br /&gt;
	${If} $0 &amp;lt;&amp;gt; 0&lt;br /&gt;
		WriteRegStr ${RegRoot} &amp;quot;$9&amp;quot; &amp;quot;$2&amp;quot; &amp;quot;$1&amp;quot;&lt;br /&gt;
	${Else}&lt;br /&gt;
		SetErrors&lt;br /&gt;
	${EndIf}&lt;br /&gt;
	Pop $9&lt;br /&gt;
	Pop $2&lt;br /&gt;
	Pop $1&lt;br /&gt;
	Pop $0&lt;br /&gt;
${Else}&lt;br /&gt;
	SetErrors&lt;br /&gt;
${EndIf}&lt;br /&gt;
!macroend&lt;br /&gt;
!macro FontInstallTTF FontFileSrc FontFileName FontInternalName&lt;br /&gt;
!insertmacro FontInstallHelper &amp;quot;${FontFileSrc}&amp;quot; &amp;quot;$Fonts\${FontFileName}&amp;quot; &amp;quot;${FontInternalName}&amp;quot; &amp;quot;${FontFileName}&amp;quot; &amp;quot; (TrueType)&amp;quot; HKLM&lt;br /&gt;
!macroend&lt;br /&gt;
&lt;br /&gt;
!macro FontUninstallHelper FontFileDst FontInternalName Resource RegSuffix RegRoot&lt;br /&gt;
System::Call &amp;#039;GDI32::RemoveFontResource(t&amp;quot;${Resource}&amp;quot;)&amp;#039;&lt;br /&gt;
DeleteRegValue ${RegRoot} &amp;quot;Software\Microsoft\Windows NT\CurrentVersion\Fonts&amp;quot; &amp;quot;${FontInternalName}${RegSuffix}&amp;quot;&lt;br /&gt;
!if &amp;quot;${NSIS_CHAR_SIZE}&amp;quot; &amp;lt; 2&lt;br /&gt;
DeleteRegValue ${RegRoot} &amp;quot;Software\Microsoft\Windows\CurrentVersion\Fonts&amp;quot; &amp;quot;${FontInternalName}${RegSuffix}&amp;quot;&lt;br /&gt;
!endif&lt;br /&gt;
ClearErrors&lt;br /&gt;
Delete &amp;quot;${FontFileDst}&amp;quot;&lt;br /&gt;
!macroend&lt;br /&gt;
!macro FontUninstallTTF FontFileName FontInternalName&lt;br /&gt;
!insertmacro FontUninstallHelper &amp;quot;$Fonts\${FontFileName}&amp;quot; &amp;quot;${FontInternalName}&amp;quot; &amp;quot;${FontFileName}&amp;quot; &amp;quot; (TrueType)&amp;quot; HKLM&lt;br /&gt;
!macroend&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
RequestExecutionLevel Admin&lt;br /&gt;
!include &amp;quot;FontInstall.nsh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Section&lt;br /&gt;
&lt;br /&gt;
StrCpy $1 0&lt;br /&gt;
; Hardcoded name&lt;br /&gt;
!insertmacro FontInstallTTF &amp;quot;C:\myfiles\msgithub\CascadiaCodePL.ttf&amp;quot; &amp;quot;CascadiaCodePL.ttf&amp;quot; &amp;quot;Cascadia Code PL Regular&amp;quot;&lt;br /&gt;
${IfNotThen} ${Errors} ${|} IntOp $1 $1 + 1 ${|}&lt;br /&gt;
&lt;br /&gt;
; Gettting the name dynamically using a plug-in&lt;br /&gt;
InitPluginsDir&lt;br /&gt;
File &amp;quot;/oname=$PluginsDir\AnotherFont.ttf&amp;quot; &amp;quot;C:\myfiles\AnotherFont.ttf&amp;quot;&lt;br /&gt;
FontInfo::GetFontName &amp;quot;$PluginsDir\AnotherFont.ttf&amp;quot;&lt;br /&gt;
${If} $0 != &amp;quot;&amp;quot;&lt;br /&gt;
	!insertmacro FontInstallTTF &amp;quot;C:\myfiles\AnotherFont.ttf&amp;quot; &amp;quot;AnotherFont.ttf&amp;quot; $0&lt;br /&gt;
	${IfNotThen} ${Errors} ${|} IntOp $1 $1 + 1 ${|}&lt;br /&gt;
${EndIf}&lt;br /&gt;
&lt;br /&gt;
${If} $1 &amp;lt;&amp;gt; 0&lt;br /&gt;
	DetailPrint &amp;quot;Successfully installed $1 font(s)...&amp;quot;&lt;br /&gt;
	SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000&lt;br /&gt;
${EndIf}&lt;br /&gt;
&lt;br /&gt;
SectionEnd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Section Uninstall&lt;br /&gt;
&lt;br /&gt;
StrCpy $1 0&lt;br /&gt;
!insertmacro FontUninstallTTF &amp;quot;CascadiaCodePL.ttf&amp;quot; &amp;quot;Cascadia Code PL Regular&amp;quot;&lt;br /&gt;
${IfNotThen} ${Errors} ${|} IntOp $1 $1 + 1 ${|}&lt;br /&gt;
&lt;br /&gt;
FontInfo::GetFontName &amp;quot;$Fonts\AnotherFont.ttf&amp;quot;&lt;br /&gt;
${If} $0 != &amp;quot;&amp;quot;&lt;br /&gt;
	!insertmacro FontUninstallTTF &amp;quot;AnotherFont.ttf&amp;quot; $0&lt;br /&gt;
	${IfNotThen} ${Errors} ${|} IntOp $1 $1 + 1 ${|}&lt;br /&gt;
${EndIf}&lt;br /&gt;
&lt;br /&gt;
${If} $1 &amp;lt;&amp;gt; 0&lt;br /&gt;
	DetailPrint &amp;quot;Successfully uninstalled $1 font(s)...&amp;quot;&lt;br /&gt;
	SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000&lt;br /&gt;
${EndIf}&lt;br /&gt;
&lt;br /&gt;
SectionEnd&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>