hehongyu2000
Posts: 9
Joined: Mon Mar 01, 2010 3:53 pm

Upgrading all instances problem

Hi Support,
I have some problems on upgrading existing instances with package generated by AI tool (version 7.6.1), following are detail steps what I did:
1. I created a multiple instance package with AI tool.
2. I installed three instances on my machine (testing, training, production)
3. I bumped up version number to generate a new package.
4. I use the new package to upgrade my installed instances.
5. I selected "Upgrade all installed instances" option and click OK to continue.
6. The installer start to ask me to enter all information.
7. The installation finished.

There are two problems I found:
1. In step 6, installer forces me to enter all information that already be contained in existing instance. I expect the upgrade will be just continue without ask me to enter anything.
2. The upgrade uninstalled all my existing instances, and installed a fresh new instance. So, my original instances, "testing", "training", "production", are all gone, and left me with the new "testing" instance. I expect all three instances are still there after the upgrade.

Do I need to config something in my AI project to make the upgrade process work like I expected? Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Upgrading all instances problem

Hi,
In step 6, installer forces me to enter all information that already be contained in existing instance. I expect the upgrade will be just continue without ask me to enter anything.
This is done by default because major upgrades uninstall the previous version before installing a new one (presumably the new version uses different settings and information). However, you can customize this behavior. For example, you can conditionally show dialogs, retrieve information using searches etc. If you can give me more details about what you want to skip during an upgrade, I can offer a more detailed explanation on how to do it.
The upgrade uninstalled all my existing instances, and installed a fresh new instance. So, my original instances, "testing", "training", "production", are all gone, and left me with the new "testing" instance. I expect all three instances are still there after the upgrade.
I'm afraid that this is how major upgrades work. The original version (all instances in your case) is removed before installing the new version. Currently only one instance is installed after the upgrade, but we will consider adding an option for installing all of them. Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tdekker
Posts: 2
Joined: Fri Feb 19, 2010 10:13 pm

Re: Upgrading all instances problem

Hi Cosmin,

1) I'm unclear on the limitation below. Is this a limitation of AI or of windows installer?

"I'm afraid that this is how major upgrades work. The original version (all instances in your case) is removed before installing the new version. Currently only one instance is installed after the upgrade, but we will consider adding an option for installing all of them. Thank you for your suggestion."

2) Is there a way to work around this issue by disabling the option to upgrade all instances?

3) What instances does AI un-install and re-install in the case where a user selects an individual instance to upgrade?

Thanks

Tom
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Upgrading all instances problem

Hello Tom,

This is not a limitation. It is how Windows Installer works. The multiple instances feature is an Advanced Installer specific issue. Due to how Windows Installer works there is no way to implement the behavior you are seeking.

This being said, when attempting to upgrade multiple instances a dialog will pop up prompting you which instance to upgrade. Instead of upgrading them all by selecting the first option, upgrade them individually one by one so that they remain on the system.
3) What instances does AI un-install and re-install in the case where a user selects an individual instance to upgrade?
Advanced Installer does not uninstall the instance. The installation is handled by Windows Installer as usual, so expect it to be a simple uninstall.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
tdekker
Posts: 2
Joined: Fri Feb 19, 2010 10:13 pm

Re: Upgrading all instances problem

Thanks Gabriel,

Is there a way to disable or hide the option to upgrade all instances? We don't want users accidentally selecting this option and removing all of the existing instances.

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

Re: Upgrading all instances problem

Hi Tom,

I'm afraid this is not possible, these options are embedded into the bootstrapper (the setup EXE file) built by Advanced Installer and cannot be configured.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”