【问题标题】:wix The directory is in the user profile but is not listed in the RemoveFile tablewix 目录在用户配置文件中但未列在 RemoveFile 表中
【发布时间】:2011-01-07 16:38:25
【问题描述】:

我有以下配置可以从 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.。但是那个解决方案对我没有帮助。

我需要改变什么?

谢谢你, 文卡特饶

【问题讨论】:

    标签: wix installation windows-installer


    【解决方案1】:

    您需要在您的组件下添加一些 RemoveFolder 元素以保持 ICE64 满意。

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

    有关删除每用户数据和设法通过所有 ICE 验证测试的更多详细信息,请查看 Rob Mensching 的 How to create an uninstall shortcut (and pass all the ICE validation)

    【讨论】:

    • 我不想删除任何文件夹,我只想删除一个文件。有没有办法做到这一点?
    • 您将在安装时使用 RemoveFile,在卸载时使用 RemoveFolder 以保持 ICE64 的快乐。
    • 你把这个 RemoveFolder 放在哪里??
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-18
    • 2018-07-07
    • 1970-01-01
    • 1970-01-01
    • 2020-06-10
    • 1970-01-01
    • 2016-05-16
    相关资源
    最近更新 更多