I am creating a wix installer for a .NET project with many dependencies. Currently, I have a working .msi installer, but as expected all the dependency .dll's (as well as a resources folder) are placed in the same directory as the installed application rather than being bundled with it.
Reading the answer to WIX Bundle Creation, it seems possible to keep my Product as is in one file and have another file with a Bundle referencing this product, but I cannot seem to find any examples of this.
Is there a simple way to do this? I've included the outline of the product code below.
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:ui="http://schemas.microsoft.com/wix/UIExtension">
<Product Id="*" Name="#####" Language="1033" Version="1.0.0.0" Manufacturer="..." UpgradeCode="...">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64"/>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
<UIRef Id="WixUI_InstallDir" />
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes"/>
<Feature Id="ProductFeature" Title="alphaInstaller" Level="1">
<ComponentGroupRef Id="ProductComponents" />
<ComponentGroupRef Id="ProductMenuComponents" />
<ComponentGroupRef Id="DependencyComponents"/>
<ComponentGroupRef Id="ResourcesComponents"/>
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramMenu64Folder">
...
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Id="CMP_alphaGUISetup" Win64="yes">
<File Id="FILE_alphaGUIApplication.exe" Source="$(var.alphaGUI.TargetPath)" KeyPath="yes"></File>
</Component>
</ComponentGroup>
<ComponentGroup Id="ProductMenuComponents" Directory="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="..." >
<Shortcut .../>
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue .../>
</Component>
</ComponentGroup>
<ComponentGroup Id="DependencyComponents" Directory="INSTALLFOLDER" Source=...>
<Component Id="log4net">
<File Name="log4net.dll" />
</Component>
...
</ComponentGroup>
<ComponentGroup Id="ResourcesComponents" Directory="ResourcesFolder" Source=...>
<Component Id="logo.ico">
...
</ComponentGroup>
</Fragment>
</Wix>