【发布时间】: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