Page 1 of 1

Disable Creation of IIS Website

Posted: Thu Aug 21, 2008 7:58 pm
by liambrennan
Hi,

I wish to give users a choice of websites(already created in IIS) to install my application to, but I do not want to give them the option of creating a new website. The example that is included with InstallAware 8 is fine except I need to disable the ability to write into the website dropdown control therefore restricting the users options to only existing websites. Is there a simple solution to this?

Any help would be appeciated for this newbie,
Liam.

Posted: Fri Aug 22, 2008 1:28 pm
by Darren
This may sound like a crazy place to look, but check out the "My SQL Server Connection" example project. It is 3 dialogs. The 2nd dialog uses the "MS SQL Instances" plug-in to get a list of instances. I think you will find the "Get IIS Site List" will do something similar for a list of IIS web sites. They both return a $NEWLINE$ delimited list.

In the example project they use "Parse String" to strip the last $NEWLINE$ and then use that to populate a combo box.

I think that should get you the result you are looking for.

Good Luck