writing to an INI after a NOTIFY flag
im new to nsis and have found this forum more then informative. i have hit a snag in my program though. i am reading multiple registries and writing them to a list box on a INI file. when the user selects an item from the list box it throws a NOTIFY flag and should change the active state of a DirRequest to the selected path. it is returning the proper values but doesnt change the state of the Field. Here is the code used to change the state of the DirRequest field.
Function DirectoryPageLeave
;change state of directory request to current selection in list box
!insertmacro MUI_INSTALLOPTIONS_READ $R0 ${DIR_PG} "Settings" "State"
${If} $R0 == 1
!insertmacro MUI_INSTALLOPTIONS_READ $R1 ${DIR_PG} "Field 1" "State"
!insertmacro MUI_INSTALLOPTIONS_WRITE ${DIR_PG} "Field 4" "State" $R1
MessageBox MB_OK $R1
Abort
${EndIf}
FunctionEnd
any bit of info would be appreciated