|
|
#1 |
|
Junior Member
Join Date: May 2003
Posts: 9
|
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? |
|
|
|
|
|
#2 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
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. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2003
Posts: 9
|
OK. So if I write to a file that is to be installed, when does the write actually occur?
|
|
|
|
|
|
#4 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Just extract the file and write after the file has been extracted.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2003
Posts: 9
|
Thanks for the help.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|