Directory Element

WiX Help

Directory Element

Description

Directory layout for the product. Also specifies the mappings between source and target directories.

Windows Installer references
Directory Table
Parents
Directory, DirectoryRef, Fragment, Include, Module, Product
Inner Text
None
Children
Choice of elements (min: 0, max: unbounded)
Attributes
Name Type Description Required
Id String This value is the unique identifier of the directory entry. Yes
FileSource String Used to set the file system source for this directory's child elements.  
LongName LongFileNameType Set this value to the non-8.3 name for the directory. This attribute cannot be specified unless the Name attribute is used to set the short name for this directory.  
LongSource LongFileNameType Set this value to the non-8.3 name of the directory on the source media for systems supporting long names. This attribute cannot be specified unless the SourceName attribute sets the short source name for this directory.  
Name String The 8.3 name of the directory. Do not specify this attribute (or the LongName attribute) if this directory represents the same directory as the parent (see the Windows Installer SDK's Directory table topic for more information about the "." operator).  
SourceName ShortFileNameType The 8.3 name of the directory on the source media. If this attribute is note specified, the Windows Installer will default to the Name attribute.  
src String This attribute has been deprecated; please use the FileSource attribute instead.  
See Also
Wix Schema, DirectoryRef