I was also looking for that feature: install a website without virtual directory.
The last Oleg's answer helped a lot.
Since I have only one website and would like to remove all virtual dirs the following code snippet works just fine:
The last Oleg's answer helped a lot.
Since I have only one website and would like to remove all virtual dirs the following code snippet works just fine:
project.WixSourceGenerated += doc =>
doc.FindAll("WebVirtualDir")
.ForEach(x => x.Remove());