PDA

View Full Version : Error: label "mui.description_1_done:" already declared in section/function


ensonic
1st December 2004, 16:09
In a multilingual installer I do:


!include "English.nsh"
!include "German.nsh"

;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecCore} $(DESC_SecCore)
!insertmacro MUI_DESCRIPTION_TEXT ${SecSub} $(DESC_SecSub)
!insertmacro MUI_DESCRIPTION_TEXT ${UnSecCore} $(DESC_UnSecCore)
!insertmacro MUI_DESCRIPTION_TEXT ${UnSecSub} $(DESC_UnSecSub)
!insertmacro MUI_FUNCTION_DESCRIPTION_END


since the addition of the two 'Un' sections I get the following error:

Error: label "mui.description_1_done:" already declared in section/function


Any idea?

scrose
1st December 2004, 18:03
Try this.!include "English.nsh"
!include "German.nsh"

;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecCore} $(DESC_SecCore)
!insertmacro MUI_DESCRIPTION_TEXT ${SecSub} $(DESC_SecSub)
!insertmacro MUI_FUNCTION_DESCRIPTION_END

!insertmacro MUI_UNFUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${UnSecCore} $(DESC_UnSecCore)
!insertmacro MUI_DESCRIPTION_TEXT ${UnSecSub} $(DESC_UnSecSub)
!insertmacro MUI_UNFUNCTION_DESCRIPTION_ENDThere is a brief note in the manual (http://nsis.sf.net/Contrib/Modern UI/Readme.html) mentioning the use of the MUI_UNFUNCTION_DESCRIPTION_BEGIN and MUI_UNFUNCTIONS_DESCRIPTION_END macros.