Old 19th November 2004, 16:14   #1
olitsch
Junior Member
 
Join Date: Nov 2004
Posts: 2
can't access user input

Hi Everybody,

I tried to read some vals from a InstallOptions dialog. I read the samples and faqs, but I can't find my fault. Can you help me whats wrong here?

The MsgBox is empty every time

--- .ins

Page custom aktivierung1 aktivierungProc ": custom page"

Function aktivierung1
GetTempFileName $R0
File /oname=$R0 aktivierung.ini
InstallOptions::dialog $R0

FunctionEnd

Function aktivierungProc

ReadINIStr $0 "aktivierung.ini" "Field 3" "State"

MessageBox MB_OK $0
done:
FunctionEnd

--- part of .ini

[Field 3]
Type=Text
MaxLen=4
MinLen=4
Left=13
Right=51
Top=114
Bottom=127
olitsch is offline   Reply With Quote
Old 19th November 2004, 16:28   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You are reading from the wrong file. You have extract the INI file as $R0 but you are trying to read from "aktivierung.ini" in the ReadINIStr line.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 19th November 2004, 16:37   #3
olitsch
Junior Member
 
Join Date: Nov 2004
Posts: 2
That was it. Thank you very much!
olitsch 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