When I create an INI section in the inno-setup code it always creates new keys even if the key and section exist. The code I'm using is below.
[INI]
Filename: "{app}\Config\app.INI"; Section: "MAIN"; Key: "key1"; String: {code:Getkey1};
Filename: "{app}\Config\app.INI"; Section: "MAIN"; Key: "key2"; String: {code:Getkey2};
Filename: "{app}\Config\app.INI"; Section: "MAIN"; Key: "key3"; String: {code:Getkey3};
Filename: "{app}\Config\app.INI"; Section: "MAIN"; Key: "key4"; String: {code:Getkey4};
This INI file initially looks like this
[MAIN]
key1=value
key2=value
key3=value
key4=value
and becomes after install (note this ini is in the installed files)
[MAIN]
key1=value1
key2=value2
key3=value3
key4=value4
[MAIN]
key1=value1
key2=value2
key3=value3
key4=value4
So my question is how can I make the file overwrite the initial values instead of creating new.