Archive: MUI_DESCRIPTION_TEXT for MUI_UNPAGE_COMPONENTS


MUI_DESCRIPTION_TEXT for MUI_UNPAGE_COMPONENTS
Can't create MUI_DESCRIPTION_TEXT for MUI_UNPAGE_COMPONENTS.

Error: label "mui.description_0_done:" already declared in section/function
Error in macro MUI_DESCRIPTION_TEXT on macroline 10
Error in script "C:\installer\multilanguage2.nsi" on line 390 -- aborting creation process



!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${LS} $(DESC_LS)
!insertmacro MUI_DESCRIPTION_TEXT ${LSCore} $(DESC_LSCore)
!insertmacro MUI_DESCRIPTION_TEXT ${LSModules} $(DESC_LSModules)
!insertmacro MUI_DESCRIPTION_TEXT ${LSTheme} $(DESC_LSTheme)
!insertmacro MUI_DESCRIPTION_TEXT ${LSModulesdocs} $(DESC_LSModulesdocs)
!insertmacro MUI_DESCRIPTION_TEXT ${LSShellmod} $(DESC_LSShellmod)
!insertmacro MUI_DESCRIPTION_TEXT ${LSShell} $(DESC_LSShell)
!insertmacro MUI_DESCRIPTION_TEXT ${LSFiletypes} $(DESC_LSFiletypes)
!insertmacro MUI_DESCRIPTION_TEXT ${LSFileBOX} $(DESC_LSFileBOX)
!insertmacro MUI_DESCRIPTION_TEXT ${LSFileRC} $(DESC_LSFileRC)
!insertmacro MUI_DESCRIPTION_TEXT ${FullUn} $(DESC_Full) ;line 10
!insertmacro MUI_DESCRIPTION_TEXT ${CustomUn} $(DESC_Custom) ;line 11
!insertmacro MUI_FUNCTION_DESCRIPTION_END

;***************************************

Section /o un.$(ITEM_UninstFull) FullUn
SectionEnd

Section un.$(ITEM_UninstCustom) CustomUn
SectionEnd

;***************************************

Function .onInit
StrCpy $1 ${CustomUn} ; Group 1 - Option 1 is selected by default
!insertmacro MUI_UNGETLANGUAGE
FunctionEnd

;***************************************

Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${FullUn}
!insertmacro RadioButton ${CustomUn}
!insertmacro EndRadioButtons
FunctionEnd



What i did wrong?

If i remove description it works but doesn't work radiobutton autounchecking and i can't see description for sections.


Section /o un.$(ITEM_UninstFull) ;FullUn
SectionEnd

Section un.$(ITEM_UninstCustom) ;CustomUn
SectionEnd

Use MUI_UNFUNCTION_DESCRIPTION_BEGIN and MUI_UNFUNCTION_DESCRIPTION_END for the uninstaller.


Why this code doesn't work with uninstaller section? With installer section it works.


Section /o un.$(ITEM_UninstFull) FullUn
SectionEnd

Section un.$(ITEM_UninstCustom) CustomUn
SectionEnd

;***************************************

Function .onInit
StrCpy $1 ${CustomUn} ; Group 1 - Option 1 is selected by default
!insertmacro MUI_UNGETLANGUAGE
FunctionEnd

;***************************************

Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${FullUn}
!insertmacro RadioButton ${CustomUn}
!insertmacro EndRadioButtons
FunctionEnd


Can i fix it somehow?

Uninstaller sections start with "un":

un.onInit


need following and it will work


Function un.onInit
StrCpy $1 ${CustomUn} ; Group 1 - Option 1 is selected by default
!insertmacro MUI_UNGETLANGUAGE
FunctionEnd

;***************************************

Function un.onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${FullUn}
!insertmacro RadioButton ${CustomUn}
!insertmacro EndRadioButtons
FunctionEnd