I\'m trying to create a bundle for installing .NET Framework 4.0 if it needs to be installed. I realize there are similar questions, but all of the answers are just snippets and
That error indicates that your project is building with files that contain more than one of these elements: Product
, Module
, Patch
, PatchCreation
, Bundle
. In your case, it sounds like you added a file with a Bundle
element to a project that already had a Product
element. That isn't supported in the WiX toolset today. You need to put the Bundle
element in a separate project.
Thus, when creating a bootstrapper and MSI, you'll have two .wixproj files. The first .wixproj will contain your Product
information. The second .wixproj will contain your Bundle
information and have a project reference to the first .wixproj so that the build order is correct.