Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st November 2005, 08:09   #1
mtconleyuk
Junior Member
 
Join Date: Nov 2005
Posts: 38
Hiding Uninstall Component

I've got a script that uses MUI_UNPAGE_COMPONENTS to allow the user to decide which bits to uninstall. The problem is that I don't seem to be able to hide the Uninstall section from the list of components. If I put a "-" in front of the name "Uninstall", then the uninstaller is not generated, but there seems to be no other documented way to keep the Uninstaller section hidden and therefore out of the list of uninstallable components.

Anyone else know how to do it?

Thanks.
mtconleyuk is offline   Reply With Quote
Old 21st November 2005, 12:28   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
The section in which you create the Uninstaller is not (or, at least, should not) be the same section in which you create the option to uninstall the uninstaller (>_<)

I.e. you might have something like this:
PHP Code:
Section "Uninstaller"
  
# write out uninstaller here
SectionEnd

Section 
"un.Uninstaller"
  
# remove uninstaller here
SectionEnd 
You'll want to hide that "un.Uninstaller":
PHP Code:
Section "un.-Uninstaller"
  
# remove uninstaller
SectionEnd 
Animaether is offline   Reply With Quote
Old 21st November 2005, 12:38   #3
mtconleyuk
Junior Member
 
Join Date: Nov 2005
Posts: 38
Maybe I'm missing something, but what, in your example, prevents the (un-) Components page from including the "Uninstaller" section in the list of installable components?
mtconleyuk is offline   Reply With Quote
Old 21st November 2005, 12:42   #4
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
The dash/minus/thing. I hope I've got it in the right place, as I seem to remember that:
"-un.Uninstaller" was incorrect
"un.-Uninstaller" was correct
Animaether is offline   Reply With Quote
Old 21st November 2005, 13:10   #5
mtconleyuk
Junior Member
 
Join Date: Nov 2005
Posts: 38
Well, the "-un.Uninstall" trick seems to have worked. I'm pretty sure I tried "-Uninstall" earlier and it failed, but, hey, whatever.

Thanks for the hints.
mtconleyuk 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