2012-01-14 13 views
7

मैं वाईएक्स में .net एप्लिकेशन के लिए एक सरल इंस्टॉलर बनाने की कोशिश कर रहा हूं। मैंने वोटिव स्थापित किया है और यह मूल टेम्पलेट Wxs फ़ाइल का उपयोग कर रहा है जो इसे बनाता है। जब मैं इसे संकलित करता हूं तो मुझे warning LGHT1076: ICE71: The Media table has no entries.वाईएक्स बिल्ड चेतावनी: मीडिया तालिका में कोई प्रविष्टियां नहीं हैं

साथ ही जब मैं इंस्टॉलर चलाता हूं तो यह इंस्टॉलेशन के दौरान शुरू होता है और गायब हो जाता है और प्रोग्राम जोड़ें/निकालें ऐप में कोई प्रविष्टि नहीं होती है।

<?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 के साथ एक फ़ीचर जोड़ें:

यहाँ एक्सएमएल है। लिखित रूप में, कुछ भी उत्पाद को टुकड़ों में सामग्री के साथ जोड़ता है।

संबंधित मुद्दे