Archive: ReadINIStr


ReadINIStr
Hello,
I'm trying to write a custompage (ini file) and I've couple of radio buttons for which the NOTIFY flags have been set.

I load the custom page like this

Page custom CustomEnter CustomLeave

In my CustomLeave function, I'm trying to find which of the controls in the ini file has generated an event (Radio button clicked say.)

Function CustomLeave

ReadINIStr $0 "preferences.ini" "Settings" "State"

FunctionEnd

when i print $0, i'm getting a blank string out there. Where am i doing wrong.

preferences.ini file is located in the same directory as the installer.

I'm using Modern UI.

Thanks in advance,
Surya


ReadINIStr $0 "$PLUGINSDIR\preferences.ini" "Settings" "State"


Got it.

Thanks,
Surya


Or

!insertmacro MUI_INSTALLOPTIONS_READ $0 "preferences.ini" "Settings" "State"

Stu