Andrey.Burda
Posts: 23
Joined: Tue Dec 14, 2021 12:06 pm

Multi instances installation approach

Wed Dec 15, 2021 3:43 pm

Hello!

I need to implement a bit tricky ability for installation of multiple instances.

I have a "core" installer that installs/configures Web Applications and Windows services. Additional installer will add few more Web Apps to "core" stuff.
Basically, it should copy sources to a specified folder from one of already installed "core" instances. 8-)

The most challengeable part is ability to create new instance of any version dynamically.
I created new project, switched "Generate instances while installation time" and built a couple of installer EXE files of different versions: 1.0.0, 2.0.0, 3.1.1, but with the same name.

First, i installed an instance of v1.0.0 called Treasury, then i run installer twice and selected "install new instance" called "New Instance" and "New Instance 1":
15-12-2021 4-55-43 PM.jpg
15-12-2021 4-55-43 PM.jpg (72KiB)Viewed 2280 times
Next, i run the installer v3.1.1. but in this case I have no option to create new instance for this version, only upgrade of existing v1.0.0:
15-12-2021 4-57-57 PM.jpg
15-12-2021 4-57-57 PM.jpg (52.44KiB)Viewed 2280 times
I upgraded "New Instance" and then run an installer v2.0.0. Again, i do not see an option for creating new instance for v2.0.0, only uprrade of existing v1.0.0 and v3.1.1:
15-12-2021 4-58-28 PM.jpg
15-12-2021 4-58-28 PM.jpg (58.1KiB)Viewed 2280 times
I upgraded "New Instance 1" v1.0.0 to v2.0.0 and once i run the installer of v2.0.0 again, i see an option for adding new instance, but when i choose it - i see a message in dialog saying that "A more recent version of Treasury already installed on this computer".

I noticed that in order to have an ability to create a new instance of let's say v3.1.1, i have to upgrade the "initial" v1.0.0 called "Treasury" to v3.1.1 and the version of new instance should be the most recent among already installed.
But it is not my case. I should be able to create a new instance for v2.0.0 when i already have v1.0.0 and v3.1.1 installed on machine.

Is there any built in functionality to achieve what i want?
I am not an expert in the Advanced Installer, maybe I need some advanced option, custom EXE bootstrapper or whatever.

Thanks in advance.

Liviu
Posts: 1034
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Multi instances installation approach

Fri Dec 17, 2021 10:58 am

Hello Andrey,
Is there any built in functionality to achieve what i want?
Unfortunately, it is not quite possible to achieve this.
This issue was also discussed on the
Multiple Instances doesn't allow upgrading an instance if another instance is upgraded to a higher version
forum thread.

Thank you for your understanding. Please let us know if you have any other questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”