In my main script i call this function at descriptionInit
the macro has followed code in it:
Function ReadAllDesc
Var /global j
${foreach} $j 0 $secCount + 1
SectionGetText $h $4
${StrContains} $5 "++" $4
${ifnot} $5 == ""
StrCpy $5 $4 "" 2
${else}
StrCpy $5 $4
${endif}
!insertmacro DESC_READ $4 $lang $5
${next}
FunctionEnd
my problem is now, that when i insert instat of $4 and $5 the explicit Names i can compile my script but when i want to use $5/$4 i got an error in my FileRead line
!macro DESC_READ addonText lang addonVar
FileOpen $6 "$TEMP\addonInstallerPreFolder\5.1\${addonText}_${lang}.txt" r
FileRead $6 $${addonVar}
FileClose $6
!macroend
"Usage: FileRead $(user_var: handle input) $(user_var: text output) [maxlen]"
can anyone help me with that? Do i hae a logical problem or do it didnt work.
~ Cris