WIX 复制 heat 收获的文件,但不创建 cab 文件

WIX copying files harvested by heat, but does not create cab file

Wix 相当新。我有一个工作的 msi,但我只是得到一个文件夹,而不是 msi 文件旁边的 cab 文件。我花了几天时间试图弄清楚为什么它没有将文件放入 cab 文件中,但我完全不知所措。

msi 文件的性能完全符合我的预期,但将 msi 与文件夹一起分发比仅将 msi 分发更不理想。

<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="[Name]" Language="1033" Manufacturer="[Manufacturer]" Version="2.0.30" 
         UpgradeCode="af66ae21-61e4-4926-954d-ee89acf95ab3">
    <Package InstallerVersion="200"/>

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

    <Feature Id="ProductFeature" Title="[Title]" Level="1">
      <ComponentRef Id="ApplicationShortcut" />
      <ComponentRef Id="ApplicationShortcutDesktop" />
      <ComponentGroupRef Id="WebApp" />
      <ComponentGroupRef Id="ControlApp" />
    </Feature>
</Product>

<Fragment>
  <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFiles64Folder">
        <Directory Id="ManufacturerName" Name="[Name]">
            <Directory Id="INSTALLLOCATION" Name="[Name]" />
        </Directory>
      </Directory>
      <Directory Id="ProgramMenuFolder">
    <Directory Id="ApplicationProgramsFolder" Name="[Name]"/>
    <Directory Id="DesktopFolder" Name="Desktop"></Directory>
  </Directory>
    </Directory>
</Fragment>
<Fragment>
<DirectoryRef Id="ApplicationProgramsFolder">
 <Component Id="ApplicationShortcut" Guid="844b584d-6d5f-4825-9541-c7caf74892fb">
   <Shortcut Id="ApplicationStartMenuShortcut" 
             Name="[Name]" 
             Description="[Name]" 
             Target="[INSTALLLOCATION]MyApp.exe" 
             WorkingDirectory="INSTALLLOCATION" />
   <RemoveFolder Id="RemoveApplicationProgramsFolder" Directory="ApplicationProgramsFolder" On="uninstall" />
   <RegistryValue Root="HKCU" Key="Software\[Name]" Name="installed" Type="integer" Value="1" KeyPath="yes" />
 </Component>
</DirectoryRef>   
<DirectoryRef Id="DesktopFolder">
 <Component Id="ApplicationShortcutDesktop" Guid="629d0ac6-8c63-4309-af33-975925584d1f">
   <Shortcut Id="ApplicationDesktopShortcut" 
             Name="[Name]" 
             Description="[Name]" 
             Target="[INSTALLLOCATION]MyApp.exe" 
             WorkingDirectory="INSTALLLOCATION" />
   <RemoveFolder Id="RemoveDesktopFolder" Directory="DesktopFolder" On="uninstall" />
   <RegistryValue Root="HKCU" Key="Software\[Name]" Name="installed" Type="integer" Value="1" KeyPath="yes" />
 </Component>
   </DirectoryRef>
  </Fragment>
</Wix>

Package/@Compressed 属性设置为 yes