|
|
|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
Moderator
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 |
|
|
|
|
|
#3 |
|
Moderator
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 |
|
|
|
|
|
#4 |
|
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.
|
|
|
|
|
|
#5 |
|
Junior Member
|
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|