Archive: Add custom page to uninstaller


Add custom page to uninstaller
Hi

I'm trying to add a custom page to my uninstaller - I've added them to my installer OK so I kinda know how they should work. Here's what I've got so far:

...
!define MUI_UNCUSTOMPAGECOMMANDS
!define MUI_UNINSTALLER
!define MUI_UNCONFIRMPAGE
...
!insertmacro MUI_UNPAGECOMMAND_CONFIRM
UninstPage custom un.DelDir
!insertmacro MUI_UNPAGECOMMAND_INSTFILES
...
Function un.onInit
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "DelDir.ini"
FunctionEnd
...
Function un.DelDir
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "DelDir.ini"
FunctionEnd
...
Section "Uninstall"
; remove directories used.
RMDir /r "$INSTDIR"

;Display the Finish header
!insertmacro MUI_UNFINISHHEADER
SectionEnd

Can anyone spot where I'm going wrong?

Many thanks
Lizzy


If you got the current CVS files
you can ride-off the "define MUI_UNCUSTOMPAGECOMMANDS"


!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
Page custom Task "" ": Custom function"
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
Page custom un.function "" ": Custom dialog in the Uninstaller"
!insertmacro MUI_UNPAGE_INSTFILES

The syntax seems right for b3, so it would help if you specify what problem you're having. Any error messages? Warnings? Does the page show? Does it skip the page? Does it show the page twice? What's wrong?


The installer runs and does everything else but just doesn't show the page!

TTFN
Lizzy


AHHHH! I've just figured it out - it helps if you run the the new exe created! I think I was suffering from Friday-itus :-)

Thanks everyone for your help.
Lizzy
xxx