Old 5th January 2005, 23:24   #1
rrroonn
Junior Member
 
Join Date: Jan 2005
Posts: 2
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
rrroonn is offline   Reply With Quote
Old 6th January 2005, 10:04   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Your answer waits in the Modern UI readme, just below the description example:
Quote:
For the uninstaller, use the MUI_UNFUNCTION_DESCRIPTION_BEGIN and MUI_UNFUNCTIONS_DESCRIPTION_END macros.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 7th January 2005, 06:20   #3
rrroonn
Junior Member
 
Join Date: Jan 2005
Posts: 2
oh...thanks!
rrroonn is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump