无法使用 WiX 注册 DLL [英] Cannot register DLL using WiX

查看:50
本文介绍了无法使用 WiX 注册 DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 WiX 注册 DLL.现在我知道并理解我应该使用 heat 并让它为我提取注册表信息,但 heat 似乎失败并显示以下错误消息: heat.exe : warning HEAT5150 : could不从预期为 SelfReg DLL 的文件中收集数据:C:UserssebDesktopDevelopmentaddin.dll.如果此文件不支持 SelfReg,您可以忽略此警告.否则,此错误详细信息可能有助于诊断故障:无法加载文件:C:UserssebDesktopDevelopmentaddin.dll,错误:193

I am trying to register a DLL using WiX. Now I know and understand that I should use heat and get it to pull the registry information for me, but heat seems to fail with the following error message: heat.exe : warning HEAT5150 : Could not harvest data from a file that was expected to be a SelfReg DLL: C:UserssebDesktopDevelopmentaddin.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:UserssebDesktopDevelopmentaddin.dll, error: 193

我环顾四周,发现这篇文章更详细地解释了 注册 DLL 但如果可能的话,我想避免使用自我注册路线.我还看到在下面进一步提到手动注册 DLL,但我不太熟悉注册表或 COM 对象,我什至不知道我什至可以从哪里获得 CLSID、ProgId 和任何其他已提到的信息.

I've looked around and found this post which explains a bit more in detail about registering DLLs but I would like to avoid the self registration route if possible. I also see mention of manually registering the DLLs further down below, but I'm not too well versed with the registry or COM objects that well to know where I could even get the CLSID, ProgId, and any other information that has been mentioned.

如果有人能指出我正确的方向或向我解释通过 heat 运行 DLL 需要做什么,我将不胜感激.

If anyone can point me in the right direction or explain to me what I need to do to run the DLL through heat it would be greatly appreciated.

推荐答案

我知道这是旧的,但我想在这里添加一个答案 - 发生这种情况的原因是因为您尝试注册的 dll 是 64 位 dll - 并且Heat.exe 是 32 位的,因此它无法在其地址空间中加载 dll.无论如何,只需指向 32 位版本的 dll 来创建 wxs 文件,您应该不会收到该错误.

I know this is old but I wanted to add an answer here - the reason this occurs is because the dll you are trying to register is 64 bit dll - and Heat.exe is 32 bit so it cannot load the dll in its address space. Anyway, just point to a 32 bit version of the dll to create the wxs file and you should not receive that error.

这篇关于无法使用 WiX 注册 DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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