Creating a virtual directory (application) in an existing web site - Advanced Installer Community
davidjhomer
Posts: 60
Joined: Wed Jun 08, 2016 3:58 pm
Contact: Website Facebook Skype Twitter

Creating a virtual directory (application) in an existing web site

Hello,

We normally create our application under the Default Web Site.

We added a IIS Browse for web sites and put this into the property WEB_SITE_NAME, and set the Default Web Site to [WEB_SITE_NAME] expecting the virtual directory to be created under this web site.

https://www.centrel-solutions.com/temp/websites.png

However this still creates the virtual directory under the Default Web Site, it seems the only option is to CREATE a web site which would mean configuring it. That's not what we want - we just want to tell the installer the name of the web site under which the virtual directory application should be created.



Thanks,


Dave
CENTREL Solutions Ltd
Server audit and documentation tools.
http://www.centrel-solutions.com
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Creating a virtual directory (application) in an existing web site

Hello Dave,

I'm afraid I don't fully understand what you are trying to achieve. Can you please give us more details, maybe exemplify a bit, about the behavior you are trying to achieve?

Also, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidjhomer
Posts: 60
Joined: Wed Jun 08, 2016 3:58 pm
Contact: Website Facebook Skype Twitter

Re: Creating a virtual directory (application) in an existing web site

Hi Daniel,

Thanks for the reply sorry if it's not clear.

I want to create a virtual directory (application) under an existing web site that the user selects, normally this will be the Default Web Site.

I do not want to create a new web site.

However when I goto Server > IIS > Sites, if I rename the Default Web SIte to [SELECTED_WEB_SITE] I expected AdvancedInstaller to resolve [SELECTED_WEB_SITE] to the name of the web site the user has selected and put the new virtual directory under that web site.

It doesn't, it just ignores the variable name or any name other than Default Web Site and puts the virtual directory under the default web site.
NewName.png
NewName.png (6.64 KiB) Viewed 4926 times
I can create a new web site, but I don't want to do this because then I have to know all of the binding settings etc and I don't want to be responsible for this. I just want users to be able to specify an existing web site that they're responsible for if needed.


Thanks,


Dave
CENTREL Solutions Ltd
Server audit and documentation tools.
http://www.centrel-solutions.com
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Creating a virtual directory (application) in an existing web site

Hello Dave,

Thank you for your further clarification. This was really helpful.

First of all it seems you are able to rename our "Default Web Site" entry from "IIS" page due to a recent bug appeared in Advanced Installer. This entry should not be renamed and Advanced Installer should not allow you to do that. A fix for this issue will be available in a future version of Advanced Installer, thank you for bringing this to our attention. We will update this thread as soon as a fix will be out.

Secondly, to achieve what you want you should indeed create a new web site in our "IIS" page. Please note that the web site installation will be skipped if you set the Action if Duplicate flag to "Skip item installation" option in the site's "Basic Site Settings" tab from "IIS" page.
screenshot.jpg
screenshot.jpg (89.39 KiB) Viewed 4912 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Creating a virtual directory (application) in an existing web site

Hello,

This was fixed in version 14.0 of Advanced Installer released on May 7th, 2017.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”