Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 27th June 2003, 16:21   #1
Lizzy
Junior Member
 
Join Date: Jun 2003
Location: North Wales
Posts: 5
Angry 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
Lizzy is offline   Reply With Quote
Old 27th June 2003, 16:35   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,898
If you got the current CVS files
you can ride-off the "define MUI_UNCUSTOMPAGECOMMANDS"

code:

!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



* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 27th June 2003, 19:09   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
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?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 30th June 2003, 07:58   #4
Lizzy
Junior Member
 
Join Date: Jun 2003
Location: North Wales
Posts: 5
The installer runs and does everything else but just doesn't show the page!

TTFN
Lizzy
Lizzy is offline   Reply With Quote
Old 30th June 2003, 08:52   #5
Lizzy
Junior Member
 
Join Date: Jun 2003
Location: North Wales
Posts: 5
Talking

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
Lizzy is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump