Skip to content
⌘ NSIS Forum Archive

Variable MUI_DESCRIPTION_TEXT

3 posts

Lord Cris#

Variable MUI_DESCRIPTION_TEXT

Greetings everybody,

im semi new in NSIS and have now a big Problem.

In my installer-solution I will get a txt file with the description of my component. Now i have the Problem that i didnt get the text into a Varaibel and then into "MUI_DESCRIPTION_TEXT"
i get a empty Description and when i´m trying to use a Marco in my main installer-file it says it didnt exists


Var /global component_a_text

Section
FileOpen $4 $TEMP\component_a.txt r
FileRead $4 component_a_text
FileClose $4
SectionEnd

Section "Alternative" component_a
some install stuff
Sectionend

!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${component_a} $component_a_text
!insertmacro MUI_FUNCTION_DESCRIPTION_END
i didnt found anything about my problem. Can anyone help me with this

~Cris
Anders#
FileRead $4 component_a_text must be FileRead $4 $component_a_text but sections execute too late, you must read the description in MUI_CUSTOMFUNCTION_GUIINIT.