"Do not overwrite existing file" behavior ignored - Advanced Installer Community
remy.esmery
Posts: 1
Joined: Thu Jan 23, 2014 12:41 pm

"Do not overwrite existing file" behavior ignored

Hello,

I have noticed an unexpected behavior today.
I have a file in Applcation Folder that has the "Do not overwrite existing file" behavior set with a condition of "1".
Everything was okay untill I figured out that my containing folder's default behavior had to be "Always overwrite".
Although the overwrite behavior for the particular file mentioned before has been preserved, I observed that it was actually overwritten each time I ran the setup.

I eventually reviewed my version changes on the aip file to find out that changing the containing folder's overwrite behavior not only did change its DirectoryOptions value, but also removed several actions and irrelevant stuff at the end of the file. Reverting those changes while keeping the latest DirectoryOptions led to the behavior I was expecting at first.

Best regards
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: "Do not overwrite existing file" behavior ignored

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Please keep in mind that this is the Advanced Installer default behavior. You cannot set the overwrite behavior for a file to "Do not overwrite existing file" and for its containing folder to "Always overwrite existing files", or vice versa. This is not allowed. So, you should either set the file overwrite behavior to "Do not overwrite existing file" or set the folder overwrite behavior to "Always overwrite existing files".

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”