2012-01-14 16 views
7

WiXの.netアプリケーション用の簡単なインストーラを作成しようとしています。私はVotiveをインストールし、それが作成する基本テンプレートwxsファイルを使用しています。私がそれをコンパイルすると、私はwarning LGHT1076: ICE71: The Media table has no entries.WiXのビルドに関する警告:Mediaテーブルにエントリがありません

を実行します。また、インストーラーを実行すると、インストール中に開始され、表示されなくなり、[アプリケーションの追加と削除]アプリケーションにはエントリが表示されません。ここで

は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> 

答えて

7

は、お使いの製品にComponentGroupRefと機能を追加します。書かれているとおり、何も製品をFragmentのコンテンツと結びつけるものはありません。