Archive: MUI_DESCRIPTION_TEXT label already declared


MUI_DESCRIPTION_TEXT label already declared
I'm using ModernUI.

I've defined some section:

Section !Procedura SEC0000

Section "un.Procedura" UNSEC0000


Then I've defined the relative descriptions:

!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC0000} $(DESC_SEC0000)
!insertmacro MUI_DESCRIPTION_TEXT ${UNSEC0000} $(DESC_UNSEC0000)
!insertmacro MUI_FUNCTION_DESCRIPTION_END


Now I'm getting this error:

!insertmacro: MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro: end of MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro: MUI_DESCRIPTION_TEXT
!insertmacro: end of MUI_DESCRIPTION_TEXT
!insertmacro: MUI_DESCRIPTION_TEXT

Error: label "mui.description_0_done:" already declared in function
Error in macro MUI_DESCRIPTION_TEXT on macroline 10


Do you know how can I solve?

Description for uninstaller sections must be defined using MUI_UNFUNCTION_DESCRIPTION_BEGIN and MUI_UNFUNCTION_DESCRIPTION_END. You've mixed both installer's and uninstaller's descriptions in MUI_FUNCTION_DESCRIPTION_BEGIN.


Many thanks kichik.
It was just what I need.

You're great :-)


Originally posted by kichik
Description for uninstaller sections must be defined using MUI_UNFUNCTION_DESCRIPTION_BEGIN and MUI_UNFUNCTION_DESCRIPTION_END.
This advice appears only to be valid for the original MUI code, and not for MUI 2 (despite being mentioned in the MUI 2 documentation).

How does one achieve the same thing in MUI 2 uninstallers?

What makes you think it doesn't work with MUI2?


Originally posted by kichik
What makes you think it doesn't work with MUI2?
I get:

!insertmacro: MUI_UNFUNCTION_DESCRIPTION_BEGIN
!insertmacro: macro named "MUI_UNFUNCTION_DESCRIPTION_BEGIN" not found!
Error in script "G:\SWDev\VA\VAOS\InProgress\VA6\Installer\VA_Install.nsi" on line 943 -- aborting creation process

when I try it ...

There is no definition for MUI_UNFUNCTION_DESCRIPTION_BEGIN/END in MUI2/components.nsh where the corresponding MUI_FUNCTION_DESCRIPTION_BEGIN/END macros are defined.

Seems that was fixed for the yet-to-be-released 2.36. You can get the fixed version from:

http://nsis.svn.sourceforge.net/view...Components.nsh


Originally posted by kichik
Seems that was fixed for the yet-to-be-released 2.36. You can get the fixed version from:

http://nsis.svn.sourceforge.net/view...Components.nsh
Many thanks. I'll try that.