WiX build warning: The Media table has no entries
Asked Answered
H

1

11

I'm trying to create a simple installer for a .net application in WiX. I installed Votive and am using the basic template wxs file it creates. When I compile it I get warning LGHT1076: ICE71: The Media table has no entries.

Also when I run the installer it starts and disappears during installation and there is no entry in the Add/Remove Programs app.

Here's the XML:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="26d654fe-af0f-4b48-8993-8e249597a130" 
       Name="Minefold" 
       Language="1033" 
       Version="0.0.0.1" 
       Manufacturer="Minefold" 
       UpgradeCode="6aad5a10-cbbe-472b-87fc-0813fb450836">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    <MediaTemplate />
</Product>

<Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="ProgramFilesFolder">
            <Directory Id="INSTALLFOLDER" Name="Minefold" />
        </Directory>
    </Directory>
</Fragment>

<Fragment>
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
         <Component Id="ProductComponent">
     <File Source="C:\code\Minefold\Minefold\bin\Debug\Minefold.exe" Id="Minefold.exe"  />
         </Component> 
    </ComponentGroup>
</Fragment>

<Fragment>
  <Feature Id="Application" Title="Minefold" Level="1">
    <ComponentRef Id="ProductComponent" />
  </Feature>
</Fragment>
</Wix>
Harney answered 14/1, 2012 at 7:10 Comment(0)
H
11

Add a Feature with a ComponentGroupRef to your Product. As written, nothing connects the Product with the content in the Fragments.

Heptastich answered 14/1, 2012 at 13:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.