Archive: Using InstallOptions_Read to Get User Input


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.


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

Stu


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


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


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