Lizzy
27th June 2003 17:21 UTC
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
Joel
27th June 2003 17:35 UTC
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
kichik
27th June 2003 20:09 UTC
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?
Lizzy
30th June 2003 08:58 UTC
The installer runs and does everything else but just doesn't show the page!
TTFN
Lizzy
Lizzy
30th June 2003 09:52 UTC
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