Archive: FileRequest


FileRequest
Hey All,

I'm playing around with 2.0B2, and I can't figure out how to initially set, or retrieve the output from a FileRequest dialog, here's what I've got in my io.ini file:

[Field 4]
Type=FileRequest
Text=notepad.exe
Left=0
Right=-1
Top=40
Bottom=55

and in my nsi file, I've got:

!insertmacro MUI_INSTALLOPTIONS_READ ${DEFAULTEDITOR} "io.ini" "Field 4" "Text"

unfortunately, the initial text (notepad.exe) does not display, and no matter what file is choosen, notepad.exe is always populated into DEFAULTEDITOR.

Can someone please point me in the right direction?

Thanx!


[Field 4]
Type=FileRequest
Text=notepad.exe
Left=0
Right=-1
Top=40
Bottom=55

!insertmacro MUI_INSTALLOPTIONS_READ ${DEFAULTEDITOR} "io.ini" "Field 4" "Text"

The text here is used for labels, checkboxes, radiobuttons..., not for FileRequest. You should substitute TEXT by STATE, that is the state of the control after you exit from the page. STATE is used for
detect what information the user enter on that control.

!insertmacro MUI_INSTALLOPTIONS_READ ${DEFAULTEDITOR} "io.ini" "Field 4" "Text="

And don't include the "=" in value name, the "=" are used to separate the value name to value:

[SECTION_NAME]
Value_Name=Value

Only include the "=" if:

[SECTION_NAME]
Value_Name==Value


Hey,

That worked perfectly!

Thanx!