Archive: Description doesn't work -> macro:MUI_DESCRIPTION_TEXT:5


Description doesn't work -> macro:MUI_DESCRIPTION_TEXT:5
Hi,

I can't solve a problem with no working descriptions. Here is my code:


(...)

!define MAINSECTIONTITLE "Firefox Portable (wymagane)"
!ifdef MAINSECTIONTITLE
!define MAINSECTIONDESCRIPTION "Firefox 3.0.1 po polsku w wersji przenośnej."

!define OPTIONAL01SECTIONTITLE "Adblock Plus 0.7.5.5 oraz Element Hiding Helper 1.0.5"
!define OPTIONAL01SECTIONDESCRIPTION "Proste blokowanie reklam i niechcianych elementów."

!define OPTIONAL02SECTIONTITLE "AutoCopy 0.8"
!define OPTIONAL02SECTIONDESCRIPTION "Automatyczne kopiowanie zaznaczonego tekstu."

!define OPTIONAL03SECTIONTITLE "CustomizeGoogle 0.75"
!define OPTIONAL03SECTIONDESCRIPTION "Dostosowywanie wyszukiwarki Google oraz usuwanie reklam i śledzenia kliknięć."

!define OPTIONAL04SECTIONTITLE "Toolbar Buttons 0.5.0.5"
!define OPTIONAL04SECTIONDESCRIPTION "Przydatne przyciski dla paska narzędziowego."

!define OPTIONAL05SECTIONTITLE "CyberSearch 1.0.3"
!define OPTIONAL05SECTIONDESCRIPTION "Usprawnione wyszukiwanie bezpośrednio z paska adresów."

!define OPTIONAL06SECTIONTITLE "Edit Middle 2"
!define OPTIONAL06SECTIONDESCRIPTION "Podpowiedzi paska adresu niezależne od miejsca edycji tekstu."

!define OPTIONAL07SECTIONTITLE "FavLoc 1.2"
!define OPTIONAL07SECTIONDESCRIPTION "Uproszczone pobieranie plików do ulubionych folderów."

!define OPTIONAL08SECTIONTITLE "FlashBlock 1.5.6"
!define OPTIONAL08SECTIONDESCRIPTION "Blokowanie obiektów Flash (głównie nachalne reklamy)."

!define OPTIONAL09SECTIONTITLE "Foxmarks Bookmark Synchronizer 2.1.0.12"
!define OPTIONAL09SECTIONDESCRIPTION "Synchronizacja zakładek pomiędzy wieloma komputerami."

!define OPTIONAL10SECTIONTITLE "Hide Menubar 1.0.20080706"
!define OPTIONAL10SECTIONDESCRIPTION "Ukrywanie głównego paska menu."

!define OPTIONAL11SECTIONTITLE "mPrint 0.1"
!define OPTIONAL11SECTIONDESCRIPTION "Dostosowywanie stron do wydruku (usuwanie ilustracji, zmiana koloru tekstu na czarny)."

!define OPTIONAL12SECTIONTITLE "Nightly Tester Tools 2.0.2"
!define OPTIONAL12SECTIONDESCRIPTION "Instalacja niekompatybilnych rozszerzeń i motywów."

!define OPTIONAL13SECTIONTITLE "Organize Search Engines 1.4"
!define OPTIONAL13SECTIONDESCRIPTION "Segreguje wyszukiwarki za pomocą katalogów i separatorów."

!define OPTIONAL14SECTIONTITLE "Read It Later 0.9821"
!define OPTIONAL14SECTIONDESCRIPTION "Zapamiętywanie strony po późniejszego przeczytania."

!define OPTIONAL15SECTIONTITLE "Secure Login 0.9.2.9"
!define OPTIONAL15SECTIONDESCRIPTION "Logowanie za pomocą jednego przycisku, podobne do magicznej różdżki w Operze."

!define OPTIONAL16SECTIONTITLE "SÅ‚owniczek 0.8"
!define OPTIONAL16SECTIONDESCRIPTION "Tłumaczenie wyrazów w Ling.pl, Dict.pl oraz Angool.com."

!define OPTIONAL17SECTIONTITLE "Słownik modułu poprawnej pisowni - English (US)"
!define OPTIONAL17SECTIONDESCRIPTION "Słownik modułu poprawnej pisowni w wersji angielskiej (Stany zjednoczone)."

!define OPTIONAL18SECTIONTITLE "Smart Bookmarks Bar 1.4.2"
!define OPTIONAL18SECTIONDESCRIPTION "Wyświetlanie zakładek jako ikon bez etykiet tekstowych."

!define OPTIONAL19SECTIONTITLE "Smart Find 0.1"
!define OPTIONAL19SECTIONDESCRIPTION "Wyszukiwanie podobnych wyrazów w przypadku braku zapytanej frazy."

!define OPTIONAL20SECTIONTITLE "Switch Window Mode 0.4"
!define OPTIONAL20SECTIONDESCRIPTION "Blokowanie otwierania odnośników w nowych oknach."

!define OPTIONAL21SECTIONTITLE "Tabs Open Relative 0.3.3"
!define OPTIONAL21SECTIONDESCRIPTION "Otwieranie nowych kart na prawo od aktualnej, a nie na końcu listy."

!define OPTIONAL22SECTIONTITLE "Firefox 2.0 Classic Theme for Firefox 3.0 1.1"
!define OPTIONAL22SECTIONDESCRIPTION "Klasyczny motyw znany z Firefox 2.0"

;!define OPTIONALSECTIONSELECTEDAPPINFOSUFFIX "(Multilingual)"
;!define OPTIONALSECTIONNOTSELECTEDAPPINFOSUFFIX "(POLISH)"
!endif


(...)

!ifdef MAINSECTIONTITLE

Section /o "${OPTIONAL01SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-adblock\*.*"
SectionEnd

Section /o "${OPTIONAL02SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-autocopy\*.*"
SectionEnd

Section /o "${OPTIONAL03SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-customizegoogle\*.*"
SectionEnd

Section /o "${OPTIONAL04SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-customtoolbar\*.*"
SectionEnd

Section /o "${OPTIONAL05SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-cybersearch\*.*"
SectionEnd

Section /o "${OPTIONAL06SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-editmiddle\*.*"
SectionEnd

Section /o "${OPTIONAL07SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-favloc\*.*"
SectionEnd

Section /o "${OPTIONAL08SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-flashblock\*.*"
SectionEnd

Section /o "${OPTIONAL09SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-foxmarks\*.*"
SectionEnd

Section /o "${OPTIONAL10SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-hidemenu\*.*"
SectionEnd

Section /o "${OPTIONAL11SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-mprint\*.*"
SectionEnd

Section /o "${OPTIONAL12SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-nighltytesterstools\*.*"
SectionEnd

Section /o "${OPTIONAL13SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-organizesearchengines\*.*"
SectionEnd

Section /o "${OPTIONAL14SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-readitlater\*.*"
SectionEnd

Section /o "${OPTIONAL15SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-securelogin\*.*"
SectionEnd

Section /o "${OPTIONAL16SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-slowniczek\*.*"
SectionEnd

Section /o "${OPTIONAL17SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-slownik\*.*"
SectionEnd

Section /o "${OPTIONAL18SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-smartbookmarks\*.*"
SectionEnd

Section /o "${OPTIONAL19SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-smartfind\*.*"
SectionEnd

Section /o "${OPTIONAL20SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-switchwindowmode\*.*"
SectionEnd

Section /o "${OPTIONAL21SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-tabsopenralative\*.*"
SectionEnd

Section /o "${OPTIONAL22SECTIONTITLE}"
SetOutPath $INSTDIR
File /r "..\${SHORTNAME}-firefox2theme\*.*"
SectionEnd


!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${MAINSECTION} "${MAINSECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL01SECTION} "${OPTIONAL01SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL02SECTION} "${OPTIONAL02SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL03SECTION} "${OPTIONAL03SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL04SECTION} "${OPTIONAL04SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL05SECTION} "${OPTIONAL05SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL06SECTION} "${OPTIONAL06SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL07SECTION} "${OPTIONAL07SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL08SECTION} "${OPTIONAL08SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL09SECTION} "${OPTIONAL09SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL10SECTION} "${OPTIONAL10SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL11SECTION} "${OPTIONAL11SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL12SECTION} "${OPTIONAL12SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL13SECTION} "${OPTIONAL13SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL14SECTION} "${OPTIONAL14SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL15SECTION} "${OPTIONAL15SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL16SECTION} "${OPTIONAL16SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL17SECTION} "${OPTIONAL17SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL18SECTION} "${OPTIONAL18SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL19SECTION} "${OPTIONAL19SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL20SECTION} "${OPTIONAL20SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL21SECTION} "${OPTIONAL21SECTIONDESCRIPTION}"
!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL22SECTION} "${OPTIONAL22SECTIONDESCRIPTION}"
!insertmacro MUI_FUNCTION_DESCRIPTION_END


;!endif


Here are warnings and errors displayed during or after compilation:

  unknown variable/constant "{MAINSECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL01SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL02SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL03SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL04SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL05SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL06SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL07SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL08SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL09SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL10SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL11SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL12SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL13SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL14SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL15SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL16SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL17SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL18SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL19SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL20SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL21SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)
unknown variable/constant "{OPTIONAL22SECTION}" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:5)


All necessary macros and plug-ins are included. Can some help me make it work right?

!insertmacro MUI_DESCRIPTION_TEXT ${OPTIONAL01SECTION} "${OPTIONAL01SECTIONDESCRIPTION}"
The macro MUI_DESCRIPTION_TEXT fails because you haven't defined OPTIONAL01SECTION.

You should have defined it this way:
Section /o OPTIONAL01SECTION

Look again in to my code (it is based on PortableApps.com). I'm sure that I defined all OPTIONAL__SECTIONTITLE and OPTIONAL__SECTIONDESCRIPTION at the begining.

Than I wanna call those strings in components select page in NSIS installer.

When I tried your way, i got installer without titles and without descriptions on components select page, so you're wrong.


Originally posted by GrzegorzJZD
Look again in to my code (it is based on PortableApps.com). I'm sure that I defined all OPTIONAL__SECTIONTITLE and OPTIONAL__SECTIONDESCRIPTION at the begining.
I'm not sure what you're seeing, but I'm not seeing the same thing...

I see you have Optional##SectionTitle and OPTIONAL##SECTIONDESCRIPTION defined, but not Optional##Section. Your section names are using OPTIONAL##SECTIONTITLE syntax. You need to either change your section definitions or change the MUI_DESCRIPTION_TEXT lines.

Let's try this again. The Section command takes these (optional) parameters:

The MUI_DESCRIPTION_TEXT macro needs the section index and the description.

You put the Title and Description in the Section command. You need the index variable not the title. Without a string for the index you got the error "unknown variable/constant "{OPTIONAL01SECTION}" detected" when the MUI_DESCRIPTION_TEXT macro was processed.