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!

vicecapstix
Posts: 4
Joined: Tue May 12, 2020 5:37 am

Multi Version, Rebuild and Instances

Dear Advanced Installer community.

I am having trouble with my builds and instances and versions.

Let me describe what I am trying to achieve. I want to build an installer that takes in a few config settings and then builds a website in IIS. now I have got the building of the website all correct. The issue I am facing is I would like to install multiple websites. I was able to do this by enabling Multiple instances. However, whenever I rebuild without making any changes I can't use the new installer for additional instances where the product is already installed.

The Next issue being we also want to allow multiple versions of the site and saw that I cant enable major versions can be installed side by side but then I cant use multiple instances.

Any ideas on how I can get around this or a solution that would work where I can have multi installs and versions?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Multi Version, Rebuild and Instances

Hello and welcome to Advanced Installer forums,
I want to build an installer that takes in a few config settings and then builds a website in IIS. now I have got the building of the website all correct.
All good until now. I am glad you got this working as expected.
The issue I am facing is I would like to install multiple websites. I was able to do this by enabling Multiple instances.
I believe we are complicating a bit here. Multiple Instances are not mandatory if you want to install multiple websites. All you need to do is to add another entry for your website in the IIS page.

I believe this would pretty much solve your upgrade issues, because, as you could have seen, you cannot author major upgrades and generate instances at install time. The two options above are not compatible.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vicecapstix
Posts: 4
Joined: Tue May 12, 2020 5:37 am

Re: Multi Version, Rebuild and Instances

Hi

Thank you for the response. I never thought about doing multiple sites within one installer. This leaves me with a few questions.


1. how can you determine the number of sites to install? (for us each site is a separate environment of the web applications so typically you would install 2 or 3 (DEV, TEST, PROD)
2. As each site has its own DB server how to get the installer menus to request for X numbers of SQL configurations?
3. When uninstalling would one be able to remove just one of the sites? As clients would generally upgrade DEV, TEST before upgrading the PROD site?

Thank you for the help thus far,

Regards
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Multi Version, Rebuild and Instances

Hello,
I never thought about doing multiple sites within one installer
Indeed, you can do that.
1. how can you determine the number of sites to install? (for us each site is a separate environment of the web applications so typically you would install 2 or 3 (DEV, TEST, PROD)
I am not quite sure what you mean here. Could you please give me some more details about what you want to achieve, so I can better understand the scenario?

If by "determine the number of sites to install", you mean conditionally installing the sites, let's take the following point as well:
2. As each site has its own DB server how to get the installer menus to request for X numbers of SQL configurations?
and try to have an answer for both.

Here is how I am thinking about this:

- create a custom dialog that will have, let's say, 3 checkbox controls

- based on this controls, install the sites (e.g. the user will be able to choose what sites he wants installed). This can be done by using the "Install Condition" field from your IIS Website.

- for each site, create one SQL Connection dialog. These dialogs should be scheduled after the one with the checkbox controls (where the user chooses which sites to install). In our case, we will have 3 dialogs. We can condition these dialogs by using the previously created checkbox controls as well. To do so, you can right click on your dialog --> "Show only if..." and use the checkbox as a condition.

The logic behind this is basically to only show the connection dialogs for the sites the user have selected.

For more information about this, you can have a look over our "Configure most common SQL Server connections" article. Also, the "How to test SQL Connection parameters" may also be useful.
3. When uninstalling would one be able to remove just one of the sites? As clients would generally upgrade DEV, TEST before upgrading the PROD site?
Unfortunately, I am afraid that it is not possible to condition the uninstall of an IIS Website instance (to uninstall a single instance).

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vicecapstix
Posts: 4
Joined: Tue May 12, 2020 5:37 am

Re: Multi Version, Rebuild and Instances

Hi Catalina

Thank you for your response.

To explain the DEV, TEST, PROD. Effectively clients generally like to have 2 or 3 of the same site since the site is a web app. Hence testing is required before upgrading to PROD instance of the site or clients may wish to host a multiple of the web app to separate the departmental use. this is also the reason I am wanting separate control of each site by having separate installers. The other constraint being DEV and TEST could be on newer versions.

I think I found a workaround for my problem. What I did is the following.

I disabled multiple instances and enabled major updates can be installed alongside each other. so say the version is 3.7.1 I just append a 2 then a 3 and then 4. e.g. 3.7.12. this way I can do one site per installation and have multiple entries in add remove programs. effectively build X numbers of version iterations based on a number of sites the client needs.

Unfortunately, I ran into an issue of trying to custom the name of the application in add remove program. [ProductName] - [SiteName] - Is there way to do this? [SiteName] is entered as one of the wizard pages before application installation.

Regards
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Multi Version, Rebuild and Instances

Hello,
I disabled multiple instances and enabled major updates can be installed alongside each other. so say the version is 3.7.1 I just append a 2 then a 3 and then 4. e.g. 3.7.12. this way I can do one site per installation and have multiple entries in add remove programs. effectively build X numbers of version iterations based on a number of sites the client needs.
I am really glad you sorted things out and that everything works as expected now.
Unfortunately, I ran into an issue of trying to custom the name of the application in add remove program. [ProductName] - [SiteName] - Is there way to do this? [SiteName] is entered as one of the wizard pages before application installation.
Unfortunately, this is not possible. The "Name" field from "Product Details" page is of "pseudo-formatted" type, which means it is resolved at build time (when you build your project) and it can not be overwritten.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”