首页 > 解决方案 > 在 Azure DevOps Pipeline 中使用 WiX 工具集 -> Torch.exe 不起作用

问题描述

我正在使用 Azure DevOps Services 管道来创建设置。此管道创建 MSI 和 wixpdb。然后我在命令行脚本中调用 torch.exe 以从两个不同的 wixpdb 创建补丁。这在本地工作没有问题,但是当我在 Azure DevOps Services Pipeline 的命令行脚本中调用 torch.exe 时,我收到以下错误:

torch.exe:错误 TRCH0001:找不到路径“C:\temp\Agent\4\s\test\udmonxof\udmonxof.cab”的一部分。

我能做些什么来完成这项工作?

标签: azure-devopswixazure-pipelines

解决方案


我已经解决了如下问题:

这对我有帮助:https ://github.com/wixtoolset/issues/issues/5778

我在命令行脚本中将以下条目添加到注册表:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AppContext] "Switch.System.DisableTempFileCollectionDirectoryFeature"="true"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\AppContext] "Switch.System.DisableTempFileCollectionDirectoryFeature"="true"

之后我调用了 torch.exe 并且不再发生错误。


推荐阅读