Old 1st May 2003, 17:28   #1
supertedusa
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?
supertedusa is offline   Reply With Quote
Old 1st May 2003, 17:45   #2
Joost Verburg
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.
Joost Verburg is offline   Reply With Quote
Old 1st May 2003, 18:04   #3
supertedusa
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?
supertedusa is offline   Reply With Quote
Old 1st May 2003, 18:10   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Just extract the file and write after the file has been extracted.
Joost Verburg is offline   Reply With Quote
Old 1st May 2003, 18:39   #5
supertedusa
Junior Member
 
Join Date: May 2003
Posts: 9
Thanks for the help.
supertedusa is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump