Change font in MUI uninstaller
I'm changing font used to display $InstDir in instaler and uninstaler.
In installer I'm using this code:
...
!define MUI_PAGE_CUSTOMFUNCTION_SHOW "ChangeFont"
!insertmacro MUI_PAGE_DIRECTORY
...
Function "ChangeFont"
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1019
SendMessage $0 ${TVM_SETBKCOLOR} 0 0x00BAB0A6
SendMessage $0 ${TVM_SETTEXTCOLOR} 0 0xFFFFFF
CreateFont $1 "Tahoma" 11 0
SendMessage $0 ${WM_SETFONT} $1 0
FunctionEnd
...
And it works fine.
When I use this code in uninstaler:
!define MUI_UNPAGE_CUSTOMFUNCTION_SHOW "un.ChangeFont2"
!insertmacro MUI_UNPAGE_CONFIRM
...
c/p function above with changed name
...
I get error message that uninstall function ChangeFont2 is not referenced.