Archive: Section 'Uninstall' - hidden


Section 'Uninstall' - hidden
Hi,

I am just wondering if I got the manual wrong or if it's a bug in NSIS?
The manual (http://nsis.sourceforge.net/Docs/Chapter4.html#4.6.1) says at 4.6.1.2:

Begins and opens a new section. If section_name is empty, omitted, or begins with a -, then it is a hidden section and the user will not have the option of disabling it. If the section name is 'Uninstall' or is prefixed with 'un.', then it is a an uninstaller section.
But if you name the section "Uninstall" and make it a hidden one ("-Uninstall") then it is no longer recognized as an uninstaller section. In this case you have to prefix it with "un." like any other uninstaller section.

IMHO this behaviour is at least a bit confusing and a remark in the manual may help ...!

Thanks
Gunther

Technically, though, that's exactly what the documentation says.

If the section name is 'Uninstall', then...
But when you name it '-Uninstall', it's no longer 'Uninstall' as you just put a minus sign in front :)

I'm not sure why the - in a name is used rather than a flag (a la /SO).. might be legacy.


Originally posted by Animaether
Technically, though, that's exactly what the documentation says.

If the section name is 'Uninstall', then...
But when you name it '-Uninstall', it's no longer 'Uninstall' as you just put a minus sign in front :)
Correct.
That's why I didn't have to ask in the forum and found my mistake at once ... ;)
But it is not that obvious as I interpreted the '-' as a switch and not as part of the section name.

So I
I'm not sure why the - in a name is used rather than a flag (a la /SO).. might be legacy.
copy that.

Gunther