Skip to content
⌘ NSIS Forum Archive

Error in macro MUI_DESCRIPTION_TEXT on macroline 10

3 posts

xbarns#

Error in macro MUI_DESCRIPTION_TEXT on macroline 10

Hi all,

i get the following error message when compiling:

Error: label "mui.description_2_done:" already declared in function
Error in macro MUI_DESCRIPTION_TEXT on macroline 10
Error in script "Z:\12_EclipseWorkspace\BW Setups\C7\NSIS Script\C7Setup.nsi" on line 195 -- aborting creation process

It complains about this line:

!insertmacro MUI_DESCRIPTION_TEXT ${SEC_OSDEPLOY_W2K} $(DESC_SEC_OSDEPLOY_W2K)

i have a couple other such errors and started remarking those lines but now it gets to be a lot of them and actually i need them 🙂

When i check the system.nsh the part NSIS complains about is this one:



!macro MUI_DESCRIPTION_TEXT VAR TEXT
  !verbose push
  !verbose ${MUI_VERBOSE}
  StrCmp $0 ${VAR} 0 mui.description_${VAR}_done
    SendMessage $MUI_TEMP1 ${WM_SETTEXT} 0 "STR:"
    EnableWindow $MUI_TEMP1 1
    SendMessage $MUI_TEMP1 ${WM_SETTEXT} 0 "STR:${TEXT}"
    Goto mui.description_done
  mui.description_${VAR}_done:
  !verbose pop
!macroend 
Line 10 ist this one:

mui.description_${VAR}_done:

Any ideas where this comes from? Its not every "!insertmacro MUI_DESCRIPTION_TEXT " line but only some of them.

To be honest i am confused, the spelling of the section descriptions is OK (copy&paste), any ideas?

Thanks
mauvecloud#
I think that means you're using the macro more than once with the same section ID. Can you move them into separate functions? Then you wouldn't get the label collision.
xbarns#
I double checked on the SectionIDs but all are only in once.

It happens when i add descriptions for the Uninstallation Sections, i just decided i will not need those 😁 for now.