Install over newer version - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ElectronShepherd
Posts: 29
Joined: Thu Jun 30, 2011 11:51 am

Install over newer version

I have two installations, which install different aspects of the same product. They both install a common file, which has a version resource, and is correctly versioned. If I run the first installation, which installs v5.5 of the file (a DLL) and then run the other install, which installs an older version (v5.4), I get the error message "The File <filename> is not marked for installation".

The problem caused specifically by the "newer" file being already on the system. If I manually delete the DLL before running the second install, the second install runs fine. I would expect the second install to simply see that the current file is newer than the one it is trying to install, and continue without replacing it. How can I tell AI to carry on if it finds a newer version of the same file? I've looked on the Version tab of the Properties for the file, but the only option is to always overwite any target file, which isn't what I want to do.

As an aside, the error message above is quoted verbatim, and I don't think the word "File" should be capitalised.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install over newer version

Hello,

This is a known Windows Installer bug related to file versioning rules. As you mentioned yourself, a solution is to use the "Ensure that this file overwrites any installed target file" option in the Version tab of the "Edit File" dialog.

Another approach you can try is to use "Install new version first and then uninstall old version" option in the Upgrades page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”