Archive: Change font in MUI uninstaller


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.


the define has the same name (no UN)


I'm sorry but I don't understand.

are you refering to this two lines:
!define MUI_PAGE_CUSTOMFUNCTION_SHOW "ChangeFont"
!define MUI_UNPAGE_CUSTOMFUNCTION_SHOW "un.ChangeFont2"
or something else cause there are two uns in second?


Yes, he is. Both should be MUI_PAGE_CUSTOMFUNCTION_SHOW.


That's what happens when english is not your native language.
I've read "you are missing an un" instead of "you have to much uns". God damn!

Thanks!
Now it works!