PDA

View Full Version : Installshiekd 2010 - Change section name in INI file



Bhagvat
12-14-2015, 05:02 AM
Hello,
I am using Installshield 2010 for creating product setup. My requirement is to change section name in INI file from install-script. For example, my INI file is like below

[SECTION1]
key1 = value1

Now I want to change "SECTION1" to "SECTION2" in the file.

I read somewhere about reading whole file and replace the string you want to replace in buffer and write text again to the file. But I thing this is too long for just changing one line.
Please suggest any other way.

I already used INI APIs like "AddProfString", "ReplaceProfString", so this please suggest if this kind of APIs if available.

Thanks, Bhagvat