2012-01-14 84 views
7

我正在嘗試爲WiX中的.net應用程序創建一個簡單的安裝程序。我安裝了Votive,並使用它創建的基本模板wxs文件。當我編譯它時,我得到warning LGHT1076: ICE71: The Media table has no entries.WiX構建警告:媒體表沒有條目

另外,當我運行安裝程序時,它會在安裝期間啓動並消失,並且在添加/刪除程序應用程序中沒有條目。

這裏的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到你的產品。正如所寫的,沒有東西將產品與碎片中的內容連接起來。