【问题标题】:Wix - The directory is in the user profile but is not listed in the RemoveFile tableWix - 目录位于用户配置文件中,但未列在 RemoveFile 表中
【发布时间】:2012-02-27 14:59:19
【问题描述】:

我想在开始菜单中创建一个子文件夹,在我的情况下,PMFCompanyFolder 已经存在并包含链接,我不想在卸载我的产品时删除。

所以我不推送 RemoveFolder 属性,我得到:

ICE64: The directory PMFCompanyFolder is in the user profile but is not listed in the RemoveFile table.

<Directory Id="TARGETDIR" Name="SourceDir">
  <Directory Id="ProgramMenuFolder">
    <Directory Id="PMFCompanyFolder" Name="MyCompany">
      <Directory Id="PMFProductFolder" Name="MyProduct"/>
    </Directory>
  </Directory>
</Directory>

<DirectoryRef Id="PMFProductFolder">
  <Component Id="PMFProductFolderComponent" Guid="A13A7784-4C82-4CBE-9018-CEC6F266743B">
    <RemoveFolder Id="null" On="uninstall"/>
    <RegistryValue Root="HKCU" Key="Software\Microsoft\MyCompany\MyProduct" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
  </Component>
</DirectoryRef>

<Feature Id="ProductFeature" Title="" Level="1">
  <ComponentRef Id="PMFProductFolderComponent"/>
</Feature>

【问题讨论】:

    标签: installation wix windows-installer


    【解决方案1】:

    你应该传递文件夹 id:

     <RemoveFolder Id="PMFCompanyFolder" On="uninstall"/>
    

    卸载时将其删除是安全的 - 不会删除预先存在的项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-03-18
      • 1970-01-01
      • 2011-01-21
      • 2018-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多