我有多个配置文件(针对不同的环境)。在安装期间,用户可以选择环境,并根据该环境复制正确的文件。我想删除未使用的额外文件。
我正在使用,但它似乎没有工作。我没有收到任何错误,在日志中我看到操作正在执行但文件没有被删除。谁能指出我做错了什么?
<Component Id="RemoveFiles" Guid="C5D634C2-744E-4CA5-BB44-F3DE88482AB5">
<RemoveFile Id="RemoveConfigs" Name="???_*.config" On="install" />
</Component>
我的 RemoveFile 表也看起来像
FileKey 组件 FileName DirProperty InstallMode RemoveExtraConfigFiles RemoveExtraFiles p6wjlh9a.con|Web_*.config INSTALLDIR 1
仍然没有删除任何内容