wix该目录在用户配置文件中,但未在RemoveFile表中列出 [英] wix The directory is in the user profile but is not listed in the RemoveFile table

查看:73
本文介绍了wix该目录在用户配置文件中,但未在RemoveFile表中列出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have the following configuration to delete and copy a file from 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} 有人在这里遇到了非常相似的问题:

I get 4 errors related to ICE64--The directory 'xxx' is in the user profile but is not listed in the RemoveFile table. xxx={UserSandboxesAppData, DatabaseAppData, GleasonStudioAppData, GleasonAppData} Someone else had a very similar problem here: Directory xx is in the user profile but is not listed in the RemoveFile table.. But that solution did not help me.

我需要更改什么?

谢谢, Venkat Rao

Thank You, Venkat Rao

推荐答案

您需要在组件下添加一些RemoveFolder元素,以使ICE64保持快乐.

You'll want to add some RemoveFolder elements under your components to keep ICE64 happy.

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

有关删除每个用户的数据并设法通过所有ICE验证测试的更多详细信息,请查看

For more details about removing per-user data and managing to pass all the ICE validation tests, check out How to create an uninstall shortcut (and pass all the ICE validation) by Rob Mensching.

这篇关于wix该目录在用户配置文件中,但未在RemoveFile表中列出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆