Archive: Writing to installed INI


Writing to installed INI
I want to evaluate the result of a user-selected option, and write to an INI file my program will use based on the user's selection.

The INI file is one of the files to be installed with the program during setup. Do I have to include this INI file before using ReserveFile, modify it, then move it to the target directory?

When do the program directories get created?


ReserveFile only changes the position of a file in the datablock.

The only difference it makes is that the startup of your installer will be faster if you put temporary installer files in the beginning, because of the way the compression works.

You don't need to use ReserveFile for normal files you install.


OK. So if I write to a file that is to be installed, when does the write actually occur?


Just extract the file and write after the file has been extracted.


Thanks for the help.