Archive: MUI: un.install component descriptions


MUI: un.install component descriptions
Hi,

Sorry if this has been answered before - I did do a search thru the recommended faqs, archives etc without finding the answer.

I need to set the text descriptions on the uninstaller components. I can set the component decriptions on the installer components fine but when I do so for the un.installer sections, I get the error "mui.description_0_done:" already declared in section/function". I have a code snippet below.

Any help would be appreciated.

Thanks,

Ron



Section "!Program Files" SEC01
SectionEnd

Section /o "Desktop Shortcut" SEC02
SectionEnd

Section /o "Sounds" SEC03
SectionEnd

Section -AdditionalIcons
SectionEnd

Section /o "Un.Program Files" UNPROGRAM
SectionEnd

Section /o "Un.Sounds" UNSOUNDS
SectionEnd

Section /o "un.Program Settings" UNSETTINGS
SectionEnd


LangString DESC_Section1 ${LANG_ENGLISH} "Program files - required component"
LangString DESC_Section2 ${LANG_ENGLISH} "Create a desktop shortcut"
LangString DESC_Section3 ${LANG_ENGLISH} "Include sample sound files"

LangString DESC_SectionU1 ${LANG_ENGLISH} "Remove main program files"
LangString DESC_SectionU2 ${LANG_ENGLISH} "Remove optional sound files"
LangString DESC_SectionU3 ${LANG_ENGLISH} "Remove program settings"

!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} $(DESC_Section1)
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} $(DESC_Section2)
!insertmacro MUI_DESCRIPTION_TEXT ${SEC03} $(DESC_Section3)

!insertmacro MUI_DESCRIPTION_TEXT ${UNPROGRAM} $(DESC_SectionU1)
!insertmacro MUI_DESCRIPTION_TEXT ${UNSOUNDS} $(DESC_SectionU2)
!insertmacro MUI_DESCRIPTION_TEXT ${UNSETTINGS} $(DESC_SectionU3)
!insertmacro MUI_FUNCTION_DESCRIPTION_END


Your answer waits in the Modern UI readme, just below the description example:

For the uninstaller, use the MUI_UNFUNCTION_DESCRIPTION_BEGIN and MUI_UNFUNCTIONS_DESCRIPTION_END macros.

oh...thanks!