PDA

View Full Version : keep config file after upgrade



sandra
07-09-2014, 09:02 AM
Hello,

1. I created a sample project which copies a txt file on the target machine. I created an ini file by going in the menu System Configuration. For the action, I selected "Do not overwrite". I let every value by default for the rest.

2. I launch the application which creates me the txt file and the ini file on the target machine.

3. I go again in my sample project and I changed the ini file in the menu System Configuration by changing the value associated to a key. I compile and exectute again the new project.

Result : The setup detected that I am trying to updade. The issue is that the ini file is overwritten.

Question: How to keep config files that would not be overwritten when doing an update.

I am using IS2014 Premium on Windows 7.

DanGalender
07-21-2014, 03:33 PM
You might try setting the component's setting to Never Overwrite Yes. As it is, since the file was not modified since being installed, the installer considers it fair game to be overwritten.