pay928
Posts: 25
Joined: Thu Dec 02, 2010 11:32 pm

Installing Old Product Version

Hello,

I want to allow users to install an older Product Version. I can allow this by selecting "Allow side by side installs of different Product Versions". The problem arises when they choose the same install directory that the exe's aren't being replaced (only ones with version numbers). Is there an option to always use the current installer's files or would a custom action be needed?

Regards,
Pat
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installing Old Product Version

Hi Pat,

Why would you want to replace another version's files but keep the installation? In this case you would have two versions installed on the same machine pointing to the same resources.

A recommended approach in this case would be to set a custom action on the "Next" button of the FolderDlg that performs a search in the application directory and shows a message to the user(e.g. "Another version of this product is already installed in the selected location").

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pay928
Posts: 25
Joined: Thu Dec 02, 2010 11:32 pm

Re: Installing Old Product Version

Hello,

This does work, and we just move the older installation to a different folder. However, is it possible to uninstall the newer version at the start of an older version install? For example, if we install Version 4 of our application and Version 5 exists, we would like Version 5 removed and to only have Version 4 on the machine.

Edit: I was able to find a useful link here but the msi I am using is inside of an exe. Is there a way to update the AI_DOWNGRADE rows in this scenario?

I was able to remove the AI_DOWNGRADE rows from the .aip file and the message went away and it works now.

Regards,
Pat

Return to “Common Problems”