安装程序不会卸载文件

use*_*528 2 installation windows-installer wix

我有一个非常简单的安装项目:

  <Product Id="*" UpgradeCode="$(var.UpgradeCode)" Name="$(var.ProductLongName)" Language="1033"
         Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)">

    <Package InstallerVersion="200" Compressed="yes" />

    <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

    <!-- Installation Parts -->
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="WindowsFolder">
        <Component Id="ProductComponent" Guid="b3250107-4859-4d5f-857c-1756af65ec32">
          <File Id='SomeFile' Name='SomeFile.scr'
                Source='SomeFile.scr' Vital='yes' />
           <!-- Other files -->
        </Component>
      </Directory>
    </Directory>

    <Feature Id="ProductFeature" Title="$(var.ProductShortName)" Level="1">
      <ComponentRef Id="ProductComponent" />
      <!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. -->
      <ComponentGroupRef Id="Product.Generated" />
    </Feature>

    <!-- Prerequisites -->
    <PropertyRef Id="NETFRAMEWORK40CLIENT"/>

    <Condition Message="This application requires .NET Framework 4.0. Please install the .NET Framework then run this installer again.">
      <![CDATA[Installed OR NETFRAMEWORK40CLIENT]]>
    </Condition>

  </Product>
Run Code Online (Sandbox Code Playgroud)

它安装好,卸载似乎也完成,但所有文件仍然存在.它们不会被删除.
有任何想法吗?

use*_*528 7

所以,当我将组件guid更改为新生成时,这个问题就消失了.真的不明白为什么.奇怪的.