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!

honzajic
Posts: 10
Joined: Thu Oct 13, 2011 12:31 pm

Having problems with detecting previous version installed

Hi all,

I am having problem with a project when I create new major upgrade from it and install it on a machine on which previous version exists the new one installation overwrites previous installatiod without uninstall and in 'Add or Remove Programs' both installations are present after installation of newer version.

I was investigating this issue quite thoroughly, check everything twice in AI, but I am not very well experienced with MSI tables...

Both these projects are installed per machine only with elevated rights, both have same UpgradeCode, different ProductCode.
In AI: Upgrade set up to automatically upgrade older versions and uninstall first.

I've tried to run the new installation in logging mode and put OLDPRODUCTS property in wizard during installation but OLDPRODUCTS didn't show anything and log shows "FindRelatedProducts. Return value 1.", but no evidence of set up of OLDPRODUCTS property.

Could you please help me?

Thank you in advance,
Honza
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Having problems with detecting previous version installe

Hi,

Can you please send us the .AIP (project) files for the two versions to support at advancedinstaller dot com so we can investigate them?

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Having problems with detecting previous version installe

Hi,

Your "OLDPRODUCTS" property is not set because you have removed the action from "Upgrade" table that set the "OLDPRODUCTS" property value. So, in order to achieve your scenario go to the "Table Editor" page and select "Upgrade" table. Now select the row of the table that set the "OLDPRODUCTS" property and from its context menu choose "Revert" option.

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”