Last post Nov 21, 2008 01:24 AM by Thomas Sun – MSFT
Nov 17, 2008 09:54 AM|YairNevet|LINK
My application works in integration with several virtual directories.
Anyway, I would like to install several virtual directories (projects) with one Web Setup Project.
Is it possible? I know that when you create a web setup project and try to install it, you get only 1 option: to create 1 virtual directory for the website.
Anyone can help?
Nov 20, 2008 04:38 AM|Thomas Sun – MSFT|LINK
Web Setup project installs the website into default virtual directory such as "C:\Inetpub\wwwroot". If we want to install the website to another location, we can create Custom Action to create virtual directory that is specified by "TARGETDIR" of Web Setup
In order to provide user with dialog where user can input target directory, we can use Orca.exe. For more information, see
If we want to install multiple websites in one Web Setup project, you can try to create Virtual Directory and copy website to this path in Custom Action.
I look forward to hearing from you.
Nov 20, 2008 05:55 AM|YairNevet|LINK
Nov 21, 2008 01:24 AM|Thomas Sun – MSFT|LINK
Thanks for your response.
We can use Custom Action to create Sites and Virtual Directories in IIS with System.DirectoryServices.
For more information, see