在WIX安装程序中卸载期间无法删除注册表项

在WIX安装程序中卸载期间无法删除注册表项,wix,wix3.8,Wix,Wix3.8,在卸载MSI期间,不会删除注册表项值 下面是向注册表添加值的代码示例。 我正在为组件使用NeverOverwrite=“yes”Permanent=“yes”选项,因为在升级过程中不应覆盖注册表值 <Component Id="DFService_Registry" Guid="B4F1008F-1CF2-4170-94A5-2466AB15E145" Win64="yes" Directory="DFServicesDir" NeverOverwrite ="yes" Permanent

在卸载MSI期间,不会删除注册表项值

下面是向注册表添加值的代码示例。 我正在为组件使用NeverOverwrite=“yes”Permanent=“yes”选项,因为在升级过程中不应覆盖注册表值

<Component Id="DFService_Registry" Guid="B4F1008F-1CF2-4170-94A5-2466AB15E145" Win64="yes" Directory="DFServicesDir" NeverOverwrite ="yes" Permanent="yes">

      <Condition><![CDATA[INSTALL_DFSERVICES=1 AND (NOT OLDER_VERSION_FOUND)]]></Condition>
      <!--Win64="yes"-->
      <RegistryKey Root="HKLM" Key='SOFTWARE\VALUEMOMENTUM\DEALFOUNDRY\DealFoundryServices' Action="createAndRemoveOnUninstall">
        <RegistryValue Type="string" Name="DfServicesInstalled" Value="Yes">
          <![CDATA[NOT OLDER_VERSION_FOUND]]>
        </RegistryValue>
        <RegistryValue Type="string" Name="DfServicesWebApplicationName" Value="[DFSERVICES_WEBAPPLICATIONNAME]">
          <![CDATA[NOT OLDER_VERSION_FOUND]]>
        </RegistryValue>
        <RegistryValue Type="string" Name="DfServicesPortNumber" Value="[DFSERVICES_PORTNUMBER]">
          <![CDATA[NOT OLDER_VERSION_FOUND]]>
        </RegistryValue>
        <RegistryValue Type="string" Name="DfServicesInstallDir" Value="[INSTALLDFSERVICES_DIR]">
          <![CDATA[NOT OLDER_VERSION_FOUND]]>
        </RegistryValue>
      </RegistryKey>

    </Component>


请帮助我。

使用设置permanent=“yes”在卸载过程中不会删除注册表项。使用permanent=“否”

或者完全删除永久属性,因为默认行为是在卸载时删除注册表项。我做了更改,但仍然没有删除注册表项。