Using WiX, how do I change a property of a subfolder of a virtual directory?
Posted
by Joergen Bech
on Stack Overflow
See other posts from Stack Overflow
or by Joergen Bech
Published on 2010-05-31T20:19:15Z
Indexed on
2010/05/31
20:23 UTC
Read the original article
Hit count: 228
I have a hierarchy of Directory elements in a WiX script.
I also have a component that creates a virtual directory (using IIS:WebVirtualDir), which points to the root of my Directory hierarchy.
How do I change a property (e.g. AnonymousAccess) of a subfolder of the virtual directory, e.g.
MyVirtualDir <<< this is the virtual directory root
MyVirtualDir\MySubFolder <<< this is the subfolder for which I wish to change a property using WebDirProperties
Please note that I do not wish to create a new virtual directory for the subfolder. I only wish to change a few security settings.
The current script is too big to post here, but take a look at the WiX tutorial: 5.3 Web Directory. Suppose in that example that there was another Directory element named "MySubFolder" nested within the "InstallDir" element. What would then be the next step in order to set properties for "MySubFolder" without turning it into a virtual directory?
© Stack Overflow or respective owner