How to install to a non default web site with a silent installation

Uma's picture

Hi,
I am using Wise Installation Studio 7.0 sp1 to create a web application installation. The setup I am making is very simple - Create a virtual directory in the website the user picks. I don't create the website with the setup, just display the existing websites to the user. The virtual directory gets installed to the website the user selects. This is working beautifully in the UI using the template Wise provides for web applications in WIS.

BUT - how do I get this to work for silent installs? When you perform silent installs, setup defaults to the default web site and I am unable to figure out how to change this behavior so that you can install the virtual directory to a non default website. (via the msiexec commandline with the /qb option - silent install)

Any ideas?
Thanks!
Uma-

Uma's picture

Hi, A little more

Hi,
A little more information on my problem -
If you create a simple web installation based on my explanation (Create a virtual directory in any one of the websites listed) you can see this problem -

1) In IIS, ensure that you have a default and a non default website. For this scenario, we will assume that the website ID for default website is 1 and the website ID for the non default website is 2.
2) Run the msi with the following commandline
Msiexec.exe /I <FullPathToTheSetup.msi> /qb WISEWEBSITES_SITE_DESC_LIST=2 WISEVIRTUALDIRECTORY_VIRDIR_NAME=SDS_TEST
You will note that in the commandline above, I am passing the non default website id of 2. And a non default virtual directory name of SDS_TEST.
3) After the silent install completes, check IIS. The virtual directory SDS_TEST is created under the DEFAULT website with an id of 1, instead of the non default website.

NOTE: WISEWEBSITES_SITE_DESC_LIST and WISEVIRTUALDIRECTORY_VIRDIR_NAME are properties wise creates in WIS. So in your test application, these properties could be different. I will try attaching the zip file that contains my test app to this.

Any ideas on how to make the setup install my virtual directory to a non default website that I specify on the commandline?
Thanks!
Uma-