jfaiga
Posts: 25
Joined: Wed Sep 13, 2006 8:21 am

Ask the user: "Side by side" or "upgrade"

When upgrading to Advanced Installer version 5.1.1, I was prompted with a dialog asking me if I wanted to install side by side, or upgrade the existing installation.
How do I mimic that functionality in my installer?
Thanks!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Simple, just go to the "Dialogs" page and add the "UpgradeDlg" dialog. To display this dialog only if old version of your package are found use following published event on the "Next" button of the dialog scheduled before "UpgradeDlg":

Name: NewDialog
Argument: select the dialog scheduled after "UpgradeDlg"
Condition: (NOT OLDPRODUCTS)

Name: NewDialog
Argument: UpgradeDlg
Condition: OLDPRODUCTS

The second event should already exist so edit only the condition.

Hope this helps.

Best Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
jfaiga
Posts: 25
Joined: Wed Sep 13, 2006 8:21 am

Thanks Gigi, I'll give it a go.
Does it effectively just do an Uninstall before the Install?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
Does it effectively just do an Uninstall before the Install?
Yes, if you select to remove older versions. If you choose side-by-side the older versions will not be removed.

Regards,
cosmin[/quote]
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”