Archive: Change Field Value or State in INI File before displaying


Change Field Value or State in INI File before displaying
Hi,

I have written a custom page which reads an ini file to display the screen.

INI file contaisn 1 label & 1 directory field.

I call the page like below

!insertmacro MUI_INSTALLOPTIONS_DISPLAY "tomcat_info.ini"

but before it's displayed I want the directory value to be initialized with $INSTDIR or rather any other variable.

NOTE: I do not want to change this value in the INI file. This should happen dynamically. I do not want to use FileRead and FileWrite options to change the base ini file.

How can I do that.


!insertmacro MUI_INSTALLOPTIONS_WRITE "tomcat_info.ini" "Field #" "State" "$INSTDIR"

-Stu


Thank you, it works