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="[sources]\packages\setup\files\autorun.exe/> <LayoutFile SourceFile="[sources]\packages\setup\files\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>
<UX SourceFile="[sources]\UI\ux.dll">
<Payload SourceFile="[sources]\UI\resources\resources.dll"/>
<PayloadGroupRef Id="ResourceGroupforJapanese"/>
</UX>
<Chain>
<PackageGroupRef Id="MyPackage" />
</Chain>
<LayoutDirectoryRef Id="Autorun" />
</Bundle>
</Wix>