Hi AI-Team,
first of all we use the option Install new version first and then uninstall old version because we need rollback in case of an error.
Suppose we have a file "template.properties" which should be always overwritten during first install and never during update!
We tried the option "Do not overwrite existing file" with Condition "OLDPRODUCTS". Unfortunately that does not always work an we have cases where the file is overwritten during an update.
Another way I tried was using "Never Overwrite" for the Component of the file and then we tried to delete it before the files are copied during first install in order to get the desired result. That does not work either, because although the file is deleted during first install it then does not get copied during installation of the files (probably because the advanced installer knew that it was existing and used the never overwrite flag to determine that it should not be copied). Is it possible to delete the file in this scenario before the advanced installer recognizes this?
What is the best way here?
FOLLOW US
Get the latest news in Application Packaging