Archive: ReadINIStr $R0 - displays 'Success'


ReadINIStr $R0 - displays 'Success'
Using InstallOptions

User is prompted to enter a computer name (via a custom page)
I use:

 ReadINIStr $R0 "$PLUGINSDIR\test.ini" "Field 1" "State" 

to find the results of the user input...

that's straight from the InstallOptions documentation..and matches my test.ini file.

All NSIS will give me is "success" when I check $R0
How do I get $R0 to reflect what the user typed in, instead of "success"?

this is my first time I'm referring to the Stack so I'm not familiar with Popping and pushing.

Do I need to
POP $R0
THEN
ReadINIStr $R0 ?


:tinfoil:

It looks like $R0 keep IO calling result:

After you have called the DLL, InstallOptions adds one string to the stack, with one of the following values:

* success - The user has pressed the Next button
Attach your script.

Make sure you're using ReadINIStr inside the page Leave function.

-Stu


Worked! I think removing an bogus Pop command also helped
(coding mistake) hehehe

Thanks everyone for your help.