perfectfuture
21st May 2009 09:37 UTC
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 12:25 UTC
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 15:32 UTC
InstallOptions may have been depreciated, but the documentation and examples are still around and part of the install
perfectfuture
21st May 2009 19:47 UTC
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 20:14 UTC
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