cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Naveed
Level 6

How to enable/disable creation of Website / Virtual Directory

Hi,

I am creating a web application installer using Basic MSI project type in InstallShield 2010 Premier. I create two websites using Installshield's IIS view. Is there a way to turn on / turn off the creation of websites based on a command line parameter? i.e. I want the option to create or not create the website based on user selection.

Is there a way to do this?

Thanks,
Naveed
Labels (1)
0 Kudos
(3) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

You can add conditions to the components containing these websites. The conditions can be based on properties set at runtime or passed on the command line.
0 Kudos
Naveed
Level 6

Can you please elaborate your solution a bit. I am new to IS.
My website has only one feature which installs both websites.
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

You can see which component a website is associated with in the IIS view by selecting a website and look at the Component setting for the site. Then, make a note of this component name and go to the Setup Design or Components view and select the component. In the component settings, you can enter a condition for the component in the "Condition" field. More information on conditional statements can be found in the following article:
Conditional Statement Syntax
0 Kudos