Updating ini-file in custom made options page
Hi everyone,
For my traineeship I have to make an installer for FAST, a timing software module for indoor karting. This installer has to be finished this Friday, but I have a small problem. Everything works fine except updating an existant ini-file with the aid of two custom made pages. I consulted this forum and the NSIS archive, but I couldn't find an answer.
I made two custom pages: one with InstallOptions components like a couple of comboboxes and a directory request. The second one validates all the choosen options and updates the ini-file but no matter what I tried to do, it didn't work. It's the purpose that if you select an option of a combobox the ini-file will be updated with that information. A second problem is that the directory request must be disabled when I choose server in a combobox. My last problem is that also the path of the directory request must be written into an ini-file.
The ini-file that I use to make my options page is the following:
[Settings]
NumFields=6
[Field 1]
Type=Label
Text=Give the path of FAST on the server
Left=8
Right=74
Top=66
Bottom=86
[Field 2]
Type=Label
Text=Which resource do you want to use?
Left=9
Right=72
Top=33
Bottom=51
[Field 3]
Type=Label
Text=Which type of installation do you want to perform?
Left=12
Right=98
Top=0
Bottom=15
[Field 4]
Type=Combobox
Text=Karting indoor
State=Karting indoor
ListItems=Karting indoor|Karting outdoor|Both kartings
Left=123
Right=219
Top=37
Bottom=50
[Field 5]
Type=Combobox
Text=Server
State=Server
ListItems=Server|Client
Left=122
Right=219
Top=2
Bottom=16
[Field 6]
Type=DirRequest
Text=C:\
State=C:\
Root=C:\
Left=122
Right=245
Top=70
Bottom=83
In an attachment I added a picture of the components page.
I'd appreciate if someone could help me with this matter because all of these things have to be finished in a couple of days.
Thanks in advance