aleksandr.shtifanov
Posts: 20
Joined: Mon Jun 02, 2014 8:31 am

Missing files after installation without manual uninstall

In the following scenario the installer does not copy/install 5 of the files included in my setup:

1) When I do not uninstall the previous version manually and instead run the new setup and let it uninstall the old version
AND
2) When I do not change/increase the version of the included files (DLLs)

Like I said, 5 of the files are not in the installation directory after a successfull installation. If I run the setup again and select "Repair" then this files are created.
There are much more other DLLs where the version remains the same, but the installer only skipps those 5 files. All this files are in the same synchronized folder

All the files have the option: File Properties => Operations => "Overwrite only if the file existing file is older"
When I change the option to "Always overwrite existing file", it works, the setup copies the file.

But this is not an option, because:

1. "Overwrite only if the existing file is older" should not delete a file if the version is the same. I guess thats the problem, the file is deleted and not restored because its neither older nor newer.
2. I use the folder option "Synchronize content with folder from disk", to be able to add files without modifying the *.aip file. In this case the new files would have the default option "Overwrite only if the existing file is older" and this problem can happen again with the new files

What am I missing, why are this files deleted or not installed?

I´m using Advanced Installer 13.1 build 71115
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Missing files after installation without manual uninstall

Hi,

Please read the "Why some files are missing from the installation folder when performing an upgrade" FAQ which described why you encounter this problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aleksandr.shtifanov
Posts: 20
Joined: Mon Jun 02, 2014 8:31 am

Re: Missing files after installation without manual uninstall

Hi,

>... the file from the destination folder has a higher version than the source file...

I guess this was the problem. Increasing the version solved it.

But isn´t that a wrong concept when I provide a file F2 with a lower version and the option "update only if newer", I would expect that the existing file F1, which has a higher version remains installed.

Instead the Installer deletes the file F1 and skips file F2. This will always result in a corrupted installation!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Missing files after installation without manual uninstall

Hi,

Indeed, this seems to be a Windows Installer problem that appears because of the place the "RemoveExistingProducts" action is scheduled. You can see more details in the "Why Windows Installer removes files during a major upgrade if they go backwards in version numbers" article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”