Hi
I am in the process of creating an installer to install an IIS website. But i need to give the user the option to install onto a New Site, Existing website or a virtual directory. After using the Get IIS Site list to get the existing sites is there any way to retrieve the TCP Port for the selected existing website?
I have so far tried the Get IIS Site Property but have been unsuccessful ("ServerBindings") im beginning to think that this may not be possible?
Im currently using IIS6 but would like the installer to run on IIS7 too.
Any help on this would be great.
Getting the TCP Port of an existing website
Re: Getting the TCP Port of an existing website
Dear Justin,
A few issues have been discovered lately while working with IIS 6/7 in InstallAware. What I would suggest you to do as a work-around is the following:
1) Call iisweb.exe / appcmd.exe in IIS 6 and 7 (respectively) in order to query information about your website.
2) Redirect the output of these commands to a text file.
3) Read that text file and parse it to retrieve the TCP port.
I am attaching a sample project that retrieves the TCP port and supports both IIS 6 and 7, I hope it is helpful.
Best
A few issues have been discovered lately while working with IIS 6/7 in InstallAware. What I would suggest you to do as a work-around is the following:
1) Call iisweb.exe / appcmd.exe in IIS 6 and 7 (respectively) in order to query information about your website.
2) Redirect the output of these commands to a text file.
3) Read that text file and parse it to retrieve the TCP port.
I am attaching a sample project that retrieves the TCP port and supports both IIS 6 and 7, I hope it is helpful.
Best
- Attachments
-
- IISGetTCPPort.zip
- (8.82 KiB) Downloaded 795 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
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
Re: Getting the TCP Port of an existing website
Hi Giaviv
Thats brilliant, thank you so much! was very helpful indeed.
Thats brilliant, thank you so much! was very helpful indeed.
Re: Getting the TCP Port of an existing website
Dear Justin,
You are welcome! Glad to help. Please let me know if you have any more questions.
You are welcome! Glad to help. Please let me know if you have any more questions.
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
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
Re: Getting the TCP Port of an existing website
Is there a way to get the TCP port (MD_SERVER_BINDINGS in metabase) for IIS5.1?
Re: Getting the TCP Port of an existing website
Dear mikel,
I think that the MD_SERVER_BINDINGS metabase property is a complex variable - am I correct?
I think that the MD_SERVER_BINDINGS metabase property is a complex variable - am I correct?
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
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
Re: Getting the TCP Port of an existing website
I'm not sure if its complex or not... Maybe the more direct question I should have posted is "How do you get the TCP Port number under IIS 5.1?"
Re: Getting the TCP Port of an existing website
Dear mikel,
If the MD_SERVER_BINDINGS doesn't work, you will have to use the example I attached above.
If the MD_SERVER_BINDINGS doesn't work, you will have to use the example I attached above.
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
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
Re: Getting the TCP Port of an existing website
MD_SERVER_BINDINGS does not work, and I tried the sample above, but does not work on IIS5.1
Re: Getting the TCP Port of an existing website
Dear mikel,
I touched up the IISGetTCPPort example to add support for IIS 5. Enjoy!
I touched up the IISGetTCPPort example to add support for IIS 5. Enjoy!
- Attachments
-
- IISGetTCPPort.zip
- (10.09 KiB) Downloaded 1466 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
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
Re: Getting the TCP Port of an existing website
Spot on Aviv!!
Re: Getting the TCP Port of an existing website
No worries - good luck!
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
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
Who is online
Users browsing this forum: No registered users and 59 guests