Remove old versions, that were allowing side by side install - 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!

Olexa
Posts: 17
Joined: Wed Jun 04, 2008 11:34 am

Remove old versions, that were allowing side by side install

How to automatically uninstall old vesrions which installers were designed for side by side installation? Just setting "Automatically upgrade older product versions" for current version does not help.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remove old versions, that were allowing side by side install

Hi,

What you need can be done by setting the AI_UPGRADE property to "Yes". For example, you can set this property through a Property set with Formatted custom action scheduled under "InstallUISequence" -> "Begin".

Note that you can show the "Begin" standard action by using the "Show Standard Action" button on the toolbar of the Custom Actions page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Olexa
Posts: 17
Joined: Wed Jun 04, 2008 11:34 am

Re: Remove old versions, that were allowing side by side install

Hi, Cosmin,
cosmin wrote:What you need can be done by setting the AI_UPGRADE property to "Yes". For example, you can set this property through a Property set with Formatted custom action scheduled under "InstallUISequence" -> "Begin".

Note that you can show the "Begin" standard action by using the "Show Standard Action" button on the toolbar of the Custom Actions page.
It does not help... What I did:
1. Added MSI that I want to upgrade at Upgrades page (actually, I have alredy set the same UpgradeCode for my installation in .aip file)
2. Added Propery Set with Formatted in InstallUISequence -> Begin, set Property Name to AI_UPGRADE and Formatted Text to "Yes" (tried Yes too).
3. Added custom action to show Session.Property("AI_UPGRADE") in message box in WelcomeDlg for debugging.

Message box shows "Yes", but old installation is not uninstalled...

Olexa
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remove old versions, that were allowing side by side install

Hi,

In my tests the old package is uninstalled automatically. Can you please send us the AIP you are using to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Olexa
Posts: 17
Joined: Wed Jun 04, 2008 11:34 am

Re: Remove old versions, that were allowing side by side install

Hi
cosmin wrote:In my tests the old package is uninstalled automatically. Can you please send us the AIP you are using to support at advancedinstaller dot com so we can investigate it?
During the investigation I've found that my package had Installation Type of "Per-user only", but it changes Installation Type in User Interface sequence, and sets it to Per-machine in case of registering application in Add/Remove Programs. Installer did not arrange old installations for upgrade because at the moment of checking Installation Type was "Per-user only", and old installations were installed per-machine. Once I've changed initial Installation Type to "Per-machine, if user is administrator, per-user otherwise", everything has got OK.

Thanks to Advanced Installer Team

Olexa

Return to “Common Problems”