Old 15th December 2017, 14:09   #1
Lord Cris
Junior Member
 
Join Date: Dec 2017
Posts: 9
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

code:

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
Lord Cris is offline   Reply With Quote
Old 15th December 2017, 23:47   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,869
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.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 18th December 2017, 11:52   #3
Lord Cris
Junior Member
 
Join Date: Dec 2017
Posts: 9
Ty for reply and sry for my late reply. It works now i can go ahead.
Lord Cris 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