prasanth.tech
Posts: 35
Joined: Wed Oct 28, 2015 5:53 am

Existing Files are not overwitten

Hi,

I observed one scenario with Installer developed using AdvancedInstaller (AI). The scenario is that some already existing files (binaries, C# Dlls etc)are not overwritten with files from AI installation.
I checked those files which are not getting overwritten and found that, the File version and size of these existing files matches with files from AI Installer. Then I checked File Properties in AI IDE and saw that "Overwrite Behavior' is set to "Overwrite Only If existing file is older".

I did some experiments as a part of my analysis. I made all source files to Installer as latest. I wrote a tool which read its contend, then delete the files from Disk and then create file with same name and wrote the data back to file. So i got same files with very recent modified time. So they are latest than existing file.

Though, I re-built Setup with these latest files, same above mentioned behavior is observed. I expected that latest Files (one having recent modified time than existing one) from Installer should overwrite existing files even though they matches its data and File version.

I would like to know what is the criteria which AI used for determining whether existing files are older or not.


Thanks,
Prasanth
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Existing Files are not overwitten

Hello Prasanth,

The file comparison at install time is done by the Windows Installer service and not by Advanced Installer. Windows Installer uses the following file versioning rules.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasanth.tech
Posts: 35
Joined: Wed Oct 28, 2015 5:53 am

Re: Existing Files are not overwitten

Thanks for the info.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Existing Files are not overwitten

You're welcome.

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

Return to “Common Problems”