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
FOLLOW US
Get the latest news in Application Packaging