Show Content of TextFile
Hi there,

I have a little problem showing the content of a text file in a text field located on an installer page.
Yes, I need almost excactly the same function like the licence dialog provides, but i just can't seem to make it work.

any ideas?

heres my code so far.


ClearErrors
FileOpen $0 "myfile.dat" r
IfErrors lbl_done
FileRead $0 $1
FileClose $0

!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "mydialogue.ini"
!insertmacro MUI_HEADER_TEXT "Warning" "I found something wrong"
!insertmacro MUI_INSTALLOPTIONS_WRITE $1 "mydialogue.ini" "Field 1" "State"
#!insertmacro MUI_INSTALLOPTIONS_WRITE ${VALUE} "${FILE}" "${ELEMENT}" "State" ---that's what i found in the manual

!insertmacro MUI_INSTALLOPTIONS_SHOW


thx



------my fault, forgot to send a message to the textfield---
works now