Old 21st May 2009, 08:37   #1
perfectfuture
Junior Member
 
Join Date: May 2009
Posts: 2
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.
perfectfuture is offline   Reply With Quote
Old 21st May 2009, 11:25   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Where are you using this code in the script? Did you use these macros to extract and display one.ini as well?

Stu
Afrow UK is offline   Reply With Quote
Old 21st May 2009, 14:32   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
InstallOptions may have been depreciated, but the documentation and examples are still around and part of the install

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 21st May 2009, 18:47   #4
perfectfuture
Junior Member
 
Join Date: May 2009
Posts: 2
Yes, I currently have the file being extracted and displaying. And I'm using this in my Function for my CustomPage.
perfectfuture is offline   Reply With Quote
Old 21st May 2009, 19:14   #5
qwertymodo
Junior Member
 
Join Date: Sep 2008
Posts: 26
Send a message via Yahoo to qwertymodo
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
qwertymodo 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