AndrewAu
Posts: 3
Joined: Thu Jun 16, 2011 6:48 am

Force downgrade / uninstall first

Hello,

I am trying to allow older MSI versions to be installed (replace) newer versions already installed on the customers computer.

I really do want to just remove the newer version and 'upgrade' to the older version.

After researching, I opened AI and clicked 'Upgrades' and ticked 'Customize Advanced Installer upgrade rules'. I then picked 'Find and remove products' on the 'Upgrade Action' tab.

However, after rebuilding the installer, when I run it I see the regular 'A more recent version of <product> is already installed on this computer' message instead of what I expected - a silent uninstall of the (newer) version and then installing the old version.

Could I please get some direction on how to get AI allow downgrades?

Thanks,
Andrew
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Force downgrade / uninstall first

Hi Andrew,

This happens because Windows Installer analyzes the version information of the packages and observes the new one has a smaller version. The only solution
that Windows Installer allows and recommends is to increase the version number.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AndrewAu
Posts: 3
Joined: Thu Jun 16, 2011 6:48 am

Re: Force downgrade / uninstall first

Hi,

Is there no way to do a pre install operation (Custom Action? Some Bootstrapper feature?) that will uninstall the old version for me?

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

Re: Force downgrade / uninstall first

Hello,

As Bogdan mentioned above, the downgrade is not recommended. However, you can try the approach from this post to automatically uninstall the new .MSI when installing the old one.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shunziker
Posts: 11
Joined: Tue Mar 27, 2012 1:57 pm

Re: Force downgrade / uninstall first

Hi
I have a related problem: Without thinking about numbering I always increased the first part of the version number. So the last version had 255.x.x.x. Now I wanted to publish a new version with 256.x.x.x and the installer says a more recent version is already installed. After reading the help it is clear that this is a problem of the limit to 255. Is there a way to work around?

Thanks, Stefan
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Force downgrade / uninstall first

Hi Stefan,

Here's the "Three digit version numbers useless" thread that debates this issue.

Unfortunately, there's no workaround if you exceeded the possible combinations.

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

Return to “Common Problems”