A little late, but I came across this myself, and this is my decision.
In principle, this script can be created by trying to change the WIX installation project from the "MSI" to "EXE" output in the project settings. A WIX installation project can only generate MSI from Product.wxs. The created WIX EXE is actually created using the bootstrapper project containing Bundle.wxs, which then, in turn, can merge your MSI internally into a bootable EXE.
So, to solve this, change the installation project to MSI output, then create an additional boot project (with EXE output) and add the output of the MSI assembly from the installation project in the "Chain packages" section of the Bundle XML code.
Jared g
source share