WiX bundle for installing .NET

后端 未结 2 1658
灰色年华
灰色年华 2021-02-05 10:46

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

2条回答
  •  面向向阳花
    2021-02-05 11:09

    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.

提交回复
热议问题