Old 18th August 2004, 16:12   #1
Mad Doggie
Junior Member
 
Join Date: Sep 2003
Location: Roswell, GA
Posts: 44
Programatically updating InstallOptions dialogs

I seem to have a problem with InstallOptions caching the values of the INI file. I am attempting to modify the dialog box contents based on field values; I call my validate function via a NOTIFY control, update the INI and then fire Abort to redisplay. My changes get written to the INI, but InstallOptions doesn't seem to want to load them. However, if I manually update the fields via the UI, then those changes seem to take.

Is there any way to force InstallOptions.dll to reload the INI file each time? Does InstallOptions2 do this?

Cheers!
Mad Doggie is offline   Reply With Quote
Old 18th August 2004, 16:28   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
InstallOptions does not read the INI file for a second time after the verification function has returned. You should use GetDlgItem, SendMessage and friends to change the dialog. Contrib\InstallOptions\testnotify.nsi demonstrates this.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik 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