mtconleyuk
21st November 2005 09:09 UTC
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.
Animaether
21st November 2005 13:28 UTC
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:
Section "Uninstaller"
# write out uninstaller here
>SectionEnd
Section "un.Uninstaller"
# remove uninstaller here
>SectionEnd
>
You'll want to hide that "un.Uninstaller":
Section "un.-Uninstaller"
# remove uninstaller
>SectionEnd
>
mtconleyuk
21st November 2005 13:38 UTC
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?
Animaether
21st November 2005 13:42 UTC
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
mtconleyuk
21st November 2005 14:10 UTC
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.