torch.exe 在 wixpdb 文件中比较没有版本的文件
我正在使用“purely wix”方法为我的安装创建补丁。
当我使用 Orca 检查创建的 msp 文件与基本 msi 文件时,未选择某些已更改的文件进行修补。例如,我有一个 txt 文件,其中所有 0 都替换为 1。旧文件和新文件大小相同,但在 Orca 中,它们的 MsiFileHash 条目完全不同。我检查了另一个选择用于修补的 txt 文件,唯一的区别是它的大小已更改。
当 torch 比较未版本化文件的行时,文件大小是否只是比较规则?我认为 torch 会比较数据库行,如果发现一些差异,它会选择该行进行修补。
有人可以发布 torch.exe 在比较版本化文件和非版本化文件的数据库行时应用的规则的链接或解释吗?提前致谢。
I am creating patches for my installation using "purely wix" method.
When I check created msp file against base msi file using Orca some of the changed files are not selected for patching. For example I have a txt file in which all 0 are replaced with 1. Old and new file are the same size but in Orca their MsiFileHash entries are completely different. I checked another txt file which is selected for patching and only difference is that it's size has changed.
Is file size only rule of comparison when torch compares rows for unversioned files? I thought that torch compares database rows and if it finds some difference it selects that row for patching.
Could somebody post a link or explanation of the rules torch.exe applies when comparing database rows for both versioned and unversioned files. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是正常行为。补丁仅包含具有不同大小或版本的文件。这是因为 File 表仅包含大小和版本列,它不包含哈希或文件内容信息。
因此,如果您想在 MSP 补丁中包含某个文件,则需要更改其大小或增加其版本。
This is the normal behavior. Patches include only files which have a different size or version. This is because File table has columns only for Size and Version, it doesn't contain hash or file content information.
So if you want to include a file in a MSP patch, you need to change its size or increase its version.