簡體   English   中英

Wix在.MSI中不包含任何文件

[英]Wix doesn't include any of the files in the .MSI

我正在嘗試在WIX安裝程序中添加文件,但是目前不這樣做。 我現在盯着它看了幾個小時,但我根本看不出是什么問題。 引用以及目標位置似乎都可以正常工作。 當然,安裝程序可以正常運行到需要安裝文件的地步。

    <?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Product Id="*" Name="Wix_setup" Language="1033" Version="1.0.0.0" Manufacturer="Frank Jansen" UpgradeCode="37a42e55-dea8-47da-8f4f-fb065dd38a9e">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

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

    <Feature Id="ProductFeature" Title="Wix_setup" Level="1">
      <!--create a seperate ComponentGroupRef and Fragment for each extra added program-->
      <ComponentGroupRef Id="InstallationFiles" />
      <ComponentGroupRef Id="DLLs" />
      <ComponentGroupRef Id="IniFiles" />
      <ComponentGroupRef Id="Scripts" />
      <ComponentGroupRef Id="TeamViewer" />
    </Feature>
  </Product>

  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="Wix_setup" />
      </Directory>
    </Directory>
    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" ></Property>
    <UIRef Id="WixUI_InstallDir"/>
  </Fragment>

這也是我使用熱量制作的參考書的一部分:

<Fragment>
<DirectoryRef Id="INSTALLFOLDER">
  <Directory Id="dirE31AF1F0EC087256AE3A304B079577CE" Name="Program Files">
    <Directory Id="dir686DC70E77279FD983277BA8C61F0AF5" Name="ActiveX Control Pad">
      <Component Id="cmp50E37DF3A2B94BC9155ED7F4A264B47B" Guid="{F3CE58FB-5E41-4CD9-B761-C1B14A4F6C5F}">
        <File Id="fil0D955E35C33B26A36350F0C4D02733AF" KeyPath="yes" Source="C:\Users\fjansen\Documents\MMI installatie bestanden\MMI install files\Program Files\ActiveX Control Pad\license.txt" />
      </Component>
      <Component Id="cmp367C764B6CFEC27E7632FB3F5B37A3F9" Guid="{FBEC3C91-3DCD-4CF3-B58D-B7C97AEB8ACF}">
        <File Id="fil084E5B485699543BB060A10BAEEC4519" KeyPath="yes" Source="C:\Users\fjansen\Documents\MMI installatie bestanden\MMI install files\Program Files\ActiveX Control Pad\ped.cnt" />
      </Component>
      <Component Id="cmp5EF25EC501B2689546C69D7C8B18B79F" Guid="{182C17ED-01E1-4529-A733-D3FBA7FF61EE}">
        <File Id="filF5043624868A85726914B5A383640B6F" KeyPath="yes" Source="C:\Users\fjansen\Documents\MMI installatie bestanden\MMI install files\Program Files\ActiveX Control Pad\PEd.exe" />
      </Component>

<Fragment>
<ComponentGroup Id="Wix_database" Directory="INSTALLFOLDER" >
  <ComponentRef Id="cmp50E37DF3A2B94BC9155ED7F4A264B47B" />
  <ComponentRef Id="cmp367C764B6CFEC27E7632FB3F5B37A3F9" />
  <ComponentRef Id="cmp5EF25EC501B2689546C69D7C8B18B79F" />

ComponentGroupRef和它們所連接的片段目前尚未使用,並且對程序沒有影響(在此示例中省略了片段)

有人可以看到我做錯了什么或缺少什么嗎? 提前致謝,

我已經解決了錯誤。 它與我在項目中仍然存在的參考文件存在沖突,因為它確實將其視為對同一符號的兩個引用,我聲明了重載建議的方式。

感謝您的支持。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM