Dynamic Multiple Instances - Advanced Installer Community
spearsp
Posts: 9
Joined: Thu Nov 14, 2013 2:28 pm

Dynamic Multiple Instances

Hi

I am new (very new) to Advanced Installer, working on the trial version which I downloaded and installed this morning.

Here is the crux: We need to be able to install multiple instances. I have experimented with the Multiple Instances page, and it does exactly what I need, with one caveat: I need to list all of the instances that might be installed in the installer, and these are visible to the user. Since I don't know how many instances a user is going to want to install, I don't know how many I should be adding. What I need is as follows:

1. Install for the first time. Ideally, I would like to be able to name this instance, but this is not a complete show stopper.
2. Install again. This time, I expect to see a dialogue asking if I want to maintain/upgrade an existing instance, or install a new one. The user can select one of the existing instances, or type in the name of a new one.
3. Repeat step 2 as many times as is necessary.

The problems with this are as follows:
1. The first installation does not permit me to name an instance. As I mentioned previously, this is not a show stopper, but is something that would polish this off properly. Is there something I can do with a custom dialogue to make this work?
2. The second installation gives me an option to select an uninstalled instance name, or type a new instance name. I don't want the user to select from a list. It must either be blank (default instance) or whatever name the user types in. No selection.
3. The third installation does not give me the opportunity to create a new instance. It only gives me the option to maintain an existing instance, because I only included a single additional instance in the project. If I include more instances in the project, then they're all listed during the installation, and I don't want that.

A good example of what I am trying to accomplish is MS SQL Server. The installed instances are listed, including the default, and the user can either install a fresh instance with a unique name, or maintain one of the existing installations.

The side-by-side versions option does not help me here, since there could well be multiple instances of the same version installed (for Live and Scratchpad, for example).

Any pointers would be appreciated. I'll be working through the tutorials in the meantime, to see if any other pearls of wisdom jump out at me.

Thanks,
Peter
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dynamic Multiple Instances

Hello Peter and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid we don't have support for this. However, we have added this improvement on our TODO list for creating dynamic multiple instances, and it will be available in a future version of Advanced Installer.
Thank you for your suggestion.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
spearsp
Posts: 9
Joined: Thu Nov 14, 2013 2:28 pm

Re: Dynamic Multiple Instances

Thank you, Dan. I look forward to seeing that, then. In the interim, I have built the installer with several instances with specific instructions to our support crew and to our clients. I would appreciate it if you could post a reply once the development task hits your schedule and you can give me a viable ETA.

Thanks,
Peter
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dynamic Multiple Instances

You're welcome Peter,

I'm afraid it is to early so I cannot give you an ETA for this. If there is anything I can help with, please let me know.

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

Re: Dynamic Multiple Instances

Hello,

This feature has been added in version 11.2 of Advanced Installer released on May 21st, 2014.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
manuel_armas
Posts: 23
Joined: Fri Jun 13, 2014 6:20 pm

Re: Dynamic Multiple Instances

Hi,

I've got now the 11.2.1 version, I want to know how to make this new feature work. I have the option to generate instances at installation time turned on already but it seems no different from my previous build.

also additional question, Why I cant see the multiple instance tab when creating new project (.exe type already).

Thanks,
Manny
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dynamic Multiple Instances

Hello Manny and welcome to Advanced Installer forums,

Before the 11.2 version of Advanced Installer, in order to install multiple instances you needed to define them in the Multiple instances view. So you could only install instances defined there and as many as you had defined. For example, if you defined 3 instances, you could install only these ones. So, after the first time installation of your installation package you were prompted with the following dialog, to install a new instance from the predefined list. Please see the attached image for your reference:
PredefinedMultipleInstances.png
PredefinedMultipleInstances.png (42.08 KiB) Viewed 11608 times
Starting with the 11.2.1 version of Advanced Installer, there is no need to define them in the Multiple Instances view. All you have to do is to enable the Generate instances at installation time option and if you run once again your installation package, after you install it for the first time, you are prompted to install a new instances. Also, you can install as many as you want, not as before as you could only install as many as you defined in the Multiple Instances view. Please use the attached image for your reference:
GenerateInstancesAtInstallationTime.png
GenerateInstancesAtInstallationTime.png (36.23 KiB) Viewed 11608 times
Let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
manuel_armas
Posts: 23
Joined: Fri Jun 13, 2014 6:20 pm

Re: Dynamic Multiple Instances

Hi Dan,

Actually like what I have said, I already have that option turned on. I guess I was not clear of what I am looking for...
Aside from ability to install dynamic multiple instances, I'm looking for a way to dynamically name the default instance which uses the product name as its instance name and not the first instance after installing the default. actually this is the first item from Peter's request.
defaultinstancenaming.png
defaultinstancenaming.png (135.79 KiB) Viewed 11571 times
By the way I got the below error message trying to run the first instance.
invalidcommandline.png
invalidcommandline.png (5.07 KiB) Viewed 11571 times

Thanks,
Manny
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dynamic Multiple Instances

Hi Manny,

Please note that the Product Name field is of PseudoFormatted Type. Properties referenced by PseudoFormatted data types are resolved at build time, so you cannot dinamically name the default instance.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
icarorsl
Posts: 1
Joined: Wed Nov 19, 2014 4:38 pm

Re: Dynamic Multiple Instances

Hi,

I am using "Generate instances at installation time" as "true" so I have dynamic instances.

I need to use the "InstanceId" in the "Application Folder" (in "Install Parameters"). i.e. my path have to have the InstanceId as well (C:\Program Files\Corp\App\"InstanceId"). It was working properly with no dynamic instances, but not any more.

Question is: InstanceId should work even using Dynamic Instances or not?

Thanks,

Icaro
Attachments
instance_id_dynamic_multiple_instances
instance_id_dynamic_multiple_instances
instance_name.png (32.25 KiB) Viewed 11014 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dynamic Multiple Instances

Hello Icaro and welcome to Advanced Installer forums,

Indeed, the InstanceId property is empty when the Generate instances at installation time option is used from the Multiple Instances page.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”