Hi,
How do I read and store the values of two form field values to an INI file? I created two key pairs at the INI section using ISTool. Now how do I link this up?
I am assuming I should write some Pascal script in here, but don't know exactly what, yet
{ AuthForm_NextkButtonClick }
function AuthForm_NextButtonClick(Page: TWizardPage): Boolean;
begin
Result := True;
end;
The INI Section looks like this:
[INI]
Filename: {app}\prefs.ini; Section: AUTH; Key: USERNAME; String:
Filename: {app}\prefs.ini; Section: AUTH; Key: PASSWORD; String:
Page is created like this:
AuthPage := CreateInputQueryPage(wpWelcome,
'Account Information', 'Please enter your Account Information',
'');
AuthPage.Add('Username:', False);
AuthPage.Add('Password:', True);
EDIT:
I made the following additions. It doesn't work for some reason:
SetIniString('AUTH', 'USERNAME', AuthPage.Values[0], '{app}\prefs.ini')
SetIniString('AUTH', 'PASSWORD', AuthPage.Values[1], '{app}\prefs.ini')