I want to create virtual directory foo underneath the following existing IIS structure using Wix.
//Default website/mywebapp/editor
In the above snippet, ‘mywebapp’ is a web applicatoin and editor is a non-virtual folder inside that. My new virtual directory ‘foo’ needs to be created inside that non-virtual folder ‘editor’
I am using IIS 7 and Wix 3.5.
Can the above be done using tags or do i need to write a custom action to do that?
Thanks in advance
Finally i found a easy solution to this. came to know that we can use relative path for the alias attribute of webvirtualdir element. So to create virtual folder foo i did the following
Referred the Default website using website element
added webvirtualdir element with alias set to mywebapp/editor/foo (webapp/subfolder/virtualdir)
never expected that the solution is that simple. But meanwhile i have written a custom action using system.directoryservices to achieve the same. But this one is simpler and neat. Might be useful for someone who faces the same scenario. Thanks