views:

87

answers:

5
+1  A: 

A WiX product element can not contain an ItemGroup, as the error suggests.

See here for a description of the Product element and it's valid children.

http://wix.sourceforge.net/manual-wix2/wix_xsd_product.htm

Bootstrapper code is normally added to the msbuild file (.csproj file) rather then the wix .wxs file, which I think might be where you placed it - see here for a description of how to do so:

http://wix.sourceforge.net/manual-wix3/install_dotnet.htm

If that doesn't resolve your issue, perhaps add the entire contents of your .wxs and .wxproj files to the question - this should provide enough context to assist people in resolving your issue.

Bittercoder
A: 

Most probably the ItemGroup tag is not placed correctly. Here's a brief example:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
  <ItemGroup>
    <BootstrapperFile Include="Microsoft.Net.Framework.2.0">
      <ProductName>Microsoft .NET Framework 2.0</ProductName>
    </BootstrapperFile>
    <BootStrapperFile Include="Microsoft.ReportViewer.8.0">
      <ProductName>Microsoft Report Viewer</ProductName>
    </BootStrapperFile>
  </ItemGroup>

  <Target Name="Bootstrapper">
    <GenerateBootstrapper
      ApplicationFile="WixBootstrapSample.msi"
      ApplicationName="Wix Sample"
      BootstrapperItems="@(BootstrapperFile)"
      OutputPath=".\"
      ComponentsLocation="HomeSite"
      Culture="en"
    />
  </Target>
</Project>

The example is from wixwiki. A more detailed description about how to deploy additional components you can find here.

Adrian Faciu
A: 

I put "itemGroup" and "target" tags in "product" sections. I don't use "project" tags, yesterday I tried use "project", compiler didn't recognize it. The same error like with and "target" :( Have you any idea, what made I wrong ??

Jacek
Jacek, a tip: Reply to the answer you're referring to, don't post another answer. Or, edit your question or add a comment to the question itself.
uosɐſ
A: 

What should I do to can use that tags? Missing references?

Jacek
A: 

Hi..

You should use 'BootStrapperFile' and not BootstrapperFileMax.

I am using BootStrapperFile and its working fine.

SQL Server 2005 Express Edition

Sunil Agarwal