Unduh file berikut, taruh script header .nsh di folder include, dan library .dll di folder plugins (atau plugins/x86_ansi) jika menggunakan Windows 64bit
https://nsis.sourceforge.io/mediawiki/images/7/78/FontName-0.7.zip (installer, pindah FileName.dll ke x86_ansi jika OS 64bit) atau unduh https://file.io/yBr4UoFl
!include FontReg.nsh
!include FontName.nsh
!include WinMessages.nsh
StrCpy $FONT_DIR $FONTS
!insertmacro InstallTTFFont "SiapCetak\settings\fonts\SR.ttf"
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
Jika menggunakan GDI
!include WinMessages.nsh
System::Call "GDI32::AddFontResourceA(t) i ('SR.ttf') .s"
Pop $0
# $0 is zero if the function failed
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
Mencari lokasi MyDocument
Function "GetMyDocs"
ReadRegStr $0 HKCU \
"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" \
Personal
FunctionEnd
Call "GetMyDocs"
$MyDocs = $0