Old 15th December 2017, 15:09   #1
Lord Cris
Junior Member
Join Date: Dec 2017
Posts: 9

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

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

Section "Alternative" component_a
some install stuff

!insertmacro MUI_DESCRIPTION_TEXT ${component_a} $component_a_text

i didnt found anything about my problem. Can anyone help me with this

Lord Cris is offline   Reply With Quote
Old 16th December 2017, 00:47   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,196
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, 12: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
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