Install over newer version

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

Install over newer version

Postby ElectronShepherd » Tue May 22, 2012 1:42 pm

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.
ElectronShepherd
 
Posts: 13
Joined: Thu Jun 30, 2011 11:51 am

Re: Install over newer version

Postby mihai.petcu » Wed May 23, 2012 7:13 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am


Return to Common Problems

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron