Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Using InstallOptions_Read to Get User Input (http://forums.winamp.com/showthread.php?t=306592)

perfectfuture 21st May 2009 08:37

Using InstallOptions_Read to Get User Input
 
I'm trying to use the following to read the state of field 2 when the user clicks the next or close button. However when I print $R9 out, I don't receive the value. Eventually these will be strings I'm trying to get the value of, but does anyone have any ideas?

!insertmacro INSTALLOPTIONS_READ $R9 "one.ini" "Field 2" "State"

P.S. I've read as much documentation as I could but I realized that the InstallOptions have been depreciated and as a result I didn't find much.

Afrow UK 21st May 2009 11:25

Where are you using this code in the script? Did you use these macros to extract and display one.ini as well?

Stu

Anders 21st May 2009 14:32

InstallOptions may have been depreciated, but the documentation and examples are still around and part of the install

perfectfuture 21st May 2009 18:47

Yes, I currently have the file being extracted and displaying. And I'm using this in my Function for my CustomPage.

qwertymodo 21st May 2009 19:14

I think you have to do state reads in your callback function

i.e.
Page Custom MyPage MyPageCallack

Function MyPage

. . .

FunctionEnd


Function MyPageCallback

!insertmacro INSTALLOPTIONS_READ GOES HERE

FunctionEnd


All times are GMT. The time now is 17:27.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.