mhubel
Posts: 28
Joined: Fri Jul 20, 2007 2:01 pm
Contact: Website

values always updated in ini file

We are generating a ini file and the intention is to only generate values for items that were not present but leave existing items alone. We are using the option "Create only if it does not exist" as seen in the attachemet "capture.PNG". In practice. all program updates completely replace all existing values. Is there something else that must be done?
Eusebiu
Posts: 4966
Joined: Wed Nov 14, 2012 2:04 pm

Re: values always updated in ini file

Hi,

During an upgrade, the old version with all its resources is uninstalled and the new version is installed. This means that the INI file with its old values is also removed and a new one is created by the new version.

In order to preserve the old values from the INI file, you can proceed as described in the "Saving context between installations" thread (similar to an XML file).

Let me know if you have other questions.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”