IIS default site + Firewall - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ViktarT
Posts: 9
Joined: Tue Sep 29, 2009 10:20 am

IIS default site + Firewall

Hello all,

I use AI to deploy my web site. I need to determine IIS default web site port and open it in the firewall if it has not been opened yet.
Could you please describe me a scenario how I can do this task.

Thanks in advance,
Viktar
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: IIS default site + Firewall

Hello Viktar,

To get the port number you can use the "Browse IIS Web Sites and Virtual Directories" wizard. When you configure the wizard on one of the dialogs there is combo which will allow you to select "web site bindings". This is the data that will be retrieved from the site and it contains the port number.
This information will be stored in a new property, called "IISBrowseSelectedValue". You can use this property to get the default web sites's port and add the exception in the firewall page.
You can read more in the following article.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ViktarT
Posts: 9
Joined: Tue Sep 29, 2009 10:20 am

Re: IIS default site + Firewall

Hello Mihai,

I appreciate your help. The info was very useful.

Best regards,
Viktar

Return to “Common Problems”