Browsing IIS Web Sites and Virtual Directories - 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!

davidhomer
Posts: 38
Joined: Fri Oct 23, 2009 2:39 pm

Browsing IIS Web Sites and Virtual Directories

Hello,

I have a couple of questions about IIS Web Sites and Virtual Directories

1. Selecting the Site Index
Following your sample code from here I am trying to set the IISBrowseOutputMode to 2 (web site index) so that I can obtain the unique ID of the web site and therefore perform operations on it with a custom action.
http://www.advancedinstaller.com/user-g ... e-iis.html

However whatever I do I can only get the text value such as "Default Web Site" from the property assigned to the combobox, the IISBrowseSelectedValue is always blank and I can't find an action called IIsDecodeBrowseResult that is suggested in the documentation.

2. Separate Web Site and Virtual Directory browsing
Could I make a feature request that you can have independant Web Site and Virtual Directory ComboBoxes so that when you select the Web Site from the drop down list the Virtual Directories combobox is populated with Virtual Directories found on that web site?

3. I would like to create a virtual directory within the selected web site however I can only see the option in advanced installer to
a) Create a new web site, and create a virtual directory under that web site
b) Create a new virtual directory under the default web site (without modifying the default web site)

I would like to be able to create a new virtual directory under a web site other than the Default Web Site (by specifying the web site name or index from the dialog discussed in point 1) Is this possible?


Thanks again,


Dave
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Browsing IIS Web Sites and Virtual Directories

Hello,

1) on the Custom Actions page, right click on UI Custom Actions->Predefined UI Custom Actions->Browse IIS Web Sites & Virtual Directories". On the third wizard page you can select "website index" from the "Stored Item Data" combo box.

2) we added this improvement on our TODO list and will be available in a future version of Advanced Installer. In the meantime you can use the value stored in the IISBrowseOutput property, parse it, and sort the values there depending on what they are (virtual directories or web sites), then display them in separate combo boxes. Our guide on How to browse for Web Sites, Virtual Directories and Web Applications on IIS Server might be of use

3) Store the selected web site's name in a public property, let's say SELECTED_WEBSITE. Make sure the name is stored in the SELECTED_WEBSITE property, and not the website index.
On the IIS Page in Advanced Installer create a new website with the name [SELECTED_WEBSITE] in the tree. This way, the Virtual Directory will be created under the website designated by the SELECTED_WEBSITE property.

Also select the newly created website from the tree, and in the right pane under the "Web Site" section, make sure the "Skip item installation" is selected from the "Action if duplicate" drop down list.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
titijack
Posts: 3
Joined: Tue Jan 19, 2010 3:36 pm

Re: Browsing IIS Web Sites and Virtual Directories

Hello,
I’ve followed this guide that fit all my needs. I have successfully populated a combo box with the available web servers and used an edit control to specify the virtual directory name. All is well performed.
However, if I use this specific web server with a public property (SELECTED_WEBSITE in your sample), nor the virtual folder, neither the application pool is removed when I uninstall the application.
I try with a copy of this project and the default web site only (the one defines by default in the IIS panel) and all is well removed.
Any help would be appreciated.
Regards,
Thierry
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Browsing IIS Web Sites and Virtual Directories

Hello,

In order to assist us with troubleshooting this issue, please do one of the following:
a) send your .aip project file to support at advancedinstaller dot com
b) install your product, export the following registry keys and send them to the above email address:

Code: Select all

on x86: HKEY_LOCAL_MACHINE\Software\Caphyon\Advanced Installer\IIS\
on x64: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Caphyon\Advanced Installer\IIS\
Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
titijack
Posts: 3
Joined: Tue Jan 19, 2010 3:36 pm

Re: Browsing IIS Web Sites and Virtual Directories

Hello Gabriel,
I have sent the requested information.
Best Regards,
Thierry
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Browsing IIS Web Sites and Virtual Directories

Hi Thierry,

We are still investigating the issue. We will get back to you when a conclusion is reached.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Browsing IIS Web Sites and Virtual Directories

Hello,

We have found a bug that is causing the same behavior. However we are not sure if this is the cause of the misbehavior you are experiencing. Please contact us by email (support at advancedinstaller dot com) so we can provide you with the potential fix.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
titijack
Posts: 3
Joined: Tue Jan 19, 2010 3:36 pm

Re: Browsing IIS Web Sites and Virtual Directories

Hello Gabriel,
The patch that you've sent me fix the problem.
Thank you for your support!
Thierry

Return to “Common Problems”