Archive: Parameters


Parameters
I have a customPage with two zones containing :
- a path to a folder
- a text zone

When the user have these zones filled, how can I get the parameters to use them in my code as variables ?


Use ReadINIStr.

E.g.
ReadINIStr $R0 "IOFile.ini" "Field #" "State"
$R0 = 1/0 | text | etc

-Stu


I tried,

but this way i got the default parameters from my .ini (before user has filled anything not After)


In my page, i have a droplist with some values (default value is 10)

If user fills 60 in the zone i want to get that value to use it in my code

(the value is used in my code as a parameter at a .bat launch).


Make sure you use ReadINIStr after the user has left the page, ie on the Custom Page's Leave function.

Example:
Page Custom customPage customPageLeave

Function customPage
# ... call InstallOptions ...
FunctionEnd

Function customPageLeave
# ... get user input values ...
ReadINIStr .....
FunctionEnd


-Stu

Many Thxs