FranzB
Posts: 4
Joined: Mon Mar 12, 2012 1:22 pm

INI File Entries are not persistent despite "Create only..."

Hallo dear supporters,

Advanced Installer has given me a great user experience so far, but this error has been bugging me for weeks now, and I cannot find a solution.

I create a new INI file, add sections and entries and modify all entries to be "Create only if it does not exist". Some values are Properties defined by the user's entry into a custom dialog. They are also "Create only if it does not exist".
Now when I install the whole thing the first time, everything is correct. But when I update the installation with a new version, every INI file entry is overwritten. This is certainly not the behaviour I expect. Does anyone have a clue why this happens?

Thank you in advance,
Franz
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: INI File Entries are not persistent despite "Create only

Hi Franz and welcome to Advanced Installer forums,

Actually this is the expected behavior during an "Uninstall old version first and then install new version" upgrade.

During the upgrade, the first version is completely uninstalled and then the new version is installed.

If you need to preserve resources during an upgrade, you can use the "Wizards" -> "Resources" -> "Persistent User Data..." from the menu bar. Another way is to follow the "How do I prevent a file from being uninstalled or repaired?" user guide article.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
FranzB
Posts: 4
Joined: Mon Mar 12, 2012 1:22 pm

Re: INI File Entries are not persistent despite "Create only

Thanks alot. I was tempted to think that those files continue to exist. Now it works as I want :)

Return to “Common Problems”