Heat.exe:64 位 .dll 无法转换为 64 位 .msi [英] Heat.exe: 64-bit .dll fails to be converted to a 64-bit .msi

查看:28
本文介绍了Heat.exe:64 位 .dll 无法转换为 64 位 .msi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 heat.exe 生成 64 位 FireBreath MSI 安装程序,但得到以下输出:

I tried to generate a 64-bit FireBreath MSI installer using heat.exe but got the following output:

heat.exe : warning HEAT1108 : The command line switch 't:' is deprecated. 
Please use 't' instead.
heat.exe : warning HEAT5150 : Could not harvest data from a file that was 
expected to be  a SelfReg DLL: 
C:\Users\firebreath-master\buildPlugin\bin\Release\myPlugin64.dll. 
If this  file does not support SelfReg you can ignore this warning. 
Otherwise, this error detail may  be helpful to diagnose the failure: 
Unable to load file:
C:\Users\firebreath- master\buildPlugin\bin\Release\myPlugin64.dll, error: 193

为了生成 64 位 .msi,我复制了从 32 位 .dll 生成的 MyPlugin_auto.wxs,然后使用 64 位 .dll 和之前复制的 MyPlugin_auto.wxs 再次构建.64 位 msi 生成时没有错误,我安装了它,测试了它并且它可以工作,但我想问一下它是否是克服 heat.exe 错误的更好方法.

In order to generate the 64-bit .msi I copied the MyPlugin_auto.wxs that was generated from the 32-bit .dll, and build again using the 64-bit .dll and the MyPlugin_auto.wxs that was copied previously. 64-bit msi was generated without errors, I installed it, test it and it works, but I would like to ask if it is a better way to get over the heat.exe bug.

推荐答案

Heat 告诉您它看到了一个带有 DllRegisterServer() 函数的 Dll,并且它未能收集任何 COM 信息.这通常意味着 DLL 缺少依赖项,并且 DllRegisterServer() 在收获期间未能正确运行.

Heat is telling you that it saw a Dll with the DllRegisterServer() function exposed and that it failed to harvest any COM information. This typically means that the DLL is missing dependencies and that DllRegisterServer() failed to run correctly during the harvesting.

我会使用 Depends 查看 DLL 并查找缺少的依赖项.将这些 DLL 放入目录中,然后再次尝试获取.

I'd take a look at the DLL using Depends and look for missing dependencies. Put those DLL's into the directory and try harvesting again.

这篇关于Heat.exe:64 位 .dll 无法转换为 64 位 .msi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆