Page 1 of 1

How to avoid unwanted duplicate files

Posted: Fri Aug 24, 2007 1:52 pm
by maurix
At design time, when I add files to $TARGETDIR$ or into other folders it's easy to add the same file unintentionally to the files already in the target dir. So the file is added more than once into the setup.

Is there a way to avoid this?

I think that:
- If a file is coming from a different path then it must be added even if the same file name is in the setup.

But:
- if the same file path and file name is already in the $TARGETDIR$ it must be discarded.

Posted: Fri Aug 24, 2007 4:28 pm
by Alex_Ronquillo
This is something that is provided by IA, but is left to the user to specify whether to discard or not a file if another copy is present. See attached image for example.

File Attached:

file install.JPG

Posted: Fri Aug 24, 2007 5:00 pm
by maurix
Sorry, but what I need is avoiding duplicate files in the listview of the Setup Architecture > Files section in the IA IDE.

If a file (same path + same name) is already in the listview, why IA allows me to add it again to the listview?

When a file is twice times in the listview I notice that it is included in the setup too twice.

I attached a screenshot so maybe you could understand what I mean.

File Attached:

example.jpg