You can author loose files to the setup layout. Some common examples of those are readme.txt and autorun.inf. To do that, you can use the <LayoutDirectory> or <LayoutDirectoryRef> elements. The <LayoutDirectoryRef> element allows you to put files into a <Fragment> to enable sharing across different Burn packages.
Here is an example of a Fragment that contains a group of files in a LayoutDirectory:
<?xml version="1.0"> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <LayoutDirectory Id="Autorun" Name="."> <LayoutFile SourceFile="path\to\autorun.exe/> <LayoutFile SourceFile="path\to\autorun.inf/> </LayoutDirectory> </Fragment> </Wix>
To reference this <LayoutDirectory> in the bundle, you can use <LayoutDirectoryRef> directly under the <Bundle> element:
<?xml version="1.0"> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Bundle> <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" /> <Chain> <PackageGroupRef Id="MyPackage" /> </Chain> <LayoutDirectoryRef Id="Autorun" /> </Bundle> </Wix>