wix该目录在用户配置文件中,但未在RemoveFile表中列出

标签 wix installation windows-installer

我具有以下配置,可以从WIX删除和复制文件。

 <Directory Id='TARGETDIR' Name='SourceDir'>
 <Directory Id="AppDataFolder" Name="AppDataFolder">
    <Directory Id="GleasonAppData" Name="Gleason" >
    <Directory Id="GleasonStudioAppData" Name="GleasonStudio">
    <Directory Id="DatabaseAppData" Name ="Database">
    <Directory Id="UserSandboxesAppData" Name="UserSandboxes" />

</Directory>
</Directory>
</Directory>
</Directory>

</Directory>

<DirectoryRef Id="UserSandboxesAppData">
<Component Id="comp_deleteBackup" Guid="*">
        <RemoveFile Id="RemoveBackup" Directory="UserSandboxesAppData" 
                                Name="DevelopmentBackUp.FDB" On="install" />  
        <RegistryKey Root="HKCU" Key="Software\Gleason\Database\RemoveBackup">
            <RegistryValue Value="Removed" Type="string" KeyPath="yes" />
        </RegistryKey>

    </Component>
    <Component Id="comp_createBackup" Guid="*">
        <CopyFile Id="DBBackup" 
              DestinationDirectory="UserSandboxesAppData" 
              DestinationName="DevelopmentBackUp.FDB" 
              SourceDirectory="UserSandboxesAppData" 
              SourceName="Development.FDB" />

        <RegistryKey Root="HKCU" Key="Software\Gleason\Database\CopyBackup">
            <RegistryValue Value="Copied" Type="string" KeyPath="yes" />
        </RegistryKey>    
    </Component>
</DirectoryRef> 

我收到4个与ICE64相关的错误-目录'xxx'在用户配置文件中,但未在RemoveFile表中列出。
xxx = {UserSandboxesAppData,DatabaseAppData,GleasonStudioAppData,GleasonAppData}
另一个人在这里有一个非常相似的问题:Directory xx is in the user profile but is not listed in the RemoveFile table.。但是该解决方案对我没有帮助。

我需要更改什么?

谢谢你,
文卡特·饶(Venkat Rao)

最佳答案

您需要在组件下添加一些RemoveFolder元素,以使ICE64保持愉快状态。

<RemoveFolder Id="RemoveThisFolder" On="uninstall" />
有关删除每个用户数据并设法通过所有ICE验证测试的更多详细信息,请参阅Rob Mensching的How to create an uninstall shortcut (and pass all the ICE validation)

关于wix该目录在用户配置文件中,但未在RemoveFile表中列出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4627861/

相关文章:

xml - WiX XmlConfig : Purpose for nesting XmlConfig in XmlConfig

installation - 从 EXE 中提取 MSI

python - 基于 Django 的网站的好方法,如果需要安装先决条件

具有多个 MSI 的 WiX Bootstrap 与累积的 WiX 设置?

windows - 如何压缩合并模块?

windows-server-2008 - 如何允许管理员在没有 UAC 提升的情况下编辑我的应用程序的配置文件?

macos - 使用 $HOME/Application 文件夹创建 dmg 安装程序

visual-c++ - 如何在没有 Windows 安装程序的情况下安装 vc++ 可再发行组件

windows - 错误 1334。在 Data1.cab 中找不到文件

Wix 主要升级 : how do I prevent Windows service reinstallation?