I'm stuck trying to add a checkbox on Uninstaller Confirm page. I'm using MUI2 and nsDialogs the following way:
!define name customconfirm
!include "MUI2.nsh"
OutFile "${name}.exe"
Name "${name}"
InstallDir "$TEMPDIR"
var unCheckbox
Function un.MyConfirmShow
MessageBox MB_OK "Showing confirm page"
${NSD_CreateCheckbox} 50% 50% 100% 10u "&My checkbox"
Pop $unCheckbox
SetCtlColors $unCheckbox "" "ffffff"
FunctionEnd
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!define MUI_PAGE_CUSTOMFUNCTION_SHOW un.MyConfirmShow
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE English
Section
WriteUninstaller "$EXEDIR\uninst.exe"
SectionEnd When I run the generated uninstaller, it shows the message box I defined, which means my custom functions is called successfully, but there's no checkbox on confirm page. At first I thought that it might be hiddden for some reason, but Spy++ reveals there's no such control created on the page. Am I missing something essential?