Posted 21 April 2011 - 11:18
I've used WriteProfString to write INI file entries for years without any problem.
Recently however a customer reported that none of the INI file entries were being written during the install.
When I investigated it seems that the WriteProfileString function is failing.
I can't figure out why this is happening as it works on all other machines that it has been tested on. (I've been unable to reproduce the problem myself)
After some googling I found several references from others who seemed to have had a similar problem. One suggested that it was down to a problem on faster machines, something to do with a buffer not being cleared between different INI strings being written?
Does anyone know anything about this problem?
Posted 05 February 2015 - 16:24 Best Answer
Note: As described in the Installshield Help, calling WriteProfString with Null parameters after every use of WriteProfString does seem to have fixed my problem.