I have written an installer using WIX for a product, which uses:
etc.
https://marketplace.visualstudio.com/items?itemName=MarkusWehrle.Laika42WiXToolsetExtension
this is an extension provided by Laika. download it embed an .msi in its bundle and execute the application , go through the code u will be able to understand everything about WPF Burn Bootstrapper
in bundle file -
MsiPackage Id="abc" Compressed="yes" Visible="no" SourceFile="_Dependencies\abc.msi"
----> this will come under opening\closing a Tag like <...>, stackoverflow is not allowing to put the tag
put the msi in application folder where Bin folder resides or create a _Dependencies(name it as u like) folder and put the msi there
Download the WiX latest (weekly) release source code at http://wixtoolset.org/releases and look at the project located in src\Setup\WixBA. The WPF you write will be the bootstrapper UI which references the WiX bootstrapper engine (Burn).
I also created a minimal example that I blogged about here. Please note that it is a bare bones example to get someone started. Using the WiX source as an example is better because it's complete and robust.