Skip to main content
Version: v3

DirectoryRef Element

Description
Create a reference to a Directory element in another Fragment.
Windows Installer references
None
Parents
Fragment, Module, PatchFamily, Product
Inner Text
None
Children
Choice of elements (min: 0, max: unbounded)
  • Component (min: 0, max: unbounded)
  • Directory (min: 0, max: unbounded)
  • Merge (min: 0, max: unbounded)
  • Any Element (namespace='##other' processContents='Lax') Extensibility point in the WiX XML Schema. Schema extensions can register additional elements at this point in the schema.
Attributes
NameTypeDescriptionRequired
IdStringThe identifier of the Directory element to reference.Yes
DiskIdDiskIdType Sets the default disk identifier for the files contained in this directory. This attribute's value may be overridden by a child Component, Directory, Merge or File element. See the File or Merge elements' DiskId attribute for more information.  
FileSourceStringUsed to set the file system source for this DirectoryRef's child elements. For more information, see Specifying source files. 
srcStringThis attribute has been deprecated; please use the FileSource attribute instead. 
Any Attribute (namespace='##other' processContents='lax') Extensibility point in the WiX XML Schema. Schema extensions can register additional attributes at this point in the schema.
How Tos and Examples
See Also
Wix Schema, Directory