Tassc

Won't overwrite existing files

Just evaluating Advanced Installer. We are testing a small upgrade to an existing application (already installed on target PCs). I want to install a single file "a.dll" into a target directory where an older "a.dll" already exists. When we run the Advanced Installer MSI file, the install appears to complete OK, but the old file is still there and the new file hasn't replaced it, but it gives the impression that everything worked (no errors + upgrade appears in add/remove programs!). We then Remove the new MSI installation and the old file is deleted!

How do I overwrite existing files?

Thanks
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Overriding an existing application is always tricky. Have you tried uninstalling it first?

Windows Installer will override if the date/version is higher on the new one. Rung with Log to see exactly what is going on.

The best way to do it would be to use a Custom Action to remove the original file.

Hope that helps,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”