Customizable IIS Settings at install time

Got a problem you cannot solve? Try here.
r.prodana
Posts: 4
Joined: Mon Jun 06, 2011 1:48 pm

Customizable IIS Settings at install time

Postby r.prodana » Thu Jun 16, 2011 7:15 am

Hello,

We're currently evaluating your product and trying to find out if it can fullfill our application's requirements.
Even if I spent some days learning and reading about your product, I couldn't find yet the answers for the some questions.
I hope somebody could help me to get faster the answers :).

We need to support all IIS Versions starting with 6.0

1) Is it possible to create additional bindings at install time? (I need to configure the Internet-Domain and additional an Intranet host name, IP Adresses and Ports based on user input).
2) Is it possible to configure the folder where IIS stores the log files?
3) Is it possible to let the user provide with an SSL certificate?
4) Is it possible to set some more settings for the new created Application-Pool? (AplicationPool-Identity for example or some performance settings)

Thank you very much!
razvan

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Customizable IIS Settings at install time

Postby giaviv » Thu Jun 16, 2011 7:35 am

Dear razvan,

Depending on which IIS you are using, you are able to play with IIS's settings with the Set IIS Property command.
So for example, in IIS 6, a path of a website is contained in the metabase property Path, so you would set this property to change the path.
Please read the help file associated with the Get/Set IIS Property - it a complicated subject and the help file will get you up and running better than I will.
After you do so, please let me know if you have any questions - thanks!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

r.prodana
Posts: 4
Joined: Mon Jun 06, 2011 1:48 pm

Re: Customizable IIS Settings at install time

Postby r.prodana » Thu Jun 16, 2011 8:33 am

Hello giaviv,

Thank you very much for your quick answer. I've already saw the Get ans Set IIS Property functions and this is why I keep on testing your product compared with the Advanced Installer for example which offers a lot of these settings already in the user interface. However, searching for examples here in forum, I only saw that these functions had a lot of problems at least until May 2011.

I couldn't find a good example in the forum which shows for example how could I use these functions to create a new binding in IIS6 and IIS7, is even not clear if I can use the function to create a new binding in IIS6.
I think such an example would be helpful not only for me but for anyone which is evaluating your product and as a beginner cannot afford yet to spend so much time to explore all the corners of the documentation files.

Thank you very much,
razvan

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Customizable IIS Settings at install time

Postby giaviv » Thu Jun 16, 2011 10:46 am

Dear razvan,

In IIS 7, you need set the binding by setting the configuration path "system.applicationHost/sites[site:id=$INDEX$](bindings)[binding:protocol=http]->bindingInformation" whereas INDEX is the site index, ,ad 0 is specified in the Site Index field (for root APPHOST access).
Set this property to *:8080: to bind on all IP's for port 8080.

As for IIS 6, since InstallAware does not let you set / retrieve complex properties (ServerBindings is MULTISZ, which is am array of strings and therefore cannot be retrieved / set). Therefore, we have to resort to using the command line utilities (iisweb/adsutil in the case of IIS6) in order to set these values.

I wrote an example installer for you that shows how to set the TCP bindings on both IIS 6 and 7. I hope you find it helpful!
Attachments
IISSetTCPPort.zip
(6.19 KiB) Downloaded 1480 times
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

r.prodana
Posts: 4
Joined: Mon Jun 06, 2011 1:48 pm

Re: Customizable IIS Settings at install time

Postby r.prodana » Thu Jun 16, 2011 2:34 pm

Hi giaviv,

Thank you very much for your example and explanation, this is exactly what I was looking for.
One more question: is the adsutil.vbs script always included in a standard installation of IIS6? (Also when an IIS5.* is getting upgraded to an IIS6?)

Thank you very much,
razvan

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Customizable IIS Settings at install time

Postby giaviv » Thu Jun 16, 2011 2:46 pm

Dear razvan,

It does indeed ship with IIS. There might be a way to disable it though, you probably want to check with Microsoft.
In any case, there is no way to do this if the adsutil script isn't available so you might as well try :)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 18 guests