0
votes

I am creating an installer using inno setup and I am using a simple ini file as a database for a specific operation. My ini file consist of section users and key username and its value is the username of a particular person. Example:

[Users]

username=alice

username=bob etc....

In one of the custom pages created by me, I am prompting the user to enter the username, so now I need to check whether the entered username exists in the ini file or not. So how can I achieve this.

1
can sum one help plz????Girish Chandran C
No one is hovering over the keyboard to reply to your posts immediately. Try having a bit more patiance rather than posting chasing after just 2 hours!Deanna

1 Answers

1
votes

As the duplicate value names are invalid in INI files, There are no API methods (Inno or not) to read them. You'll need to do it manually using Inno's LoadStringsFromFile(). and check eahch line in turn.