Old 6th June 2007, 11:09   #1
suryakiran
Junior Member
 
Join Date: May 2007
Posts: 3
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
suryakiran is offline   Reply With Quote
Old 6th June 2007, 11:32   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
ReadINIStr $0 "$PLUGINSDIR\preferences.ini" "Settings" "State"

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 6th June 2007, 13:12   #3
suryakiran
Junior Member
 
Join Date: May 2007
Posts: 3
Got it.

Thanks,
Surya
suryakiran is offline   Reply With Quote
Old 6th June 2007, 13:12   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Or

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

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump