cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ned_mcevoy
Level 3

Controlling Updates?

Hi all, i'm building an installer and have realised that when i do a fresh build it will change the upgrade code and attempt to do an upgrade - this is all well and good but when updgrading it just installs all the files on the target with no modification - for example my INI file is installed blank with none of the data i need in it.

Is it possible to choose which files to transfer on an upgrade, so i can leave the INI file and upgrade the .exe and dll's for example

Thanks in advance...
Labels (1)
0 Kudos
(1) Reply
TheTraveler
Level 8

Have you thought of moving your INI file aside before the new files are copied into place and then move it back when it has finished? Maybe load the INI file into memory?

    LIST listTemp;
begin
listTemp = ListCreate( STRINGLIST );
ListReadFromFile(listTemp, "MyFile.ini");
.
.
.
ListWriteToFile((listTemp, "MyFile.ini");


Of coarse this is a rough example of the List functions you could use. You would have to make the listTemp global and put the ListReadFromFile and the ListWriteToFile into two different event functions.

Hope these ideas help.
0 Kudos